sudo apt-get install E: Package * There are no candidates for installation-workaround

Source: Internet
Author: User
sudo apt-get install E: Package * There are no candidates available for installation

Ensure Ubuntu networks are available:One, the question:jiaoteng@jiaoteng-desktop:~$ sudo apt-get install vim is reading the package list ... Completing the dependency tree that is analyzing the package is reading status information ... Complete the currently unavailable package vim, but it is referenced by other packages. This may mean that the missing package may have been discarded, or it can only be found in other publishing sources E: Package vim has no candidate to install
jiaoteng@jiaoteng-desktop:~$ sudo apt-get install g++ is reading the package list ... Completing the dependency tree that is analyzing the package is reading status information ... Complete the package g++ is not available now, but it is referenced by other packages. This may mean that the missing package may have been discarded, or it could only be found in other publishing sources E: Package g++ not yet available for installation
Method: Add source to your software source: sudo vim/etc/apt/source.list add: Deb Http://cz.archive.ubuntu.com/ubuntu lucid main save exit sudo apt-get upda The Te sudo apt-get install * * can be installed.two, according to the above method, the network is not very good, sometimes the source is not, so there is no above method. If you have a DVD version of Ubuntu 9.04, use it as a source, is really a good idea, but also eliminates the trouble of networking, the specific operations are as follows: Open the terminal, execution: sudo gedit/etc/apt/sources.list will be inside all content deleted, save exit. Then the terminal executes: sudo mount-o loop-t iso9660/.../ubuntu-9.04-dvd-i386.iso/media/cdrom0/sudo apt-cdrom-m Add The results of the implementation are as follows: The/media/ubuntu-9.04-dvd/is being identified as a CD-ROM mount point. [6c9fa028a2a77a6a3b571ccefb68b9ea-2] is looking for an index file on the disc ... 2 package indexes, 0 source code package indexes, 0 translation indexes, and 1 digital signatures were found. The CD now has the name: "Ubuntu 9.04 _jaunty jackalope_-Release i386 (20090421.3)" Copying the package list GPGV: April 22, 2009 Wednesday 03:02 02 CST-created signature using DSA, key number FBB75451 GPGV: Good signature from "Ubuntu CD Image Automatic signing key &L T;cdimage@ubuntu.com> "Reading Package Indexes ... Finish writing the new package source list the package source settings for this disc are: Deb Cdrom:[ubuntu 9.04 _jaunty jackalope_-Release i386 (20090421.3)]/jaunty main restr icted repeat the same action for the other discs in your CD-ROM suite. W:skipping non-exisiting file/media/ubuntu-9.04-dvd/dists/jaunty/main/binary-i386/packages w:skipping Non-exisiting file/media/ubuntu-9.04-dvd/dists/jaunty/main/debian-installer/binary-i386/packages W:Skipping non-exisiting file/media/ubuntu-9.04-dvd/dists/jaunty/restricted/binary-i386/packages then execute: sudo apt-get Update can be installed you want to the software
PS: Finally after the use of a umount problem see: http://341719xubin.blog.163.com/blog/static/1329207932011958263071/actually solve the above problem the simplest way:is to select the CD/DVD "Use Physical driver", and then restart the virtual machine

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.