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, Simplified(简体中文)

添加新评论