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 add IP address in Ubuntu using command?

Sometimes you may require to add the IP Address manually in ubuntu network Interface. Following...

How To Configure Redis Caching to Speed Up WordPress on Ubuntu 18.04?

Redis is an open-source in-memory data structure store. It can be used as a DB and cache. It...

How to transfer cPanel accounts from Shared Hosting to VPS/Dedicated Server manually?

cPanel facilitates you to restore full cPanel account along with websites, email accounts, MySQL...

How to redirect http to https using .htaccess?

If you have installed SSL Certificate on your website and want to redirect your website traffic...

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...