例如:
- etch 爲 Debian 4.0
- sarge 爲 Debian 3.1
- woody 爲 Debian 3.0
- potato 爲 Debian 2.2
- slink 爲 Debian 2.1
- hamm 爲 Debian 2.0
- bo 爲 Debian 1.3
- rex 爲 Debian 1.2
- buzz 爲 Debian 1.1
因此,如果在/etc/apt/sources.list下寫入
deb http://http.us.debian.org/debian testing main contrib
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib
deb-src http://http.us.debian.org/debian testing main contrib non-free
deb-src http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
等最新不符合自己原先安裝軟體的版本,
每次只要進行apt-get update,就會導致一堆討厭的錯誤訊息。
Reading Package Lists... Error!
E: Unable to parse package file /var/lib/apt/lists/mirrors.kernel.org_debian_dists_stable_main_binary-powerpc_Packages (1)
E: The package lists or status file could not be parsed or opened.
E: Unable to parse package file /var/lib/apt/lists/mirrors.kernel.org_debian_dists_stable_main_binary-powerpc_Packages (1)
E: The package lists or status file could not be parsed or opened.
由於我在LINKSTATION上所安裝的是SARGE for PPC,
還好Debian還有保留了一些庫存「ARCHIVE」的程式庫可以進行更新,
因此將/etc/apt/sources.list改為
deb http://archive.debian.org/debian/ sarge main non-free contrib
deb-src http://archive.debian.org/debian/ sarge main non-free contrib
deb http://archive.debian.org/debian-security/ sarge/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ sarge/updates main non-free contrib
#deb http://archive.debian.org/debian-non-US/ sarge/non-US main contrib non-free
#deb-src http://archive.debian.org/debian-non-US/ sarge/non-US main contrib non-free
#由於Debian網站寫non-US的套件可由上述的方式取得,但是實際測試,並無法抓到檔案,
#因此改由下述的網址進行SARGE non-US的套件的更新
deb http://ftp.iinet.net.au/debian/debian-non-US/ sarge/non-US main contrib non-free
deb-src http://ftp.iinet.net.au/debian/debian-non-US/ sarge/non-US main contrib non-free
以vi更改sources.list完畢之後,進行apt-get update
最後出現
Reading Package Lists... Done
所有問題迎刃而解,就可以再使用apt-get安裝想安裝的Debian程式,
而不怕不小心升級了某些函式庫,
使得Kernal與lib不穩合而導致系統不穩定,或是開不了機的結果。
參考資料
http://www.debian.org/distrib/archive.zh-hk.html#old-archive
http://www.howtoforge.com/using-old-debian-versions-in-your-sources.list
沒有留言:
張貼留言