Debian: How to Upgrade from Squeeze to Wheezy?

less than a minute of reading

This article covers the short process of upgrading Debian operating system from Squeeze to Wheezy.

Default space wallpaper of Debian 6.0 (codename Squeeze). This is a pretty solid operating system.
Is Squeeze up to date?

It has to. To be sure run apt-get update && apt-get upgrade command.

Edit sources.list

Next step is to have proper entries in sources.list file.

Edit file with the editor of your choice, like: vim /etc/apt/sources.list and replace the entire content with:

deb http://ftp.pl.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.pl.debian.org/debian wheezy main contrib non-free
deb http://ftp.pl.debian.org/debian wheezy-updates main contrib non-free
deb http://ftp.pl.debian.org/debian-security wheezy/updates main contrib non-free

You are free to change mirror's country code to a different one.

Upgrade

Update sources with:

apt-get update

Upgrade packages with:

apt-get upgrade

Finally upgrade the entire distribution with:

apt-get dist-upgrade

This should be enough to get you from Squeeze to Wheezy.


Words: 155
Published in: Debian · Linux