≡ Menu

HowTo: Upgrade Debian Lenny to Squeeze

How do I upgrade Debian stable Linux (Lenny) server to Squeeze for the testing purpose using command line options?

You need to edit the file called /etc/apt/sources.list, enter:
# vi /etc/apt/sources.list
Find word lenny and replace with squeeze. A quick find and replace can be used as follows:

WARNING! Make a backup – it cannot be stressed enough how important it is to make a backup of your system before you do this.

:%s/lenny/squeez/g
See UNIX / Linux: vi / vim perform search and replace operation for more information.

At the end it should look as follows:

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

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

deb http://volatile.debian.org/debian-volatile squeeze/volatile main
deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main

Save and close the file.

Debian Linux: Update From Stable/Lenny to Ttesting/Squeeze

Type the following command:
# apt-get update
# apt-get install apt dpkg aptitude
# apt-get dist-upgrade

OR
# aptitude update
# aptitude install apt dpkg aptitude
# aptitude full-upgrade

Finally, reboot the server:
# reboot
After reboot make sure all required ports are open and all services are running:
# lsb_release -a
# netstat -tulpn
# tail -f /var/log/messages
# tail -f /path/to/log/file

Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 3 comments… add one }

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , , , , , , , ,