Linux Novice Starter: Unable to locate package error resolution

Source: Internet
Author: User

Recently started to contact Linux, in the virtual machine loaded Ubuntu, the current version is Ubuntu 11.10, installed after the natural installation of some software, after setting the source of the software, began the sudo apt-get install, the results appear the following unable to Locate Package Error:

    1. [Email protected]:~$ sudo apt-get install mysql-server mysql-client
    2. [sudo] password for letuknowit:
    3. Reading Package Lists ... Done
    4. Building Dependency Tree
    5. Reading state information ... Done
    6. E:unable to locate package Mysql-server
    7. E:unable to locate package mysql-client
    8. [Email protected]:~$

This is called a depressed ah, on the wrong foot, do not bring such a scare just play Ubuntu children ~ So hurriedly find information, and review the previous operation, and finally found the problem in the execution of sudo apt-get install before replacing the software source, but forgot the update under the , then execute the following command:

    1. sudo apt-get update

When the above command is finished, execute the sudo apt-get install again! In fact, the error message has been very clear, unable to locate packet is unable to find the package, that is not hurriedly sudo apt-get update!

Linux Novice Starter: Unable to locate package error resolution

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.