"Go" Ubuntu 11.04 always prompts e:unable to the locate package when installing software using Apt-get

Source: Internet
Author: User
Tags unsupported

Problem:

The VMware virtual machine has Ubuntu 11.04 installed and always prompts e:unable to the locate package when installing software using Apt-get.
Baidu reason, said is to update the source, using the command: sudo apt-get update updated, but after the update problem is still there;

Solution:

Mainly is the source of the problem, the current online to find a lot of sources are a long time ago, many may not be used; then you re-download an Ubuntu 14.04 version of the source to replace the original Sources.list file, and then run sudo apt-get After the update is updated, you can install the software.

Update Source Address (This is the content of Ubuntu 14.04/etc/apt/source.list file):
#deb cdrom:[ubuntu 14.04 LTS _trusty tahr_-Release amd64 (20140417)]/trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# Newer versions of the distribution.
Deb Http://us.archive.ubuntu.com/ubuntu/trusty main restricted
DEB-SRC http://us.archive.ubuntu.com/ubuntu/trusty Main restricted

# # Major bug fix updates produced after the final release of the
# # Distribution.
Deb Http://us.archive.ubuntu.com/ubuntu/trusty-updates main restricted
DEB-SRC http://us.archive.ubuntu.com/ubuntu/trusty-updates Main restricted

# # N.B. Software from this repository are entirely unsupported by the Ubuntu
# # Team. Also, please note this software in universe won't receive any
# # Review or updates from the Ubuntu security team.
Deb Http://us.archive.ubuntu.com/ubuntu/trusty Universe
DEB-SRC Http://us.archive.ubuntu.com/ubuntu/trusty Universe
Deb Http://us.archive.ubuntu.com/ubuntu/trusty-updates Universe
DEB-SRC Http://us.archive.ubuntu.com/ubuntu/trusty-updates Universe

# # N.B. Software from this repository are entirely unsupported by the Ubuntu
# # Team, and may not is under a free licence. Satisfy yourself as to
# # Your rights to use the software. Also, please note this software in
# # Multiverse won't receive any review or updates from the Ubuntu
# # Security Team.
Deb Http://us.archive.ubuntu.com/ubuntu/trusty Multiverse
DEB-SRC Http://us.archive.ubuntu.com/ubuntu/trusty Multiverse
Deb Http://us.archive.ubuntu.com/ubuntu/trusty-updates Multiverse
DEB-SRC Http://us.archive.ubuntu.com/ubuntu/trusty-updates Multiverse

# # N.B. Software from this repository and not having been tested as
# extensively as that contained in the main release, although it includes
# # Newer versions of some applications which may provide useful features.
# # Also, please note this software in Backports won't receive any review
# # or updates from the Ubuntu security team.
Deb Http://us.archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse
DEB-SRC http://us.archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse

Deb Http://security.ubuntu.com/ubuntu trusty-security main restricted
DEB-SRC Http://security.ubuntu.com/ubuntu trusty-security Main restricted
Deb Http://security.ubuntu.com/ubuntu trusty-security Universe
DEB-SRC Http://security.ubuntu.com/ubuntu trusty-security Universe
Deb Http://security.ubuntu.com/ubuntu trusty-security Multiverse
DEB-SRC Http://security.ubuntu.com/ubuntu trusty-security Multiverse

# # Uncomment the following, lines to add software from Canonical ' s
# # ' partner ' repository.
# # This software was not part of Ubuntu, but was offered by Canonical and the
# # respective vendors as a service to Ubuntu users.
# Deb Http://archive.canonical.com/ubuntu trusty partner
# DEB-SRC Http://archive.canonical.com/ubuntu Trusty Partner

# # This software was not part of Ubuntu, but was offered by Third-party
# # developers want to ship their latest software.
Deb Http://extras.ubuntu.com/ubuntu Trusty Main
DEB-SRC Http://extras.ubuntu.com/ubuntu Trusty Main

Ways to modify Ubuntu system feeds:

1, more resources to save the permissions of the file, in the terminal to execute the following command:

chmod 777/etc/apt/sources.list

2. Open source file

Execute the following command in the terminal:

Gedit/etc/apt/sources.list

Friends who like VI can use the following command:

Vi/etc/apt/sources.list

3, the above given Ubuntu 14.04 source copy to the Sources.list file to save the exit, where the # number begins to represent comments, can be copied together, no error.

4. Execute the following command in the terminal:

sudo apt-get update

5, about adding the source after the dynamic MMap ran out of the. Please increase the size of the apt::cache-limit.***** error solution:

A, enter the command in the terminal: VI apt.conf

b, then add the following:

Apt

{

Cache-limit 67108864;

};

C, save the exit, again apt-get update, the problem should be resolved, if you add more sources, may also error, then you can change the value of 67108864 to large,

The main reason is that the default cache is not enough, you need to set the apt.conf file manually, here set the 64MB

Note: If there is no apt.conf, then you need to create a new apt.conf file, create a new file and then perform the above operation.

This article goes from:

Http://www.itnose.net/detail/6116378.html

Http://jingyan.baidu.com/article/f54ae2fcc881881e93b84967.html

"Go" Ubuntu 11.04 always prompts e:unable to the locate package when installing software using Apt-get

Related Article

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.