如何从Debian 9 Stretch 升级到 Debian 10 Buster(升级Debian9图文教程)

 

目的

本文介绍了从Debian 9 Stretch到Debian 10 Buster的系统升级过程。

目前,Debian Buster正处于测试状态。稳定的Debian 10 Buster发布日期预计将在2019年的第二季度或第三季度发布。

 

Debian Buster 全面升级(Debian10 Buster故称巴斯特版)

让我们首先全面升级我们当前的Debian Stretch系统:

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

 

将包存储库更新到Debian Buster

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

/etc/apt/sources.list应该看起来类似于下面的那个:

deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main

国内请使用国内源,即上面这个配置,替换为阿里云的镜像地址,速度快很多

deb http://mirrors.aliyun.com/debian buster main
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian buster-updates main

 /etc/apt/sources.list完成上述文件编辑后,使用apt-get命令更新包索引:

#apt-get update

 

升级到Debian Buster

以下命令将Debian 9 Stretch升级到Debian 10 Buster版本。

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

PS:笔者也亲自尝试过,这个可能和您的源配置有关,因为这个是从国外的社区论坛翻译过来的,国外的源配置的官方的,但是笔者这边的源是配置国内的镜像,没有更新到最新版本,没有按照上文更新源配置当然您如果将源配置按照上文更改为:

deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main
deb http://mirrors.aliyun.com/debian buster main
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian buster-updates main

这样源配置信息更新后,应该可以升级到buster版本,当时没有升级成功,应该是,那时候国内的镜像源还没有最新的系统镜像,现在任然没有buster的镜像哈,刚才测试了一下

 

准备好后,请检查您的Debian的的版本

转载原文:https://linuxconfig.org/how-to-upgrade-debian-9-stretch-to-debian-10-buster

 

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值