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 ~~~