How to upgrade Debian 7 (Wheezy) to 10 (Buster) version?

It is always recommended to upgrade the version to prevent any security vulnerability. You can check the current version of your existing Debian version using the below command.

# lsb_release -a

          

As per the above image currently, there are Debian 7.8(Wheezy) is running. Before running any upgrade, it is very important to take the backup of all the Data like Web-content, Database and email accounts. You should take a backup at third party Backup service or in external Drive.

We will upgrade Debian OS step by step as Upgrade Debian 7 (Wheezy) to 8 (Jessie) to 9 (Stretch) to 10 (Buster).

 

Upgrade Debian 7 (Wheezy) to 8 (Jessie)

 

  1. Add the following syntax at /etc/apt/sources.list

    
    deb http://ftp.debian.org/debian/ jessie main
    deb-src http://ftp.debian.org/debian/ jessie main
    
    deb http://security.debian.org/debian-security jessie/updates main
    deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main
    # jessie-updates, previously known as 'volatile' deb http://ftp.debian.org/debian/ jessie-updates main deb-src http://ftp.debian.org/debian/ jessie-updates main

 

  1. Update Debian Package using apt-get

    # apt-get update
    
    # apt-get upgrade
  1. Hit Yes to apply service Restart during package upgrade.





  2. Dist upgrade will update all the package to the newest available version

    # apt-get dist-upgrade
  1. We will disable the Password authentication and let the dist upgrade completed.

  2. Reboot Server.

  3. Enter below command. It will show below output that your version is upgraded to Debian 8 (jessie).

    # cat /etc/os-release
    

 

Debian 8 (Jessie) to 9 (Stretch)

 

  1. Replace the below content at /etc/apt/sources.list

    
    deb http://ftp.debian.org/debian/ stretch main
    deb-src http://ftp.debian.org/debian/ stretch main
    
    deb http://security.debian.org/debian-security stretch/updates main
    deb http://security.debian.org/ stretch/updates main deb-src http://security.debian.org/ stretch/updates main
    # stretch-updates, previously known as 'volatile' deb http://ftp.debian.org/debian/ stretch-updates main deb-src http://ftp.debian.org/debian/ stretch-updates main



  1. Update Debian 8 (Jessie) before starting upgrade process.

    # apt-get update
  1. We will upgrade version with below command.

    # apt-get upgrade
  1. Upgrade packages to new version with dist.

    # apt-get dist-upgrade
  1. Reboot Server

  2. Enter below command. It will show below output that your version is upgraded to Debian 9 (Stretch).

    # cat /etc/os-release

Debian 9 (Stretch) to 10 (Buster)

 

  1. Replace the below content at /etc/apt/sources.list

    
    deb http://ftp.debian.org/debian/ buster main
    deb-src http://ftp.debian.org/debian/ buster main
    
    deb http://security.debian.org/debian-security buster/updates main
    deb http://security.debian.org/ buster/updates main deb-src http://security.debian.org/ buster/updates main
    # buster-updates, previously known as 'volatile' deb http://ftp.debian.org/debian/ buster-updates main deb-src http://ftp.debian.org/debian/ buster-updates main

 

  1. Update Debian 9 (Stretch) before starting upgrade process..

    # apt-get update
  1. We will upgrade version with below command.

    # apt-get upgrade
  1. Upgrade packages to new version with dist..

    # apt-get dist-upgrade
  1. Reboot Server

  2. Enter below command. It will show below output that your version is upgraded to Debian 10 (Buster).

    # cat /etc/os-release


  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to change Magento site URL from phpMyAdmin?

Magento is a widely used E-commerce store management system. In this article, we will show you...

How to install Codeignetor centos 7?

Codeignetor is a PHP framework used to build a web application that is used widely by the...

How to determine what is using the most disk space on a Linux server?

There are times when you receive following error while accessing the cPanel WebMail or WHM. You...

How to deploy Mean.js application to Linux VPS?

Upload Mean.js Files via SFTP In FileZilla Once your mean.js webcontent is ready, you need to...

Difference Between su and sudo and How to Configure sudo in Linux VPS.

As we know Linux provides much better security. You can set user management policy and user...