How to upgrade Debian 9 (stretch) to 10 (buster)

    Upgrade the current stretch installation to the latest packages.

    apt-get update && apt-get upgrade && echo OK

     

    Update GPG keys.

    apt-get install debian-keyring debian-archive-keyring
    apt-key update

     

    Perform database sanity and consistency check.

    dpkg --audit

     

    Fix any output from this command.Check for any packages which are held back.

    apt-mark showhold

     

    Point apt to the buster sources.

    sed -e 's/stretch/buster/g' -i /etc/apt/sources.list

     

    Perform the upgrade, downloading packages in advance.

    apt-get update && apt-get clean && echo OK
    apt-get install apt dpkg aptitude -d && echo OK
    apt-get install apt dpkg aptitude -y && apt-get clean && echo OK

    apt-get upgrade -d -y && echo OK

    apt-get upgrade -y && apt-get clean && echo OK

    apt-get dist-upgrade -d -y && echo OK

    apt-get dist-upgrade -y && apt-get clean && echo OK

     

    No questions yet.