ubuntu 1804 配置阿里源
以防出错,先备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
编辑元列表文件
sudo vim /etc/apt/sources.list 或 sudo gedit /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
更新软件列表
sudo apt-get update
更新软件包
sudo apt-get upgrade
关于列表里内容不尽相同的问题:
元列表里的bionic是18.04的版本号,每一版内容不同的地方就是版本号(或者官方一点的说:系统代号)
查看新版本信息
lsb_release -c
我们可以看到新版本的Ubuntu系统代号为bionic
同样的我们也可以得到之前版本的系统代号:
Ubuntu 12.04 (LTS)代号为precise。
Ubuntu 14.04 (LTS)代号为trusty。
Ubuntu 15.04 代号为vivid。
Ubuntu 15.10 代号为wily。
Ubuntu 16.04 (LTS)代号为xenial
因为更改apt安装源时用的系统不一样,元列表中系统代号也不同,不同版本的ubuntu系统源列表更改时需注意版本代号的不同
最新文章
- 一个URL的物理文件的体现
- codevs 1082 线段树练习 3(区间维护)
- Struts2 Interceptor学习
- 使用rest方式修改服务端xml文件
- js 上传文件模拟Form 表单
- karma+angular
- C++学习38 string字符串的增删改查
- iPad用户使用Mac和Windows应用软件-记Parallels Access使用体验
- 第二百八十八天 how can I坚持
- 九度OnlineJudge之1021:统计字符
- 动态规划以及在leetcode中的应用
- alpha-咸鱼冲刺day5
- SSM-SpringMVC-13:SpringMVC中XmlViewResolver视图解析器
- Ubuntu环境下配置darknet
- [IoC容器Unity]第二回:Lifetime Managers生命周期
- 初次使用Windbg检查C#程序内存
- [Python][小知识][NO.2] Python 字符串跨行连接,或拆分为多行显示
- FINAUNCE金融业增速反弹信贷投放创新高叠加股市回暖
- Android—— TextView文字链接4中方法
- nginx交替出现404和200
热门文章
- 剑指 Offer 30. 包含min函数的栈 + 双栈实现求解栈中的最小值
- JAVA多线程与锁机制
- phpMyAdmin Transformation 任意文件包含/远程代码执行漏洞
- C语言编程 菜鸟练习100题(21-30)
- CSS篇-样式表、选择器、权重、伪类
- 第四单元总结&;期末总结
- C# net Emgu.CV.World 人脸识别 根据照片将人脸抠图出来。
- 想要更高效地找到信息,你需要掌握这些搜索技巧 (google or baidu)
- Python数据分析入门(十):数据清洗和准备
- js 更改json的 key