wsl 配置ubuntu apt源为阿里源】的更多相关文章

一.通过系统更换源 第一步:备份原来的源文件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://m…
centos7 修改yum源为阿里源,某下网络下速度比较快 首先是到yum源设置文件夹里 cd /etc/yum.repos.d 接着备份旧的配置文件 sudo mv CentOS-Base.repo CentOS-Base.repo.bak 下载阿里源的文件 sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 清理缓存 yum clean all 重新生成缓存 yum makecache…
centos7 修改yum源为阿里源,某下网络下速度比较快 首先是到yum源设置文件夹里 安装base reop源 cd /etc/yum.repos.d 接着备份旧的配置文件 sudo mv CentOS-Base.repo CentOS-Base.repo.bak 下载阿里源的文件 sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 安装epel repo源 epel(RHEL 7) wget…
Ubuntu 20.04 是 Ubuntu 的第 8 个 LTS 版本,其重大更新和改进将在 2030 年前终止,计划于2020年 4 月 23 日发布. 国内有很多Ubuntu的镜像源,有阿里的.网易的,教育网的比如:清华源.中科大源.这里以网易163源为例看一下如何修改Ubuntu 20.04的默认源. 第一步:备份源文件:sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 第二步:编辑/etc/apt/sources.lis…
Saltstack设置安装源为官方源有时候在国内网络不好安装较慢或者安装不上,可设置为阿里源 比如对于 Centos 7 系统,在 saltstack 的官网提供的配置初始化手册是: sudo yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm 这时,你需要执行: sudo yum -y install https://mirrors.aliyun.com/saltstack…
前提 使我们的主机能够连接到外网 cd /etc/yum.repos.d/ #切换到yum仓库目录下 rm -rf * #删除默认配置仓库 wget -O /etc/yum.repos.d/CentOS.repo http://mirrors.aliyun.com/repo/CentOS-7.repo #下载阿里源的repo文件到主机仓库中 yum clean all 清除缓存 yum makecache 重新加载缓存 这样我们就能通过阿里的源安装软件了!…
阿里源的网址在这里:http://mirrors.aliyun.com/repo/ 一.进入源文件存放目录 cd /etc/yum.repos.d 二.安装基本源: 1.如果要备份原来的源文件 sudo mv CentOS-Base.repo CentOS-Base.repo.bak 2.下载阿里源文件 sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 三.安装epel repo源: 1.下载ep…
cd /etc/yum.repos.d 备份旧的配置文件:mv CentOS-Base.repo CentOS-Base.repo.bak 下载阿里源的文件: wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 清理缓存 yum clean all 重新生成缓存 yum makecache…
因为官方的yum源在国内访问效果不佳, 需要改为国内比较好的阿里云或者网易的yum源, 具体修改步骤如下: cd /etc/yum.repos.d # 备份旧的配置文件 mv CentOS-Base.repo CentOS-Base.repo.bck # 下载阿里源的文件 wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo # 清理缓存 yum clean all # 重新生成缓存 yum makecache…
1.复制原文件备份sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 2.编辑源列表文件 sudo vim /etc/apt/sources.list 3.将原来的列表删除,添加如下内容 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricteddeb-src http://archive.ubunt…