Debian Update source Error and "There is no public key available" workaround

Source: Internet
Author: User
Tags aliyun

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.

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.