我有一个 Debian 系统(虚拟开发箱,无法通过互联网访问),已经有一段时间没有更新了。现在我想弥补这一点,但似乎不再有可用的源代码:
$ sudo -s
> LANG=C apt-get update
...
Ign http://backports.debian.org squeeze-backports/non-free Translation-de_DE
Err http://backports.debian.org squeeze-backports/main amd64 Packages
301 Moved Permanently [IP: 128.31.0.62 80]
Err http://backports.debian.org squeeze-backports/contrib amd64 Packages
301 Moved Permanently [IP: 128.31.0.62 80]
Err http://backports.debian.org squeeze-backports/non-free amd64 Packages
301 Moved Permanently [IP: 128.31.0.62 80]
Fetched 13.5 kB in 8s (1512 B/s)
W: Failed to fetch http://backports.debian.org/debian-backports/dists/squeeze-backports/main/binary-amd64/Packages 301 Moved Permanently [IP: 128.31.0.62 80]
W: Failed to fetch http://backports.debian.org/debian-backports/dists/squeeze-backports/contrib/binary-amd64/Packages 301 Moved Permanently [IP: 128.31.0.62 80]
W: Failed to fetch http://backports.debian.org/debian-backports/dists/squeeze-backports/non-free/binary-amd64/Packages 301 Moved Permanently [IP: 128.31.0.62 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
我今天能够dist-upgrade
从 7.4 升级到 7.11,但这似乎是我所能得到的全部。
杰西,有没有办法成功地update
将dist-upgrade
我的系统升级到 Debian 8?我的主要目标是通过这种方式获得 apache 2.4。
更新:
这是我的/etc/apt/sources.list
文件,删除了空行和注释行:
deb http://debian.uni-duisburg-essen.de/debian/ wheezy main
deb-src http://debian.uni-duisburg-essen.de/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://debian.uni-duisburg-essen.de/debian/ wheezy-updates main
deb-src http://debian.uni-duisburg-essen.de/debian/ wheezy-updates main
deb http://opensource.wandisco.com/debian wheezy svn18
答案1
升级到 Debian 8 Jessie 比简单地运行 更复杂dist-upgrade
。我将总结所涉及的步骤,但我强烈建议您完全熟悉从 Debian 7 升级(wheezy)来自Debian 8 发行说明 (jessie)。
配置软件包存储库。
您修改软件包存储库的配置文件,
/etc/apt/sources.list
以包含 Jessie 存储库的 URL。它应包含类似以下内容的条目:deb http://httpredir.debian.org/debian jessie main deb-src http://httpredir.debian.org/debian jessie main deb http://httpredir.debian.org/debian jessie-updates main deb-src http://httpredir.debian.org/debian jessie-updates main deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main
获取 Jessie 可用的软件包列表:
apt-get update
确保您有足够的磁盘空间来下载所有新软件包。然后,升级可以升级的软件包,而无需删除或安装任何其他软件包:
apt-get upgrade
这应该进行最小升级安装新的内核和 udev。
重启系统使用新内核。
通过升级剩余的软件包来完成该过程:
apt-get dist-upgrade