Solve Debian system apt

888u

Last update at :2024-06-27,Edit by888u

No matter which Linux VPS or server we choose, the first thing we need to do after logging in to SSH remotely is to update the source. Whether it is a CentOS or Debian system, we need to do this to ensure that the system source is the latest software version. Just now, Snail encountered a 404 error message when he apt-get update the official source address on a Debian system.

Err http://http.debian.net squeeze/main amd64 Packages 404 Not Found

It should be a source problem. The official Debian source address cannot be obtained. Snail can replace the Alibaba source in the CentOS system before. You can refer to this method (CentOS replaces the Alibaba Cloud yum source to solve the problem of being unable to update), and the same can be done if it is a Debian system (solve the problem of the Debian environment being unable to update the update source and replace the Alibaba Cloud Mirror) to replace the Alibaba source.

However, here is another way to use NetEase 163 source:

mv /etc/apt/sources.list /etc/apt/sources.list.bak && \\\\echo \\”deb http://mirrors.163.com/debian/ jessie main non-free contrib \\” >/etc/apt/sources.list && \\\\echo \\”deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib\\” >>/ etc/apt/sources.list && \\\\echo \\”deb-src http://mirrors.163.com/debian/ jessie main non-free contrib\\” >>/etc/apt/sources.list && \\\\echo \\”deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib\\” >>/etc/apt/sources.list

Throw it in directly.

After the execution is completed, let’s try apt-get update -y again.

It seems that there is no big problem, but there is a small problem. A prompt like "W: There is no public key available for the following key IDs\\" appears. It is not perfect yet and needs to be solved.

apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 7638D0442B90D010apt-key adv –recv-keys –keyserver keyserver.ubuntu.com CBF8D6FD518E17E1

Execute according to different ID prompts. Then we update to see if there are any errors.

It seems that this problem has been successfully solved.

Recommended site searches: public IP, Mainland China registration-free space, server defense high defense, space service provider, domain name free registration 0 yuan registration, Mainland China registration-free host, agent registration, high defense US server, web page registration, Korean high-defense server,

Solve Debian system apt

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码