Debian從穩定版升級到測試版

發現SciTE有個插件SciTE Proj,但是只在測試倉庫裡

讀了這篇“其實debian不穩定版本的名不副實”(http://raphaelhertzog.com/2010/12/20/5-reasons-why-debian-unstable-does-...)之後,我決定把我的穩定版本的Debian升級到測試版!

將文件/etc/apt/sources.list的內容從

deb http://ftp.cn.debian.org/debian squeeze main
deb-src http://ftp.cn.debian.org/debian squeeze main

deb http://ftp.cn.debian.org/debian squeeze-updates main
deb-src http://ftp.cn.debian.org/debian squeeze-updates main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

deb http://ftp.cn.debian.org/debian-backports squeeze-backports main
deb-src http://ftp.cn.debian.org/debian-backports squeeze-backports main

改變為

deb http://ftp.debian.org/debian testing main contrib non-free
deb-src http://ftp.debian.org/debian testing main contrib non-free
deb http://security.debian.org/debian-security testing main contrib non-free

然後 aptitude update
看到這個:

... ... ... ...
Get:7 http://ftp.debian.org testing/contrib Sources [46.3 kB]
Get:8 http://ftp.debian.org testing/non-free Sources [85.2 kB]
Get:9 http://ftp.debian.org testing/main i386 Packages [7,280 kB]
Get:10 http://ftp.debian.org testing/contrib i386 Packages [61.6 kB]
Get:11 http://ftp.debian.org testing/non-free i386 Packages [115 kB]
Fetched 12.8 MB in 1min 7s (189 kB/s)
Current status: 1713 updates [+1713], 31479 new [+30274]

祈禱下先!
然後開始升級:"apt-get dist-upgrade"
接著就是一路Yes直到結束
之後重啟

結果有麻煩了,桌​​面啟動不了!
用root登錄,檢查日誌/var/log/Xorg.0.log,發現這麼一句:
[ 29.839] (EE) Failed to load module "nvidia" (module does not exist, 0)
原來升級之前有裝Nvidia的官方驅動,現在內核都升級了,驅動也要重新安裝下才行:

所以用lynx去官網http://www.nvidia.com/object/linux-display-ia32-280.13-driver.html 給我的G105M顯卡下載最新的驅動,立刻運行之:
sh ./NVIDIA-Linux-x86-280.13.run

還是不行!安裝程序報錯:​​ recieved signal SIGTERM; aborting ,然後自動退出了!

看安裝日誌'/var/log/nvidia-installer.log' 又發現了這個:

.....
If you want to use the nvidia-installer please uninstall the Debian packages

first. The two methods of installation cannot be used at the same time.
Please ABORT now!

看來這個安裝程序不喜歡或者不兼容Debian自帶Nvidia相關程序:

aptitude search nvidia, 搜出它們,然後卸載之:

aptitude remove nvidia-alternative nvidia-glx nvidia-kernel-dkms nvidia-kernel-common nvidia-installer-cleanup nvidia-settings nvidia-vdpau-driver nvidia-support

現在可以再次嘗試安裝了:

/etc/init.d/gdm3 stop
sh ./NVIDIA-Linux-x86-280.13.run

這次沒有報錯,順利完成。
可以重新啟動gdm了/etc/init.d/gdm3 start, 一切正常!

然後呢?
當然是這個啦:
aptitude install sciteproj

Chinese, Traditional

發表新回應