Waiting for apt-get to exit

A

anon47429100

Guest
Hi

I recently tried to update my ubuntu software as there are updates pending but it keeps getting stuck with this error message:

“waiting for apt-get to exit”

How can I fix this so I can update my linux OS?
 
Solution
Hi @anon47429100

It sounds like perhaps an update failed to fully install or finish. Normally Ubuntu takes care of this and removes the lock file but it doesn’t appear to have happened for you in this case.

Could you try running these commands in Terminal:
Code:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
Then try running the updates again.

Let us know if this works 🙂
Hi @anon47429100

It sounds like perhaps an update failed to fully install or finish. Normally Ubuntu takes care of this and removes the lock file but it doesn’t appear to have happened for you in this case.

Could you try running these commands in Terminal:
Code:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
Then try running the updates again.

Let us know if this works 🙂
 
Last edited by a moderator:
Solution
Back
Top