Ubuntu16.04 使用阿里云源

1、使用root用户

  su root

2、备份sources.list

  cp /etc/apt/sources.list /etc/apt/sources.list.bak

3、替换/etc/apt/sources.list

  deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
  deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
  deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
  deb http://mirrors.aliyun.com/ubuntu/ xenial universe
  deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
  deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
  deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
  deb http://archive.canonical.com/ubuntu xenial partner
  deb-src http://archive.canonical.com/ubuntu xenial partner
  deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
  deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
  deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

4、更新

  apt-get update

原文地址:https://www.cnblogs.com/chenpengzi/p/9366052.html

时间: 2024-11-07 23:26:08

Ubuntu16.04 使用阿里云源的相关文章

Ubuntu 14.04 更换阿里云源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份 sudo vim /etc/apt/sources.list #修改 sudo apt-get update #更新列表 阿里云源 deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trust

Ubuntu16.04 替换阿里云软件源

一,备份原来的源文件 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.aliyu

Ubuntu 16.04添加阿里云源

添加国内源有个好处,比如下载软件时直接时国内的服务器,速度有保证. 以下是操作方法: 1.备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 2.编辑 sudo gedit /etc/apt/source.list 提示:可以使用vi.vim这些 3.覆盖源文件的所有内容 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xeni

Ubuntu/Mint更换阿里云源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份 sudo vim /etc/apt/sources.list #修改 sudo apt-get update #更新列表 阿里云源 deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trust

ubuntu配置阿里云源

换成国内最快的阿里云源 第一步:备份原来的源文件 cd /etc/apt/ 然后会显示下面的源文件sources.list 输入命令 sudo cp sources.list sources.list.bak 就是将sources.list备份到sources.list.bak 第二步:替换源 阿里云源的文件 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mi

CentOS7搭建本地YUM仓库,并定期同步阿里云源

CentOS7同步阿里云镜像rpm包并自建本地yum仓库 系统环境 # cat /etc/centos-release CentOS Linux release 7.6.1810 (Core) # uname -r 3.10.0-957.el7.x86_64 # ip a |awk 'NR==9{print $2}'|awk -F '/' '{print $1}' 10.0.0.100 修改yum源为阿里云源 备份系统自带的yum源 # tar -zcvf CentOS-bk.tar.gz /e

【嵌入式硬件Esp32】Ubuntu18.04 更换阿里云软件源

使用Ubuntu 的apt-get来安装软件是总是因为官方源的速度太慢而抓狂. 但是用阿里云的源就很快,下面总结一下如何更换Ubuntu的软件源. 一.备份sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak  二.修改sudo vim /etc/apt/sources.list 将source.list文件内容替换成下面的 deb http://mirrors.aliyun.com/ubuntu/ trusty main restric

ubuntu-16.04更好软件源

author: headsen chen date:2019-03-06  14:01:07 1,修改软件源文件成如下的清华大学的源(亲测可用) root@ubuntu:/var/lib/apt/lists# cat /etc/apt/sources.list # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted univers

Ubuntu16.04 配置 国内更新源

Ubuntu 配置 国内更新源之所以要换成国内的 就是因为国外的源太慢了视频链接地址:http://v.youku.com/v_show/id_XMjYxMjI5MDk2OA==.html 1.百度搜索 "ubuntu 16.04 更新国内源" 2.编辑 /etc/apt/sources.list #sudo  vim /etc/apt/sources.list    我们来清空内容:  shift + : 1,$ d  再按i 进行编辑  复制我们刚才找的源内容 然后粘贴 ##阿里云