Results 1 to 8 of 8

Thread: Maverick - always "Waiting for apt-get to exit" !!

  1. #1
    Join Date
    Jan 2009
    Beans
    Hidden!

    Maverick - always "Waiting for apt-get to exit" !!

    Hi, I've upgraded to Maverick Meerkat few days ago and it gone well

    The problem is ..
    Software Center is unable to install any program, it just shows "Waiting for apt-get to exit" , and never moves on
    though I can still install programs using apt-get from command line

    Today, Ubuntu update failed because of the same problem
    the Update Manager isn't showing any updates to install
    and clicking the "Check" button shows the same message
    Waiting for apt-get to exit
    So I closed the update manager and opened my Terminal and typed
    Code:
    sudo apt-get update
    I got this:
    E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock directory /var/lib/apt/lists/


    PS: there is a note ,I don't know if it is related or not, I noticed also that my CPU is always busy ( range from 60% to 100% ) , even when I am not opening anything , gnome-system-monitor process is eating up the remaining CPU

    Any help ??
    Thanks in advance

  2. #2
    Join Date
    Apr 2009
    Location
    Rawalpindi, Pakistan
    Beans
    5,669
    Distro
    Ubuntu Gnome Development Release

    Re: Maverick - always "Waiting for apt-get to exit" !!

    A dumb question at first but did you restart your PC and recheck?

    Also make sure any other package manager like Synaptic or Update Manager, Software Center, apt-get are not running simultaneously. Only one will work at a time.

  3. #3
    Join Date
    Dec 2009
    Location
    Southern Maryland
    Beans
    1,575
    Distro
    Ubuntu

    Re: Maverick - always "Waiting for apt-get to exit" !!

    Next time it happens try
    Code:
    sudo apt-get upgrade
    It may be telling you it downloaded updates and needs to finish the process or needs to install the ones it already downloaded? I know mine won't let me do anything if the indicator in the upper right turns red, meaning you must restart to finish the install or update process already underway.

  4. #4
    Join Date
    Jan 2009
    Beans
    Hidden!

    Re: Maverick - always "Waiting for apt-get to exit" !!

    Well, the problem solved itself
    I opened the Update Manager, and clicked "Check"
    instead of showing "waiting for apt-get to exit"
    the Manager told me to insert the Ubuntu CD ! then it updated some programs ( kernel was one of them ) and screen flickered several times , and desktop effects stopped to work also
    after the update , I restarted , and everything is OK now !

  5. #5
    Join Date
    Apr 2008
    Beans
    200
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Maverick - always "Waiting for apt-get to exit" !!

    ..insert the Ubuntu CD? Never seen that. I'm guessing maybe you have the Ubuntu CDROM set as an active software source? I'd uncheck that otherwise every apt-get update will look for the cdrom.
    Last edited by Jebtrix; October 21st, 2010 at 02:59 AM.

  6. #6
    Join Date
    Apr 2009
    Location
    Rawalpindi, Pakistan
    Beans
    5,669
    Distro
    Ubuntu Gnome Development Release

    Re: Maverick - always "Waiting for apt-get to exit" !!

    Quote Originally Posted by Jebtrix View Post
    ..insert the Ubuntu CD? Never seen that. I'm guessing maybe you have the Ubuntu CDROM set as an active software source? I'd uncheck that otherwise every apt-get update will look for the cdrom.
    +1

    You can edit the Software Sources from Software Center > Edit > Software Sources and uncheck the CD-ROM.

  7. #7
    Join Date
    Feb 2007
    Beans
    3

    Re: Maverick - always "Waiting for apt-get to exit" !!

    Quote Originally Posted by sikander3786 View Post
    A dumb question at first but did you restart your PC and recheck?

    Also make sure any other package manager like Synaptic or Update Manager, Software Center, apt-get are not running simultaneously. Only one will work at a time.
    Yep, that did the trick. I re-booted, then went to Update Manager, got the stuff thataway. Before that, the apt-get message hung things up when clicking on that red icon. Thanks as always to the Ubuntu community.

  8. #8
    Join Date
    Jul 2008
    Beans
    5

    Re: Maverick - always "Waiting for apt-get to exit" !!

    In this situation, I don't know why but it actually seems that the aptitude lock has not been removed from the previous update/upgrade

    So, you just remove it doing this :
    Code:
    sudo rm /var/cache/apt/archives/lock
    and it does the trick !

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •