Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Server Update and Upgrade

  1. #1
    Join Date
    Oct 2009
    Beans
    16

    Server Update and Upgrade

    hi
    Although no expert, I have been running a LAMP Ubuntu 10.04 server for about 2 years to host my GLPI IT database.
    I usually update it about once a month via ssh without any trouble, but a few months ago it started refusing saying that it was unable to get exclusive lock. I hadn't bothered doing much about it because I had no real problems. Today I started to look at it thinking it had gone on long enough...
    I am now stuck with "99% [1 Translation-en_GB bzip2 0B]" errors during the execution of sudo apt-get update.
    This morning I have tried to examine sources.list and edit it, but that didn't help. I have also cleared the /var/lib/apt/lists/partial directory and renamed the lists folder as .old.
    cd /var/lib/apt...i.e
    sudo mv lists lists.old
    sudo mkdir -p lists/partial
    sudo apt-get clean
    sudo apt-get update
    In addition, I tried to upgrade to 12.04 precise in the hope that it might resolve the issue, but that aborted half way through.
    There are a lot of posts on this and similar issues, but my problem is that I don't really understand the update process well enough to pick the bones out of the problem and come up with a sensible diagnosis.
    Your help much appreciated
    KR's vasdjs

  2. #2
    Join Date
    Sep 2012
    Location
    Gnome12o4/14o4
    Beans
    Hidden!

    Re: Server Update and Upgrade

    Have you checked for a dpkg/lock file? I think that relates to exclusive lock.

    http://ubuntuforums.org/showthread.php?t=1501405

    more here

    http://www.googlubuntu.com/results/?...Search&lang=en

  3. #3
    Join Date
    Oct 2009
    Beans
    16

    Re: Server Update and Upgrade

    thanks, but I think the exclusive lock part of the problem has been resolved, but I still can't update. I have a lock file in /var/lib/apt/lists but that appears to be empty.
    The update process has been sticking at different points all day. Currently it gets to...
    Get: 40 http://gb.archive.ubuntu.com lucid-backports/restricted Sources [14B]
    Get: 41 http://gb.archive.ubuntu.com lucid-backports/universe Sources [24.2kB]
    Get: 42 http://gb.archive.ubuntu.com lucid-backports/multiverse Sources [1,633B]
    99% [1 Translation-en_GB bzip2 0B]

    KR's vasdjs

  4. #4
    Join Date
    Sep 2012
    Location
    Gnome12o4/14o4
    Beans
    Hidden!

    Re: Server Update and Upgrade

    Quote Originally Posted by vasdjs View Post
    thanks, but I think the exclusive lock part of the problem has been resolved, but I still can't update. I have a lock file in /var/lib/apt/lists but that appears to be empty.
    The update process has been sticking at different points all day. Currently it gets to...
    Get: 40 http://gb.archive.ubuntu.com lucid-backports/restricted Sources [14B]
    Get: 41 http://gb.archive.ubuntu.com lucid-backports/universe Sources [24.2kB]
    Get: 42 http://gb.archive.ubuntu.com lucid-backports/multiverse Sources [1,633B]
    99% [1 Translation-en_GB bzip2 0B]

    KR's vasdjs
    I believe a lock file would normally appear empty, but if your not getting a lock error then its good.

    Those three URL's posted are for source. Do you compile your own packages? If not, then you shouldn't need them as far as I know.

  5. #5
    Join Date
    Oct 2009
    Beans
    16

    Re: Server Update and Upgrade

    Thanks for your reply ibjsb4.
    No I don't compile packages, and am trying to keep it as simple as possible. Are you suggesting that I could hash these updates out of the sources.list file?
    KR's vasdjs

  6. #6
    Join Date
    Sep 2012
    Location
    Gnome12o4/14o4
    Beans
    Hidden!

    Re: Server Update and Upgrade

    #yes#

  7. #7
    Join Date
    Oct 2009
    Beans
    16

    Re: Server Update and Upgrade

    Interestingly, once I hashed out the backports, the lock reappeared..."sudo apt-get update
    E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the list directory"

    At the time I was doing this on my server via ssh whilst my desktop was updating, but I'm pretty certain this has nothing to do with the price of beans!

  8. #8
    Join Date
    Oct 2009
    Beans
    16

    Re: Server Update and Upgrade

    Whereas the error said "Unable to lock the list directory", when I go to /var/lib/apt/lists/lock: The message is "Not a directory" There is a lock file in the lists directory.
    Am I missing something here? When I open the lists file there's nothing in it.

  9. #9
    Join Date
    Sep 2012
    Location
    Gnome12o4/14o4
    Beans
    Hidden!

    Re: Server Update and Upgrade

    Yes the lock file has nothing in it, I believe that to be correct. The first three links looks to be good, but different solutions to the same problem.

    http://www.googlubuntu.com/results/?...Search&lang=en

  10. #10
    Join Date
    Oct 2009
    Beans
    16

    Re: Server Update and Upgrade

    Thanks
    I ran sudo rm /var/lib/apt/lists/* -vf as suggested
    and then sudo apt-get update,but ran into the problem,
    as previously described.
    Get: 35 http://gb.archive.ubuntu.com lucid-updates/universe Packages [280kB]
    Get: 36 http://gb.archive.ubuntu.com lucid-updates/universe Sources [104kB]
    Get: 37 http://gb.archive.ubuntu.com lucid-updates/multiverse Packages [11.5kB]
    99% [19 Packages bzip2 0B]
    So, not really any further forward.

Page 1 of 2 12 LastLast

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
  •