Debian Wheezy to Jessie - How to Upgrade

1. Make a system upgrade and dist upgrade

# apt-get update
# apt-get upgrade
# apt-get dist-upgrade

 

2. Update

/etc/apt/sources.list

by replacing all occurrences of

wheezy

with

jessie

You can make it with the following command:

# sed -i 's/wheezy/jessie/g' /etc/apt/sources.list

 

3. Update and upgrade

# apt-get update
# apt-get upgrade

 

4. Make dist upgrade

# apt-get dist-upgrade

 

5. Reboot

# reboot

 

6. Check the upgrade

# hostnamectl