apt-get funktioniert nicht auf Ubuntu VPS

apt-get funktioniert nicht auf Ubuntu VPS

Ich konnte mit dem Befehl apt-get keine Software auf meinem VPS installieren und das Terminal druckt:

root@ubuntu:~# apt-get install python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3' has no installation candidate

Was ist das Problem? Ich habe apt-get update als Root-Benutzer ausprobiert und Folgendes wird mir angezeigt:

root@ubuntu:~# apt-get update
Err http://security.ubuntu.com precise-security Release.gpg
  Temporary failure resolving 'security.ubuntu.com'
Err http://us.archive.ubuntu.com precise Release.gpg
  Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-updates Release.gpg
  Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-backports Release.gpg
  Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Temporary failure resolving 'us.archive.ubuntu.com'

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg  Temporary failure resolving 'us.archive.ubuntu.com'

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg  Temporary failure resolving 'us.archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg  Temporary failure resolving 'security.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ubuntu:~#

Und mein VPS-Standort ist in Deutschland. Ist das wichtig?

Antwort1

Sie müssen Ihre DNS-Resolver-Konfiguration korrigieren, z. B. den DNS-Server, den Ihr eigener Server verwendet, um Hostnamen in IP-Adressen umzuwandeln. Dies sollte sich nicht auf Websites auswirken, die auf Ihrem VPS laufen. Ändern Sie nicht den DNS-Server, den Ihre Domänen verwenden – das würde Ihre Websites beschädigen.

Sie können entweder den DNS-Server Ihres Anbieters verwenden (erfragen Sie die Einstellungen bei ihm oder lesen Sie die Dokumentation dazu) oder zum BeispielDie öffentlichen DNS-Resolver von Google.

Anweisungen zum Ändern Ihres DNS-Servers finden Sie beispielsweise unterdiese Frage auf askubuntu.com

verwandte Informationen