Ubuntu16.04 替换阿里云软件源
来源:互联网 发布:上海软件培训班多少钱 编辑:程序博客网 时间:2024/06/04 19:36
一,备份原来的源文件
1,首先,进入源文件 sources.list 所在的目录:
cd /etc/apt/
2,执行sudo cp sources.list sources.list.bak
对源文件进行备份,以防万一;
二,修改源文件内容
1,阿里云软件源的文件的内容如下:
#deb包deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##测试版源 deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # 源码 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##测试版源 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # Canonical 合作伙伴和附加 deb http://archive.canonical.com/ubuntu/ xenial partner deb http://extras.ubuntu.com/ubuntu/ xenial main
2,将上述的阿里云的源文件内容全部复制先
使用sudo vim sources.list
打开文件,输入ggdG
删除所有内容(这句指令可以理解为从第1行到最后1行之间的内容都删了)
将复制的内容粘贴到本文件中;输入:wq
保存退出;
三,更新源和软件
1,使用sudo apt-get update
即可更新获取 阿里云软件源 提供的软件列表;
2,使用sudo apt-get upgrade
即可更新软件;
阅读全文
0 0
- Ubuntu16.04 替换阿里云软件源
- Ubuntu16.04 替换阿里云软件源
- Ubuntu16.04 阿里源
- ubuntu16.04替换源
- Ubuntu16.04更换阿里源
- 阿里云Linux安装软件镜像源替换
- 阿里云+ubuntu16.04+apache配置步骤
- ubuntu16.04LTS更换阿里源
- ubuntu16.04LTS更换阿里源
- Ubuntu14.04阿里云软件源备份
- CentOs 替换yum源为阿里云
- 阿里云ubuntu16 lnmp配置
- 阿里云Ubuntu16.04搭建LAMP+私有云nextcloud
- 阿里云ubuntu16.04上搭建gunicorn+supervisor+nginx详解
- ubuntu16.04安装anaconda(阿里云下)
- 阿里云服务器Ubuntu16.04 Java web环境部署
- web 服务器阿里云基本使用(Ubuntu16.04LTS)
- 阿里云ubuntu16.04实测配置【php+mysql+apache】
- 字符串复制函数的实现
- Cake
- Leetcode——84.Largest Rectangle in Histogram && 85.Maximal Rectangle
- [第二章]Python中import引用函数库两种方式区别
- Missing artifact mysql:mysql-connector-java:jar:5.7.15
- Ubuntu16.04 替换阿里云软件源
- UVA 10791 Minimum Sum LCM
- [完结撒花]sone0补完计划
- Vue--slot ----初级组件嵌套
- Java 编程题目 第十二题
- JSP中验证码问题
- RPC远程过程调用
- Java Socket实现基于TCP和UDP多线程通信
- pads layout 9.5笔记1-常用快捷键