Upgrade Debian 7 to Debian 8 and it is time to upgrade

Upgrade Debian 7 to Debian 8 is needed before upgrading to Debian 9 and 10. If your Debian 7 computer is connected to internet you need to upgrade. Debian 7 reached end of life for updates 31st of May 2018. So updating is long overdue. 

It is easy, safe and simple to update your Debian 7 to a newer version. You can only update one version at the time. So if you want to update to Debian 10, you need to update to version 8 and 9 before 10.

For lower-end CPUs, this is going to take some time tho. There is a lot of packages that need to be downloaded and installed.

WARNING: Always backup before upgrading your system. Unless there is nothing of importance and doesn’t matter if it is lost. If you are on a virtual machine like VirtualBox, just do a snapshot. It is quick and easy. If you run a MySQL database or Apache server make sure you answer that you keep your own configs instead of the package maintainers config. AND DO A BACKUP!

If you have a updated Debian 7 system and check the version number you should see something like this when checking the version number.

cat /etc/debian_version 
7.11

First, you need to change sources.list to be able to upgrade Debian 7 to Debian 8. You need to change the sources.list to Jessie (Debian 8). To delete the content of your current sources.list, you need to be root (sudo will not have access to delete it).

> /etc/apt/sources.list

Run your favourite editor like vim, nano, emacs, etc. I like vim.

vim /etc/apt/sources.list

Copy and paste this (Jessie sources.list)

# jessie contrib main 

deb http://ftp.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free

You can then run the following commands in the following order. In short we now need to update your systems packages and upgrade the ones that needs to be upgrade. Then we run the distro upgrade command to upgrade the kernel and all needed packages for Debian 8.

apt-get update

apt-get upgrade

apt-get dist-upgrade

After upgrading Debian 7 to Debian 8 you will probably have a lot of packages on your system that is not needed anymore. You can remove them with the command below.

apt-get autoremove

Since your kernel now have been updates you need to reboot. To verify this you can check the kernel version before and after the reboot.

uname -a
Linux db1 3.2.0-6-amd64 #1 SMP Debian 3.2.102-1 x86_64 GNU/Linux

After the reboot you should see a difference in the kernel version number.

Linux db1 3.16.0-10-amd64 #1 SMP Debian 3.16.70-1 (2019-07-22) x86_64 GNU/Linux

You should now have a Debian 8 system instead of Debian 7. Debian 8 is still at this moment supported and you have a safer system.

If you are looking for the faster Debian mirror check out the link.

About Author

Related Posts

php8 gd

PHP8 gd Activate after installation

PHP8 GD activate after installation. GD doesn’t get activated by default. Not even a reboot after installation will activate it. So how do we do it? In…

Debian 12: linux-image-6.1.0-10amd64

Troubleshooting dependency issues in Debian 12: Resolving linux-image-6.1.0-10amd64 package dependency problems. If you installed the Debian 12 from the live image the issue is the raspi-firmware. Even…

OpenMediaVault default password

OpenMediaVault default password

OpenMediaVault default password is printed in the documentation. I did not see it the first time I installed it either. So I had to do some detective…

Debian change dns

Debian change DNS settings to a new DNS

Debian change DNS settings for speed improvement or privacy. It is really easy to do. So let us see how it’s done and get to it. The…

Upgrade debian 9 to debian 10

Upgrade Debian 9 to Debian 10

Upgrade Debian 9 to Debian 10 is very similar to upgrading previous versions. The only you need to do is change the sources to Buster instead of…

Debian 10 Static IP

Debian 10 Static IP

Debian 10 static IP works just like the previous version. They changed the naming of the network interfaces in Debian 9. However if you have upgraded from…

This Post Has One Comment

Leave a Reply