Debian

將 Debian 版本 7.11 (wheezy) 升級到 8.5 (jessie)

  • June 14, 2016

我有一段時間沒有更新的 Debian 系統(虛擬開發盒,無法從 Internet 訪問)。現在我想彌補這一點,但似乎資源不再可用:

$ 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,但這似乎是我所能得到的。

Jessie,有沒有辦法成功地將update我的系統升級到 Debian 8?dist-upgrade我的主要目標是以這種方式獲得 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

升級到 Debian 8 Jessie 比簡單地執行dist-upgrade. 我將總結所涉及的步驟,但我強烈建議您完全熟悉**Debian 8 發行說明 (jessie)**中的Debian 7 (wheezy) 升級

  1. 配置包儲存庫。

您修改包儲存庫的配置文件,/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

請參閱為 APT 準備源 2. 獲取 Jessie 的可用軟體包列表:

apt-get update
  1. 確保您有足夠的磁碟空間來下載所有新軟體包。然後,升級無需刪除或安裝任何其他軟體包即可升級的軟體包:
apt-get upgrade

這應該進行了安裝新核心和 udev的最小升級。 4. 重新啟動系統以使用新核心。 5. 通過升級剩餘的軟體包來完成該過程:

apt-get dist-upgrade

引用自:https://serverfault.com/questions/783608