apt-get이 Ubuntu VPS에서 작동하지 않습니다

apt-get이 Ubuntu VPS에서 작동하지 않습니다

VPS에서 apt-get 명령을 사용하여 소프트웨어를 설치할 수 없으며 터미널에 다음이 인쇄됩니다.

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

뭐가 문제 야? 루트 사용자로 apt-get update를 시도했는데 다음과 같은 내용이 표시됩니다.

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:~#

그리고 내 VPS 장소는 독일에 있습니다. 그게 그렇게 중요한 건가?

답변1

DNS 확인자 구성(예: 자신의 서버가 호스트 이름을 IP 주소로 변환하는 데 사용하는 DNS 서버)을 수정해야 합니다. 이는 VPS에서 실행되는 웹사이트에 영향을 미치지 않습니다. 도메인이 사용하는 DNS 서버를 변경하지 마십시오. 변경하면 웹사이트가 손상될 수 있습니다.

공급자의 DNS 서버를 사용할 수 있습니다(설정을 요청하거나 문서를 확인하세요). 또는 예를 들어Google의 공개 DNS 확인자.

DNS 서버를 변경하는 방법에 대한 지침은 다음을 확인하세요.askubuntu.com에 있는 이 질문

관련 정보