In general, we buy and open the Linux VPS host, login ssh first need to do is to update the current server's source installation package, so that you can ensure that the latest security patches on the server, and in the compilation of software to ensure that the latest version of the software. Today, Mr. Chiang. An error cannot be updated when the update source is updated in the DEBIAN6 system.
First, Debian update source Error tips
The code is as follows |
Copy Code |
w:failed to fetch http://http.debian.net/debian/dists/squeeze/main/binary-i386/Packages.gz 404 Not Found [IP: 149.20.37.36 80]
E:some index files failed to download, they have been, or old ignored ones.
|
This problem should be caused by the server not getting the files from the Debian update package, and our solution is to update the installation source package for the server.
Second, Debian update source installation package
The code is as follows |
Copy Code |
/etc/apt/sources.list
|
The contents of this file:
code is as follows |
copy code |
Deb Http://mirrors.aliyun.com/debian wheezy main contrib non-free
Deb-src Http://mirrors.aliyun.com/debian wheezy m Ain contrib Non-free
Deb Http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
Deb-src Http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
Deb Http://mirrors.aliyun.com/debian-secu rity wheezy/updates main contrib non-free
Deb-src http://mirrors.aliyun.com/debian-security wheezy/updates Main Contrib Non-free
|
Here we will update the original source into a Aliyun package. After the update is saved, we then execute Apt-get update-y, which is generally not a problem.
Third, resolve there is no public key available error
The code is as follows |
Copy Code |
W:there is no public key available for the following key ids:7638d0442b90d010
W:there is no public key available for the following key ids:7638d0442b90d010
W:there is no public key available for the following key ids:9d6d8f6bc857c906
|
But, old Chiang. After updating the source, an error occurred while performing the upgrade command.
The code is as follows |
Copy Code |
Apt-key adv--recv-keys--keyserver keyserver.ubuntu.com 7638d0442b90d010
Apt-key adv--recv-keys--keyserver keyserver.ubuntu.com 7638d0442b90d010
Apt-key adv--recv-keys--keyserver keyserver.ubuntu.com 9d6d8f6bc857c906
|
According to our server error ID prompts, we perform the update key command 3 respectively.
Iv. Execute the UPDATE command
The code is as follows |
Copy Code |
Apt-get update-y
|
Finally, when we rerun the update command, there is no problem with the update source.