![从 Wheezy 升级到 Jessie,但 aptitude 仍然会命中 wheezy URL](https://linux22.com/image/1449489/%E4%BB%8E%20Wheezy%20%E5%8D%87%E7%BA%A7%E5%88%B0%20Jessie%EF%BC%8C%E4%BD%86%20aptitude%20%E4%BB%8D%E7%84%B6%E4%BC%9A%E5%91%BD%E4%B8%AD%20wheezy%20URL.png)
我按照以下方法将 Wheezy 升级为 Jessie发行说明 - 第 4 章,但现在当我执行此操作时,aptitude update
我得到的 URL 中包含 wheezy:
root@debian:/home/paullik# aptitude update
Hit http://ftp.ro.debian.org jessie InRelease
Hit http://ftp.ro.debian.org jessie-updates InRelease
Hit http://ftp.ro.debian.org jessie-backports InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.ro.debian.org jessie/main Sources
Hit http://ftp.ro.debian.org jessie/main i386 Packages
Hit http://ftp.ro.debian.org jessie/contrib i386 Packages
Hit http://ftp.ro.debian.org jessie/non-free i386 Packages
Hit http://ftp.ro.debian.org jessie/contrib Translation-en
Hit http://ftp.ro.debian.org jessie/main Translation-en
Hit http://ftp.ro.debian.org jessie/non-free Translation-en
Hit http://ftp.ro.debian.org jessie-updates/main Sources
Hit http://ftp.ro.debian.org jessie-updates/contrib Sources
Hit http://ftp.ro.debian.org jessie-updates/non-free Sources
Get: 1 http://ftp.ro.debian.org jessie-updates/main i386 Packages/DiffIndex [229 B]
Hit http://ftp.ro.debian.org jessie-updates/contrib i386 Packages
Hit http://ftp.ro.debian.org jessie-updates/non-free i386 Packages
Hit http://ftp.ro.debian.org jessie-updates/contrib Translation-en
Get: 2 http://ftp.ro.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
Hit http://ftp.ro.debian.org jessie-updates/non-free Translation-en
Get: 3 http://ftp.ro.debian.org jessie-backports/main i386 Packages/DiffIndex [2,023 B]
Hit http://ftp.ro.debian.org jessie-backports/contrib i386 Packages
Hit http://ftp.ro.debian.org jessie-backports/non-free i386 Packages
Hit http://ftp.ro.debian.org jessie-backports/contrib Translation-en
Get: 4 http://ftp.ro.debian.org jessie-backports/main Translation-en/DiffIndex [781 B]
Hit http://ftp.ro.debian.org jessie-backports/non-free Translation-en
Hit http://ftp.ro.debian.org jessie-backports/main i386 Packages
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/contrib Sources
Hit http://security.debian.org jessie/updates/non-free Sources
Hit http://security.debian.org jessie/updates/main i386 Packages
Hit http://security.debian.org jessie/updates/contrib i386 Packages
Hit http://security.debian.org jessie/updates/non-free i386 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit https://deb.nodesource.com wheezy InRelease
Hit https://deb.nodesource.com wheezy/main Sources
Hit https://deb.nodesource.com wheezy/main i386 Packages
Get: 5 https://deb.nodesource.com wheezy/main Translation-en_US [162 B]
Get: 6 https://deb.nodesource.com wheezy/main Translation-en [162 B]
Get: 7 https://deb.nodesource.com wheezy/main Translation-en_US [162 B]
Get: 8 https://deb.nodesource.com wheezy/main Translation-en [162 B]
Get: 9 https://deb.nodesource.com wheezy/main Translation-en_US [162 B]
Get: 10 https://deb.nodesource.com wheezy/main Translation-en [162 B]
Get: 11 https://deb.nodesource.com wheezy/main Translation-en_US [162 B]
Get: 12 https://deb.nodesource.com wheezy/main Translation-en [162 B]
Get: 13 https://deb.nodesource.com wheezy/main Translation-en_US [162 B]
Ign https://deb.nodesource.com wheezy/main Translation-en_US
Get: 14 https://deb.nodesource.com wheezy/main Translation-en [162 B]
Ign https://deb.nodesource.com wheezy/main Translation-en
Fetched 3,262 B in 8s (366 B/s)
我的sources.list
:
deb http://ftp.ro.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.ro.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://ftp.ro.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.ro.debian.org/debian/ jessie-updates main contrib non-free
#backports
deb http://ftp.ro.debian.org/debian/ jessie-backports main contrib non-free
这样可以吗?我该如何删除 Wheezy URL?
PS:apt-get update
输出相同。升级过程顺利。
答案1
对于其他读到这篇文章的人:
Hit https://deb.nodesource.com wheezy
不是分发管理的存储库。您必须自己维护/更新外部存储库。正如您之前提到的,您已经修复了这个问题。
答案2
在/etc/apt/sources.list.d/
我有另一个指向 的 repo wheezy
。我将其更改为jessie
,问题就解决了!