如何从Debian 9 Stretch升级到Debian10 Buster

Let's first fully upgrade our current Debian Stretch system:

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

Update Package Repository to Debian Buster

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

Your /etc/apt/sources.list should look similar to the one below:

deb https://mirrors.tuna.tsinghua.edu.cn/debian buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free

  

Once the above /etc/apt/sources.list file edit is completed, use apt-get command to update packages index:

apt-get update

Upgrade to Debian Buster

The following below commands will upgrade your Debian 9 Stretch to Debian 10 Buster release.

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

  

posted @ 2019-05-21 17:33  华小电  阅读(2203)  评论(0编辑  收藏  举报