Workaround for Apt-get update failure in the VM virtual machine in Ubuntu (may be valid)

Source: Internet
Author: User

First ensure that the virtual machine is connected to the network, you can use the ping command to check whether the network is connected. Ensure that the service is open when using a NAT network.

If you have previously executed the Apt-get update command but failed, execute the rm-rf/var/lib/apt/lists/partial/* and sudo apt-get clean command, then replace the source, there are many online can try, this Recommend this URL https://launchpad.net/ubuntu/+archivemirrors, with gedit/etc/apt/ The Sources.list command opens the file, the content of the source is modified, and then the Apt-get update is executed.

Remember, make sure that you are connected to the network, and sometimes the network is displayed, but Ping does not pass.

The above method is only for reference, I can use the time, may also have problems.

Workaround for Apt-get update failure in the VM virtual machine in Ubuntu (may be valid)

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.