Ubuntu8.04 failure to use the "apt-getupdate" command Solution

Source: Internet
Author: User
The update source is updated on Ubuntu8.04 today. After updating the source, enter sudoapt-getupdate in the terminal. However, this command does not seem to work and cannot be updated. The terminal is displayed as E: unable to obtain lock/var/lib/apt/lists/lock-open (11 Resourcetemporarilyunavailable) E: unable to add Status List Directory

The update source is updated on Ubuntu 8.04 today.

After updating the source, enter sudo apt-get update in the terminal. However, this command does not seem to work and cannot be updated ---

Terminal display
E: unable to obtain the lock/var/lib/apt/lists/lock-open (11 Resource temporarily unavailable)
E: Unable to lock the Status List Directory

So I searched for a solution online and quickly found a solution: Delete the/var/lib/apt/lists/lock file, the specific command is sudo rm/var/lib/apt/lists/lock.

After deleting the lock file, enter sudo apt-get update in the terminal and press Enter. The update starts normally. (To run the Administrator command, use sudo Ubuntu to hide the root user by default)

It took me about 50 minutes to update Ubuntu today. It was really slow. I use the following update sources. I wonder if there is any faster update source?

CODE: deb http://archive.ubuntu.com/ubuntu hard main restricted universe multiverse

Deb http://archive.ubuntu.com/ubuntu hard-security main restricted universe multiverse

Deb http://archive.ubuntu.com/ubuntu hard-updates main restricted universe multiverse

Deb http://archive.ubuntu.com/ubuntu hard-backports main restricted universe multiverse

Deb http://archive.ubuntu.com/ubuntu hard-proposed main restricted universe multiverse

Deb-src http://archive.ubuntu.com/ubuntu hard main restricted universe multiverse

Deb-src http://archive.ubuntu.com/ubuntu hard-security main restricted universe multiverse

Deb-src http://archive.ubuntu.com/ubuntu hard-updates main restricted universe multiverse

Deb-src http://archive.ubuntu.com/ubuntu hard-backports main restricted universe multiverse

Deb-src http://archive.ubuntu.com/ubuntu hard-proposed main restricted universe multiverse

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.