While installing Google Chrome in my Ubuntu OS I'm getting the below error while updating.
Asked
Active
Viewed 72 times
0
-
Perhaps it is Ubuntu Software doing and update of the lists in the background? Give it a time and try again. If that fails, follow the answers in the question pointed out by @bodhi.zazen – carnendil Oct 06 '17 at 05:52
-
@bodhi.zazen Still I'm getting same error – Moulali Oct 06 '17 at 06:05
-
If you are still getting the same error, and you are sure another package manager is not running in the background, I suggest you reboot. Then, and only as a last resort, you can delete the lock file but I would again reboot after deleting the lock file before running any installation of software. – Panther Oct 06 '17 at 14:10
1 Answers
-1
You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock

carnendil
- 5,451
-
-
deleting lock files should be used as a last resort and doing so can break ubuntu. – Panther Oct 06 '17 at 05:51
-
-
Shutting down ubuntu in the middle of updating or upgrading can also break ubuntu. – Panther Oct 06 '17 at 05:54