서버에 Debian Jessie가 있고 이를 다음으로 마이그레이션하려고 했습니다.데비안 스트레치. 우리 서버를 데비안의 실제 버전으로 업그레이드하고 싶습니다.
이 명령을 실행 sudo apt-get update
하면 오류가 발생합니다.
Err http://ftp.us.debian.org wheezy/main Sources
404 Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org wheezy/contrib Sources
404 Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org wheezy/non-free Sources
404 Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org wheezy/main amd64 Packages
404 Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org wheezy/contrib amd64 Packages
404 Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org wheezy/non-free amd64 Packages
404 Not Found [IP: 64.50.233.100 80]
실행 후 apt install apt -t stretch
다른 오류가 발생하지만 여전히 "Wheezy"가 발생합니다.
W: The repository 'http://ftp.us.debian.org/debian wheezy 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://downloads.opsview.com/opsview-core/latest/apt wheezy InRelease: The following signatures were invalid: 3814C24CF407EC2F9EB07631327C70CD0FC6984B
W: Failed to fetch http://downloads.opsview.com/opsview-core/latest/apt/dists/wheezy/InRelease The following signatures were invalid: 3814C24CF407EC2F9EB07631327C70CD0FC6984B
E: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/contrib/source/Sources 404 Not Found [IP: 208.80.154.15 80]
명령이 sudo apt-get upgrade
정상적으로 실행됩니다.
이 명령은 sudo apt-get dist-upgrade
"wheezy"에 대한 오류도 반환합니다.
Err http://ftp.us.debian.org/debian/ wheezy/main sysvinit amd64 2.88dsf-41+deb7u1
404 Not Found [IP: 208.80.154.15 80]
문서/etc/apt/sources.list
#deb http://ftp.nl.debian.org/debian stretch main
deb http://ftp.nl.debian.org/debian stretch main non-free contrib
deb-src http://ftp.nl.debian.org/debian stretch main non-free contrib
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://ftp.nl.debian.org/debian stretch-updates main contrib non-free
deb-src http://ftp.nl.debian.org/debian stretch-updates main contrib non-free
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
어쩌면 구성 파일에서 뭔가를 변경해야 할 수도 있지만 무엇을, 어디에 있는지 모르겠습니다.
답변1
Wheezy를 참조하는 다른 구성 파일이 있을 수 있습니다 /etc/apt/sources.list.d
. 해당 항목도 삭제해야 합니다.
이러한 오류는 무해하지만 왜 이를 제거하고 싶어하는지 이해합니다!