• Computer Forums is where you'll find free PC help, tech support & discussion of technology.

    From Windows errors to which smartphone to buy, home automation to internet connections, we're here for you.

    Registration is quick, easy and entirely free, and lets you post your computer questions, receive answers from experts and fully take part in our site.

    Ready to jump in? Register now

Waiting for apt-get to exit

Status
Not open for further replies.
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 🙂

root

Administrator
Staff member
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
Status
Not open for further replies.
Top