相关文章推荐
直爽的烤红薯  ·  高h巨污np文18海棠书屋无弹窗_女主赐婚( ...·  9 月前    · 
坚韧的凉面  ·  2024上海网球大师赛门票价格+购票官网- ...·  1 年前    · 
千年单身的手套  ·  西超级杯-梅西失点马竞2红牌 ...·  2 年前    · 
至今单身的伤痕  ·  2021年“中国研究生创新实践系列大赛”南京 ...·  2 年前    · 
兴奋的蘑菇  ·  Node.js | ...·  3 年前    · 
Code  ›  如何升级 Debian 9 (Stretch) 到 Debian 10 (Buster)开发者社区
debian
https://cloud.tencent.com/developer/article/1473368
有情有义的香烟
3 年前
作者头像
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
 
推荐文章
直爽的烤红薯  ·  高h巨污np文18海棠书屋无弹窗_女主赐婚(2)__18海棠书屋
9 月前
坚韧的凉面  ·  2024上海网球大师赛门票价格+购票官网- 上海本地宝
1 年前
千年单身的手套  ·  西超级杯-梅西失点马竞2红牌 巴萨战平第11次夺冠_手机新浪网
2 年前
至今单身的伤痕  ·  2021年“中国研究生创新实践系列大赛”南京站宣讲会在东南大学成功召开
2 年前
兴奋的蘑菇  ·  Node.js | シェルコマンドを実行する方法(child_process) - わくわくBank
3 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号