debian 9升级到debian 10

Debian Buster 以上版本默认支持 HTTPS 源。如果遇到无法拉取 HTTPS 源的情况,请先使用 HTTP 源并安装:

apt install -y apt-transport-https ca-certificates

step1:更新一下 或者 换源地址 更新 完了 重启一下

apt update -y && apt upgrade -y
deb http://mirrors.aliyun.com/debian-archive/debian stretch main contrib non-free
#deb http://mirrors.aliyun.com/debian-archive/debian stretch-proposed-updates main non-free contrib
#deb http://mirrors.aliyun.com/debian-archive/debian stretch-backports main non-free contrib
deb http://mirrors.aliyun.com/debian-archive/debian-security stretch/updates main contrib non-free
#deb-src http://mirrors.aliyun.com/debian-archive/debian stretch main contrib non-free
#deb-src http://mirrors.aliyun.com/debian-archive/debian stretch-proposed-updates main contrib non-free
#deb-src http://mirrors.aliyun.com/debian-archive/debian stretch-backports main contrib non-free
#deb-src http://mirrors.aliyun.com/debian-archive/debian-security stretch/updates main contrib non-free
reboot

更新缓存

apt clean all
apt update

step2:备份一份

cp /etc/apt/sources.list /etc/apt/sources.list.orig

step3:将/etc/apt/sources.list里所有“stretch”替换为“buster” 或者直接编辑文件换debian10源

sed -i 's/stretch/buster/g' /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

step4:再更新一下

apt update -y && apt upgrade -y

step5:执行升级命令

apt dist-upgrade

step6:提示完成后重启

reboot

step7:查看下当前debian版本

lsb_release -a
sanradar
sanradar
文章: 104

103 评论

  1. Somebody necessarily help to make critically articles I might state. This is the first time I frequented your website page and up to now? I surprised with the research you made to make this particular post amazing. Wonderful process!

  2. The very next time I read a blog, Hopefully it won’t disappoint me just as much as this particular one. After all, I know it was my choice to read, however I really believed you’d have something helpful to talk about. All I hear is a bunch of whining about something that you could possibly fix if you weren’t too busy seeking attention.

  3. That is a great tip especially to those fresh to the blogosphere. Simple but very accurate info… Thank you for sharing this one. A must read article.

  4. A motivating discussion is definitely worth comment. I do think that you should publish more about this issue, it might not be a taboo matter but usually people don’t talk about these issues. To the next! All the best.

  5. The very next time I read a blog, Hopefully it won’t disappoint me just as much as this one. I mean, I know it was my choice to read through, nonetheless I truly thought you would have something interesting to say. All I hear is a bunch of complaining about something you can fix if you weren’t too busy seeking attention.

  6. I would like to thank you for the efforts you’ve put in writing this website. I am hoping to check out the same high-grade blog posts from you later on as well. In truth, your creative writing abilities has motivated me to get my own, personal website now 😉

  7. I’m impressed, I must say. Seldom do I come across a blog that’s both equally educative and amusing, and let me tell you, you’ve hit the nail on the head. The problem is something not enough folks are speaking intelligently about. Now i’m very happy that I came across this in my search for something regarding this.

  8. Oh my goodness! Awesome article dude! Thank you, However I am going through problems with your RSS. I don’t understand why I am unable to subscribe to it. Is there anybody having identical RSS problems? Anybody who knows the solution can you kindly respond? Thanks!!

  9. After checking out a few of the blog posts on your web site, I really like your way of writing a blog. I saved it to my bookmark webpage list and will be checking back soon. Please check out my web site too and let me know what you think.

  10. I blog often and I seriously thank you for your content. The article has really peaked my interest. I am going to book mark your site and keep checking for new details about once per week. I opted in for your Feed as well.

  11. I must thank you for the efforts you’ve put in writing this blog. I’m hoping to view the same high-grade blog posts by you in the future as well. In truth, your creative writing abilities has encouraged me to get my very own site now 😉

  12. You’re so awesome! I do not think I’ve truly read anything like that before. So nice to find somebody with a few original thoughts on this subject. Seriously.. thank you for starting this up. This web site is one thing that’s needed on the web, someone with a bit of originality.

  13. This is the perfect webpage for anybody who wishes to understand this topic. You know a whole lot its almost hard to argue with you (not that I personally will need to…HaHa). You certainly put a new spin on a subject that has been written about for decades. Great stuff, just great.

  14. Excellent web site you have got here.. It’s difficult to find good quality writing like yours nowadays. I truly appreciate people like you! Take care!!

  15. This is the perfect web site for everyone who wishes to understand this topic. You know a whole lot its almost hard to argue with you (not that I actually will need to…HaHa). You definitely put a fresh spin on a topic that has been discussed for many years. Excellent stuff, just wonderful.

  16. I want to to thank you for this great read!! I certainly loved every little bit of it. I have got you saved as a favorite to check out new stuff you post…

  17. Nice post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It will always be exciting to read articles from other writers and practice something from other sites.

  18. You made some decent points there. I checked on the web to find out more about the issue and found most people will go along with your views on this web site.

  19. Hi there, I think your site could possibly be having browser compatibility issues. When I look at your website in Safari, it looks fine however, when opening in Internet Explorer, it has some overlapping issues. I merely wanted to provide you with a quick heads up! Apart from that, wonderful site!

  20. Spot on with this write-up, I really feel this amazing site needs far more attention. I’ll probably be back again to read more, thanks for the advice!

  21. Hello, There’s no doubt that your website may be having internet browser compatibility issues. When I look at your blog in Safari, it looks fine however, if opening in IE, it has some overlapping issues. I just wanted to provide you with a quick heads up! Apart from that, fantastic blog.

  22. Howdy, I believe your site may be having web browser compatibility issues. Whenever I look at your web site in Safari, it looks fine however, if opening in IE, it has some overlapping issues. I just wanted to give you a quick heads up! Other than that, excellent blog.

  23. Spot on with this write-up, I absolutely believe that this web site needs much more attention. I’ll probably be returning to see more, thanks for the advice.

  24. I’m very happy to discover this site. I need to to thank you for your time just for this wonderful read!! I definitely savored every part of it and I have you bookmarked to look at new stuff on your blog.

  25. Oh my goodness! Amazing article dude! Thanks, However I am encountering troubles with your RSS. I don’t know why I am unable to join it. Is there anybody else having similar RSS issues? Anybody who knows the solution can you kindly respond? Thanks!

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注