Closed wildechair closed 3 months ago
root@30475e254726:/var/www/html# apt-get update Ign:1 http://security.debian.org/debian-security stretch/updates InRelease Ign:2 http://security.debian.org/debian-security stretch/updates Release Ign:3 http://deb.debian.org/debian stretch InRelease Ign:4 http://deb.debian.org/debian stretch-updates InRelease Ign:5 http://deb.debian.org/debian stretch Release Ign:6 http://deb.debian.org/debian stretch-updates Release Ign:7 http://deb.debian.org/debian stretch/main all Packages Ign:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages Ign:9 http://security.debian.org/debian-security stretch/updates/main all Packages Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages Ign:7 http://deb.debian.org/debian stretch/main all Packages Err:10 http://deb.debian.org/debian stretch/main amd64 Packages 404 Not Found [IP: 151.101.78.132 80] Err:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
root@30475e254726:/var/www/html# apt-get install wget Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package wget
执行以下全部命令可解决 sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list sed -i '/stretch-updates/d' /etc/apt/sources.list