如何从Debian 9 Stretch升级到Debian10 Buster

2019/05/21 17:33
阅读数 163

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

  

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部