设为首页
收藏本站
切换到窄版
用户名
Email
自动登录
找回密码
密码
登录
立即注册
快捷导航
门户
Portal
网站
BBS
宝藏网站
帮助
Help
搜索
搜索
本版
文章
帖子
『遗失的梦』 - 一个曾经失去的梦,只等你来唤醒。
»
网站
›
身在江湖
›
工作日记
›
手动将Ubuntu16.04 LTS升级至 Ubuntu18.04 LTS
返回列表
发新帖
查看:
1717
|
回复:
0
手动将Ubuntu16.04 LTS升级至 Ubuntu18.04 LTS
[复制链接]
hackfans
hackfans
当前离线
积分
2267
680
主题
0
回帖
2267
积分
超级版主
积分
2267
发消息
发表于 2023-6-17 11:07:33
|
显示全部楼层
|
阅读模式
之前为了学习Ubuntu,安装了当时比较新的16.04版本。那多年过去了,虽然现在最新的Ubuntu已经到了19.X,但感觉还是次高版的更稳定些。
这里建议大家更换一下软件源,换成国内的速度能快很多。
#添加阿里源
deb
http://mirrors.aliyun.com/ubuntu/bionic
main restricted universe multiverse
deb
http://mirrors.aliyun.com/ubuntu/
bionic-security main restricted universe multiverse
deb
http://mirrors.aliyun.com/ubuntu/
bionic-updates main restricted universe multiverse
deb
http://mirrors.aliyun.com/ubuntu/
bionic-proposed main restricted universe multiverse
deb
http://mirrors.aliyun.com/ubuntu/
bionic-backports main restricted universe multiverse
deb-src
http://mirrors.aliyun.com/ubuntu/
bionic main restricted universe multiverse
deb-src
http://mirrors.aliyun.com/ubuntu/
bionic-security main restricted universe multiverse
deb-src
http://mirrors.aliyun.com/ubuntu/
bionic-updates main restricted universe multiverse
deb-src
http://mirrors.aliyun.com/ubuntu/
bionic-proposed main restricted universe multiverse
deb-src
http://mirrors.aliyun.com/ubuntu/
bionic-backports main restricted universe multiverse
这里最好先备份一下源文件,以免出问题。
cp /etc/apt/sources.list /etc/apt/sources.list.bak
最后执行如下命令更新源
sudo apt-get update
sudo apt-get upgrade
之后有一个较为漫长的等待。
还有几个国内比较好的源,大家可以参考更新。
另外其他几个国内源如下:
########################################################################################
中科大源
##中科大源
deb
https://mirrors.ustc.edu.cn/ubuntu/
bionic main restricted universe multiverse
deb-src
https://mirrors.ustc.edu.cn/ubuntu/
bionic main restricted universe multiverse
deb
https://mirrors.ustc.edu.cn/ubuntu/
bionic-updates main restricted universe multiverse
deb-src
https://mirrors.ustc.edu.cn/ubuntu/
bionic-updates main restricted universe multiverse
deb
https://mirrors.ustc.edu.cn/ubuntu/
bionic-backports main restricted universe multiverse
deb-src
https://mirrors.ustc.edu.cn/ubuntu/
bionic-backports main restricted universe multiverse
deb
https://mirrors.ustc.edu.cn/ubuntu/
bionic-security main restricted universe multiverse
deb-src
https://mirrors.ustc.edu.cn/ubuntu/
bionic-security main restricted universe multiverse
deb
https://mirrors.ustc.edu.cn/ubuntu/
bionic-proposed main restricted universe multiverse
deb-src
https://mirrors.ustc.edu.cn/ubuntu/
bionic-proposed main restricted universe multiverse
163源
##163源
deb
http://mirrors.163.com/ubuntu/
bionic main restricted universe multiverse
deb
http://mirrors.163.com/ubuntu/
bionic-security main restricted universe multiverse
deb
http://mirrors.163.com/ubuntu/
bionic-updates main restricted universe multiverse
deb
http://mirrors.163.com/ubuntu/
bionic-proposed main restricted universe multiverse
deb
http://mirrors.163.com/ubuntu/
bionic-backports main restricted universe multiverse
deb-src
http://mirrors.163.com/ubuntu/
bionic main restricted universe multiverse
deb-src
http://mirrors.163.com/ubuntu/
bionic-security main restricted universe multiverse
deb-src
http://mirrors.163.com/ubuntu/
bionic-updates main restricted universe multiverse
deb-src
http://mirrors.163.com/ubuntu/
bionic-proposed main restricted universe multiverse
deb-src
http://mirrors.163.com/ubuntu/
bionic-backports main restricted universe multiverse
清华源
##清华源
deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic main restricted universe multiverse
deb-src
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic main restricted universe multiverse
deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-updates main restricted universe multiverse
deb-src
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-updates main restricted universe multiverse
deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-backports main restricted universe multiverse
deb-src
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-backports main restricted universe multiverse
deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-security main restricted universe multiverse
deb-src
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-security main restricted universe multiverse
deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-proposed main restricted universe multiverse
deb-src
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
bionic-proposed main restricted universe multiverse
########################################################################################
下载了半天,好几百个包。我们使用
cat /etc/lsb-release,查看当前系统版本信息。
在执行
sudo apt dist-upgrade
系统会更新安装这个软件包,这个过程会比较漫长,让程序跑一会儿。
升级完后,重启下电脑,再执行下cat /etc/lsb-release看看当前版本。
回复
举报
返回列表
发新帖
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
立即注册
本版积分规则
发表回复
回帖后跳转到最后一页
Copyright © 2008-2023
『遗失的梦』
(https://www.hackfans.net) 版权所有 All Rights Reserved.
Powered by
Discuz!
X3.5
|
津ICP备12003239号-1
|
违法与不良信息举报:
[email protected]
快速回复
返回顶部
返回列表