Topic: HOW-TO Upgrading from #!Stable to #!Testing
STEP 1: Setting up the Sources
This guide assumes you're going to Testing. You'll want to comment out all the lines in /etc/apt/sources.list. Then, add this to the bottom:
## DEBIAN
# TESTING
deb http://ftp.us.debian.org/debian testing main contrib non-free
deb-src http://ftp.us.debian.org/debian testing main contrib non-free
## DEBIAN SECURITY
# TESTING
deb http://security.debian.org/ wheezy/updates mainSave and close. We're one step closer to having testing! ![]()
STEP 2: Preferences and apt.conf
Okay, these next steps are kind of important, so listen up! There's at least two more files we need to change, and it's easy to do! open up /etc/apt/preferences and comment out everything in there by putting a # infront of them. (I like to keep things in the file incase something gets messed up. Then you can just switch the comments around, and you have it back to normal)
Now, this file assigns priorities to different packages, and we want testing to have highest priority. So we'll do something like this:
Package: *
Pin: release a=testing
Pin-Priority: 990
#Package: *
#Pin: release n=statler
#Pin-Priority: 1001
#Package: *
#Pin: release n=squeeze
#Pin-Priority: 100That'll give packages from testing a priority of 990, which should make them the default choice (especially considering that there aren't any other sources)
Now you'll also want to edit /etc/apt/apt.conf. This is a quick, one word change:
APT::Default-Release "testing";And the sources and preferences are set up! ![]()
STEP 3: Fixing stupid perl loop
If you're lucky, all that was all you needed. But in some cases, if you were try to do a sudo apt-get update && sudo apt-get dist-upgrade now, you'd get into a loop like this:
Preparing to replace libc6 2.11.2-10 (using .../libc6_2.13-16_i386.deb) ...
substr outside of string at /usr/share/perl5/Text/WrapI18N.pm line 130, <GEN1> line 4.And that's no good. So we'll change that file a tiny bit, and make it work for us!
Open /usr/share/perl5/Text/WrapI18N.pm into any editor you want that has a line count. Go to line 130. It should say
$r = substr($string, $l);but we're going to change it to
if (length($text) < $l) {
$r = '';
} else {
$r = substr($string, $l);
}and save it. We're now all ready to try out #!Testing!
GET READY TO BLOW YOUR FREAKING SOCKS OFF!
STEP 4: BLOW YOUR FREAKING SOCKS OFF
Open up a terminal and run sudo apt-get update && sudo apt-get dist-upgrade
Wait a while while everything updates, and stand by because I'm pretty sure it'll want some input on a few things. If asked to replace any config files, open another terminal and backup the original and choose to replace. In my case (on a fresh installation) it only wanted to change 2 files, and I said Y.
Some issues with testing I've found:
Thunar finds my windows network, finds my desktop that I serve files from, and finds the folders themselves that I have shared. But it doesn't mount those folders. No, that would be too great.
No problem mounting them from terminal or fstab, though. ![]()
Reboot (both from cb-logout script and shutdown -r now) reboots the kernel, not the computer. Not a huge issue, but a pain if you forget.