Today I updated my old Debian 6 Squeeze to Debian 7 Wheezy. Actually, it was quite simple.
First, make a last update of your packages.
1 |
apt-get update && apt-get upgrade |
Then, Just modify every occurrences of Squeeze to Wheezy in your /etc/sources.lst. You can use this command to do it
1 |
sed -i 's/squeeze/wheezy/g' /etc/apt/sources.list |
1 2 3 4 5 6 7 8 |
deb http://mirror.ovh.net/debian/ wheezy main contrib deb-src http://mirror.ovh.net/debian/ wheezy main contrib deb http://security.debian.org/ wheezy/updates main contrib deb-src http://security.debian.org/ wheezy/updates main contrib deb http://packages.dotdeb.org wheezy all deb-src http://packages.dotdeb.org wheezy all |
You can now start downloading the new package list with
1 |
apt-get update && apt-get upgrade |
I got one error with package mysql-client-5.5. Lets remove it. You will install it later if you need it. Don’t worry, it won’t remove your databases !
1 2 |
apt-get -o Dpkg::Options::="--force-overwrite" install -f apt-get remove mysql-client-5.5 |
Install should proceed now.
When nothing remains to be upgraded, we can run the upgrade system command :
1 |
apt-get dist-upgrade |
Don’t forget to reinstall mysql-client-5.5 and its dependencies, you may need it one day :P
1 |
apt-get install mysql-client-5.5 mysql-server-5.5 |
Only difficulties are to confirm modifications in config files. Sometimes you want to keep your previous modifications, sometimes you don’t.
Done !
Hello,
I’m using dedicated server on OVH.
Could you tell me please, should I update the kernel (the latest version is 3.14.32-xxxx-grs-ipv6-32, my current 3.2.13-xxxx-grs-ipv6-32)?
I tried to ask OVH support, but nothing. They just said “use the official depots to have the latest version of your system.” :)
Thanks in advance.
Hi
Of course you should always have the latest version for your linux distribution as it corrects lots of critical vulnerabilities !
Check OVH FAQ to update your OVH box !
Maybe the two versions you typed are not from the same distribution. Try commands to update your kernel from this post and see if some updates are proposed !
Thanks for your response. I run server with latest kernel using Netboot technology on OVH and successfully upgrade my debian to wheezy.
Hello,
first I want to thank you for this post, I was looking for how to update debian squeezy to wheezy.
I just have 2 question if you can help me :
I checked my kernel version 3.10.9-xxxx-grs-ipv6-64. on OVH directories, the last stable version is 3.14.32. Does the kernel goes with debian version that I’m using or I can update it before updating debian 6 to 7 ?
I read that you had some issues with mysql and you had to remove it during the installation.
should I backup my databases before ?
another question I’m using currently theses version of apache and php5 :
-PHP 5.3.3-7+squeeze19 with Suhosin-Patch (cli) (built: Feb 17 2014 10:10:23)
-Apache/2.2.16 (Debian)
do you think that It will remove modification that I have made on theses “programs” to improve my server ?
thank you sir
Hi to all, the contents existing at this web site are actually awesome for people knowledge,
well, keep up the good work fellows.