相关文章推荐
谦逊的红豆  ·  湘潭大学就业信息网·  8 月前    · 
高大的眼镜  ·  2025 ...·  8 月前    · 
没人理的帽子  ·  室内装修风格有哪些21种装修风格大普及·  10 月前    · 
被表白的楼梯  ·  白雨露夺英国斯诺克女子公开赛冠军,奖金现状却 ...·  1 年前    · 
拉风的黄瓜  ·  清宫抚养过皇帝的太皇太妃是谁,她们高龄去世后 ...·  1 年前    · 
小百科  ›  如何升级 Debian 9 (Stretch) 出去 Debian 10 (Buster)-腾讯云开发者社区-腾讯云
debian
有情有义的香烟
2 年前
作者头像
DPCloudX
0 篇文章

如何升级 Debian 9 (Stretch) 到 Debian 10 (Buster)

前往专栏
腾讯云
开发者社区
文档 意见反馈 控制台
首页
学习
活动
专区
工具
TVP
文章/答案/技术大牛
发布
首页
学习
活动
专区
工具
TVP
返回腾讯云官网
社区首页 > 专栏 > bebian > 如何升级 Debian 9 (Stretch) 到 Debian 10 (Buster)

如何升级 Debian 9 (Stretch) 到 Debian 10 (Buster)

作者头像
DPCloudX
修改 于 2019-07-26 17:43:55
1.3K 0
修改 于 2019-07-26 17:43:55
举报

Buster Full Upgrade

Before we move on with the upgrade, let's fully upgrade our current Debian Jessie system:

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

If everything went smoothly, perform database sanity and consistency checks for partially installed, missing and obsolete packages:

# dpkg -C

If no issues are reported, check what packages are held back:

# apt-mark showhold

Packages On Hold will not be upgraded, which may cause inconsistencies after Buster upgrade. Before you move to the next part, it is recommended to fix all issues produced by both above commands. The following command might be of a further assistance:

# dpkg --audit

Update Package Repository to Debian Buster

Now, that we have a current system fully upgraded, it is time to re-synchronize the package index files with new Debian Buster sources. This is done by editing /etc/apt/sources.list file to include Debian stretch package repository . First, make a backup the current /etc/apt/sources.list :

# cp /etc/apt/sources.list /etc/apt/sources.list_backup

Execute apt edit-sources or use your favourite text editor e.g., VIM to modify a current /etc/apt/sources.list file to include stretch repositories. Simply update keyword stretch to buster .

Example:

FROM STRECTH:
deb http://httpredir.debian.org/debian stretch main
deb http://httpredir.debian.org/debian stretch-updates main
deb http://security.debian.org stretch/updates main
TO BUSTER:
deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
 
推荐文章
谦逊的红豆  ·  湘潭大学就业信息网
8 月前
高大的眼镜  ·  2025 運城旅遊指南:必看景點、熱門美食、飯店、交通路線(7 月更新 ...
8 月前
没人理的帽子  ·  室内装修风格有哪些21种装修风格大普及
10 月前
被表白的楼梯  ·  白雨露夺英国斯诺克女子公开赛冠军,奖金现状却引人关注-腾讯新闻
1 年前
拉风的黄瓜  ·  清宫抚养过皇帝的太皇太妃是谁,她们高龄去世后获得了哪些优待 ...
1 年前
Link管理   ·   Sov5搜索   ·   小百科
小百科 - 百科知识指南