Ubuntu16.04 换阿里源

国内阿里源速度比较快,北京联通下载极快。更新也比较稳定

1.备份

cp /etc/apt/source.list /etc/apt/source.list.bak

2.编辑source文件

sudo vim /etc/apt/source.list

(dd是删除整行,i是插入,注意sudo)

3.插入阿里源

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.保存wq,推出

5.apt-get update

原文地址:https://www.cnblogs.com/lihjacky/p/9106258.html

时间: 2024-10-09 20:46:19

Ubuntu16.04 换阿里源的相关文章

Ubuntu16.04更新软件源,执行apt-get update时出现“The following signatures couldn't be verified”错误

Ubuntu16.04中科大软件源: deb http://mirrors.ustc.edu.cn/ubuntu/ trusty universe deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty universe Ubuntu16.04更新为中科大的软件源后,执行apt-get update时出现以下错误: W: GPG error: https://mirrors.ustc.edu.cn trusty InRelease: The follo

ubuntu16.04更换镜像源

1.备份原有 cp /etc/apt/sources.list /etc/apt/sources.list.old 2.打开阿里巴巴镜像源:  https://opsx.alibaba.com/mirror,打开帮助找到 ubuntu 16.04 配置如下 deb http://mirrors.aliyun.com/ubuntu/ xenial main deb-src http://mirrors.aliyun.com/ubuntu/ xenial main deb http://mirror

Ubuntu17.04更换阿里源

命令:sudo vim /etc/apt/sources.list 阿里源: deb http://mirrors.aliyun.com/ubuntu/ zesty main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ zesty-backports main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ zes

Ubuntu16.04更换下载源

更新源的方法 进入/etc/apt/ cd /etc/apt 对 sources.list文件进行备份: sudo cp sources.list sources.list.bak 打开源列表文件 sudo gedit sources.list 使用下文的源中的内容替换原来文件中的内容,替换完成后执行: sudo apt-get update 常使用的源 清华源 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restric

Ubuntu16.04 换源(或者404 Not Found问题)

当执行sudo apt-get update或者sudo apt-get install命令时,出现以下两个问题: “apt-get 404 Not Found Package Repository Errors” 和 “E: Some index files failed to download They have been ignored, or old ones used” 解决方法: 首先,我们将现在出问题的 /etc/apt/sources.list 文件备份一份(只是一个好习惯而已!

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

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/ xenia

Ubuntu16.04 国内更新源

在修改source.list之前要先备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 替换内容到source.list中 阿里云源: # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial ma

ubuntu16.04LTS更换阿里源

1.sudo vi /etc/apt/sources.list 2.替换# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.al