Während ich den Sudo apt-get update
auf ubuntu 17.04 Zesty Zapus ausführte, erhalte ich die folgende Fehlermeldung. Ich habe in den Fehlerzeilen gepostet. Ich wollte Python-Bibliotheken wie matplotlib und tkinter installieren, die nicht installiert werden konnten, da der obige Befehl nicht erfolgreich ausgeführt wurde. Bitte schlagen Sie mir vor, was zu tun ist.
Err:9 http://security.ubuntu.com/ubuntu zesty-security/main AMD64 Packages
404 Not Found [IP: 2001:67c:1560:8001::14 80]
Err:25 http://in.archive.ubuntu.com/ubuntu zesty/main i386 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Err:81 http://in.archive.ubuntu.com/ubuntu zesty-updates/main AMD64 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Err:113 http://in.archive.ubuntu.com/ubuntu zesty-backports/main AMD64 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Reading package lists... Done
W: The repository 'http://security.ubuntu.com/ubuntu zesty-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/main/binary-AMD64/Packages 404 Not Found [IP: 2001:67c:1560:8001::14 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty/main/binary-i386/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-updates/main/binary-AMD64/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-backports/main/binary-AMD64/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
17.04 erhält keine weitere Unterstützung von Ubuntu. Die Lösung, die für mich funktionierte, war also ein Upgrade auf 17.10, da keine andere Lösung half.
sie können das Problem lösen, indem Sie: us.archive.ubuntu.com und security.ubuntu.com in /etc/apt/sources.list durch old-releases.ubuntu.com ersetzen und dann die Aktualisierung abschließen .
siehe source 1 und ubuntu forum
es funktioniert für mich
In meinem Fall:
sed -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list
sed -e 's/security.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list
In meinem Fall konnte ich einige der Pakete folgendermaßen herunterladen:
Ich musste "us.archive.ubuntu.com" und "security.ubuntu.com" in "/etc/apt/sources.list" durch "old-releases.ubuntu.com" ersetzen, und dann konnte ich den Download beenden die Pakete, wie Ayush Kumar sagte.
Für die anderen Updates, die von meiner Hosting-Firma Linode aufgelistet wurden, habe ich Folgendes verwendet:
Ich musste das Flag --allow-unauthenticated
mit Sudo apt-get update verwenden.
Sudo apt-get update --allow-unauthenticated
Dann konnte ich die Aktualisierung abschließen.