In ubuntu, Apt-Get always shows 0% [waiting for the header].

Source: Internet
Author: User

This problem has plagued me for a long time. Before I could not download something, I had to find it on the Internet and download it before installing it. However, this installation of the. Deb package had a problem and I did not know how to solve it... But let me install the system apt-Get.

Baidu found that 0% [waiting for the header] is caused by Ctrl-C during the previous installation. How can this problem be solved? On the Internet, you can delete files under/var/Cache/APT/archives.
$ Nautilus/var/Cache/APT/
After entering the directory, all the items under the folder are deleted. After exiting
$ Sudo apt-Get install libgtk2.0-Dev
System prompt E: Unable to open the lock file/var/Cache/APT/archives/lock-open (2: No file or directory). This file does not exist, I deleted them all just now. Why can't I create a new one? No/var/Cache/APT/archives/directory system can be created.

$ Sudo mkdir/var/Cache/APT/archives/

After downloading the file again, the system prompts E: the "/var/Cache/APT/archives/partial" directory cannot be found. (This directory was clearly unavailable when it was deleted .)

$ Sudo mkdir/var/Cache/APT/archives/partial
$ Sudo apt-Get install libgtk2.0-Dev

Solve the problem ~~~

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.