Solve the problem of modifying apt source 404 in systems below Debian 8

888u

Last update at :2024-07-09,Edit by888u

The reason is that Debian officially deleted files below 8; method: directly modify them to 163.

1. Make a backup mv /etc/apt/sources.list /etc/apt/sources.list.bak

2. Edit the /etc/apt/sources.list file vi /etc/apt/sources.list

# At the beginning of the file, add the following entries deb http://mirrors.163.com/debian/ jessie main non-free contrib deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib deb-src http://mirrors.163.com/debian/ jessie main non-free contrib deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

The following is the source of Alibaba Cloud: deb http://mirrors.aliyun.com/debian jessie main deb-src http://mirrors.aliyun.com/debian jessie main deb http://mirrors.aliyun.com/ jessie/updates main deb-src http://mirrors.aliyun.com/ jessie/updates main

Or the official old version source: deb http://snapshot.debian.org/archive/debian/20190321T212815Z jessie main deb-src http://snapshot.debian.org/archive/debian/20190321T212815Z jessie main deb http://snapshot.debian.org/archive/debian/20190321T212815Z/ jessie/updates main deb-src http://snapshot.debian.org/archive/debian/20190321T212815Z/ jessie/updates main deb http://snapshot.debian.org/archive/debian/20190321T212815Z/ jessie-updates main deb-src http://snapshot.debian.org/archive/debian/20190321T212815Z/ jessie-updates main

3. Update software source apt-get update

Reprinted from: https://www.hostloc.com/thread-533968-1-1.html

Recommended site search: website space purchase, American independent host, foreign free ASP space, Hong Kong cloud server, how to query ip address, 100m virtual host, free proxy ip address, asp host, foreign vps server rental, dual-line server,

Solve the problem of modifying apt source 404 in systems below Debian 8

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