Debian: How to Upgrade from Squeeze to Wheezy?


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

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
Last Revision: January 13, 2025

Related Articles