Upgrade from Debian stable to testing version

I found that sciteproj is a good thing, but It's only in the testing repo for Debian.

After read the article "5 reasons why Debian Unstable does not deserve its name"(http://raphaelhertzog.com/2010/12/20/5-reasons-why-debian-unstable-does-...)
I decide to "Upgrade" my stable Debian(squeeze) to the testing version on my laptop:

Change the content of /etc/apt/sources.list from

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

To

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

And then aptitude update
I got this:

... ... ... ...
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]

Say a litter prayer and excute command:"apt-get dist-upgrade" to upgrade
Keeping answering "Y(yes)" to the questions during the upgrade process till it's done.

Restart.

A trouble come up: the X Desktop failed to start.
Log in as root, by checking the /var/log/Xorg.0.log, I find a sentence like this
[ 29.839] (EE) Failed to load module "nvidia" (module does not exist, 0)

I got nvidia official driver installed in my "/etc/X11/xorg.conf" before the upgrade, but as the kernel has been upgrade from 2.6 to 3.0, the driver has too be reinstalled.

So go to http://www.nvidia.com/object/linux-display-ia32-280.13-driver.html using lynx and download the latest driver of my G105M graphic card, and run it:
sh ./NVIDIA-Linux-x86-280.13.run

Unfortunately the installer aborted with a msg: recieved signal SIGTERM; aborting !

Again by check the nvidia-installer log file '/var/log/nvidia-installer.log' and msg below found:

.....
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!

OK, so it's because the official installer does not like the shipped Debian packages about nvidia!

Do a aptitude search nvidia, and then remove those "nvidia" packages installed:

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

Now stop gdm3 and reinstall the Nvidia official driver:

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

Finally nothing wrong happened again, so, restart gdm3 with /etc/init.d/gdm3 start, everything goes well again!

What's next?
Surely it's:
aptitude install sciteproj

English

Add new comment