Upgrading Debian 6 (squeeze) to Debian 7 (wheezy)

Well it’s time to upgrade my VPS from Debian 6 to Debian 7. Debian has upgrade instructions. The process I followed was:

  1. Enter a screen session
  2. Use script to record the session: script -t 2>~/upgrade-wheezystep.time -a ~/upgrade-wheezystep.script
  3. Edit /etc/apt/sources.list and replace “squeeze” with “wheezy”
  4. Run apt-get update
  5. Run apt-get upgrade
  6. Run apt-get dist-upgrade
  7. Run dpkg –purge php5-suhosin

And that’s it. 25 minutes, smooth as silk. This is why I don’t use backports or 3rd party repos. Note step 7, that caught me when I did my first dev box. If you don’t you’ll get the error:

Error: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/suhosin.so' -
/usr/lib/php5/20100525/suhosin.so: cannot open shared object file: No such file or directory in Unknown, line 0

This is because suhosin was removed in Debian 7.


About robertlabrie
DevOps Engineer at The Network Inc in metro Atlanta. Too many interests to list here, check out my posts, or look me up on LinkedIn

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: