服务器上有 Debian Jessie,我尝试将其迁移到Debian 伸展。我想将我们的服务器升级到实际版本的 Debian。
该命令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
可能还有另一个配置文件/etc/apt/sources.list.d
引用了 Wheezy。您也应该删除那些条目。
这些错误是无害的,但我理解为什么你想摆脱它们!