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.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
3.更新sudo apt-get update
时间: 2024-10-01 04:16:07

ubuntu16.04LTS更换阿里源的相关文章

ubuntu更换阿里源

网上应该可以找到很多关于ubuntu源的设置方法,但是如果不搞清楚就随便设置的话,不仅不能起到应有的效果,还会由于一些问题导致apt不可用. 最正确的更换源的方法应该如系统提示的: ## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg## or do the same in user-data## b.) add sources in /etc/apt/sources.list.d## c.) make chan

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 换阿里源

国内阿里源速度比较快,北京联通下载极快.更新也比较稳定 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 d

docker ubuntu容器更换阿里源(转)

问题:使用docker 利用下载的ubuntu镜像启动容器时,使用的源下载更新软件的速度较慢. 解决这个问题的方法是跟新ubuntu容器的源 示例:以ubuntu为基础镜像 启动一个名称为 test02的容器,并且开启shell交互(/bin/bash ) docker run -ti --name test02 ubuntu /bin/bash 用自带vi修改源 [email protected]:/# vi /etc/apt/sources.list 将原有内容删除,并替换为以下的阿里源 d

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

centos 7更换阿里源

转自 https://blog.csdn.net/jameshadoop/article/details/54881295 centos7 修改yum源为阿里源,某下网络下速度比较快 首先是到yum源设置文件夹里 1.安装base reop源 cd /etc/yum.repos.d1接着备份旧的配置文件 sudo mv CentOS-Base.repo CentOS-Base.repo.bak1下载阿里源的文件 sudo wget -O CentOS-Base.repo http://mirro

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

Ubuntu 18.04 更换阿里源

1.备份 sudo cp /etc/apt/source.list /etc/apa/source.list.bak 2.编辑 sudo vim /etc/apt/source.list 3.修改内容 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted uni

安装Ubuntu服务器版 + 远程连接ssh +更换阿里云源

安装Ubuntu服务器版 1.点击 “开启此虚拟机”,开始安装. 2.默认选择English,英文版安装,直接按Enter键即可. 3.默认选择“Install Ubuntu Server”,安装ubuntu服务器版. 4.继续默认项“English” 5.国家或地区我们选择  “Other”--> "Asia" --> "China" 6.继续默认项 7.是否检测键盘布局,我们选择“No” 8.键盘布局所属国家:English  :键盘布局:Engli