This is a note I use to update my Debian Wheezy to Jessie correctly.
First, update your current wheezy system and make backups if you care about your data.
1 |
apt-get update && apt-get upgrade && apt-get dist-upgrade |
Then, you have to replace all wheezy references by Jessie in your sources.list file
1 |
sed -i 's/wheezy/jessie/g' /etc/apt/sources.list |
Mine is like that after the above command
1 2 3 4 5 6 7 8 |
deb http://ftp.fr.debian.org/debian jessie main non-free contrib deb-src http://ftp.fr.debian.org/debian jessie main non-free contrib deb http://security.debian.org/ jessie/updates main contrib non-free deb-src http://security.debian.org/ jessie/updates main contrib non-free deb http://packages.dotdeb.org jessie all deb-src http://packages.dotdeb.org jessie all |
You can now start updating to Jessie. Reload packages list and start upgrade with these commands again
1 |
apt-get update && apt-get upgrade && apt-get dist-upgrade |
During the upgrade process, you will be asked if you want to remove “root” login permission. Be careful if it’s your only user because you won’t be able to log with “root” anymore.
Take your time to analyze conflicts that could appear between old and new config files. If you don’t care at the moment, just pause installation and keep a backup of old config file and you remember that you have to check it afterward.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Configuration file `/etc/bash.bashrc' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** bash.bashrc (Y/I/N/O/D/Z) [default=N] ? Z Type `exit' when you're done. # cp /etc/bash.bashrc /etc/bash.bashrc.old # exit |
I know changes I’ve made to my /etc/bash.bashrc file so I’ll check it later after upgrade.
After everything is finished without any issue, you can restart your server
1 |
reboot |
Recent Comments