ubuntu16.04更换镜像源为阿里云镜像源(代码片段)

水香木鱼 水香木鱼     2023-01-02     552

关键词:

1.首先Ctrl+Alt+T打开终端

输入cd /etc/apt/ 输入ls命令看到有一个sources.list文件,备份它:cp sources.list sources.list.old

2.打开阿里云镜像站

[https://developer.aliyun.com/mirror/],找到ubuntu,点击右边的帮助,复制如下软件源代码:(ubuntu18.04自行复制对应版本)

deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

3.用vim打开

sudo vim sources.list

输入ggdG删除所有内容,按i键进入插入模式,鼠标右键粘贴,按Esc切换到命令模式,输入:x回车退出,至此更换镜像源完成.

4.终端输入

sudo apt-get update # 更新镜像源

ubuntu软件源阿里云镜像与清华镜像

参考技术AUbuntu的软件源配置文件是/etc/apt/sources.list阿里云ubuntu20apt镜像源清华ubuntu20.04LTSapt镜像源阿里云ubuntu18apt镜像源清华ubuntu18.04LTSapt镜像源 查看详情

docker官方镜像源或阿里云镜像源加速解决pull过慢的问题(代码片段)

docker默认的源为国外官方源,下载速度较慢,需修改docker镜像源为国内。Docker国内源说明:Docker官方中国区https://registry.docker-cn.com网易http://hub-mirror.c.163.com中国科技大学https://docker.mirrors.ustc.edu.cn阿里云https://pee6w651.mirror.aliyuncs.co 查看详情

pycharm更换pip镜像源为国内,解决下载慢的问题

参考链接:https://www.cnblogs.com/hkgov/p/7799078.html官方源下载速度太慢,换成国内源会很快。推荐清华的源:https://pypi.tuna.tsinghua.edu.cn/simple1、首先打开设置页面2、打开源管理器3、输入清华的源4、最后将官方源删除备用。 查看详情

【ubuntu】更换pip镜像源

参考技术A在主目录下创建.pip文件夹,然后在该目录下创建pip.conf文件pip.conf文件编写如下内容(更换为清华大学镜像源):右键paste之后,输入:wq强制保存退出。源也可换成其它家的:阿里云https://mirrors.aliyun.com/pypi/simple/中国科技... 查看详情

树莓派更换阿里云镜像源(代码片段)

sudonano/etc/apt/sources.list#将原有内容用#注释掉debhttp://mirrors.aliyun.com/raspbian/raspbian/bustermaincontribnon-freerpideb-srchttp://mirrors.aliyun.com/raspbian/raspbian/bustermaincontribnon-freerpisudonano/etc/apt/sources.list.d/raspi.list#将原有内容用#注释掉debhttp://mirrors... 查看详情

利用阿里云提供的镜像快速更换本地的yum源

CentOS1、备份mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup2、下载新的CentOS-Base.repo到/etc/yum.repos.d/ CentOS5wget-O/etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.c 查看详情

wget和yum下载慢,更换阿里镜像源

1.安装wgetyuminstall-ywget2.完事前都做备份mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup3.下载阿里云镜像文件wget-O/etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos-7.re 查看详情

pycharm更换源(换源)(镜像源)(代码片段)

参考文章:Pycharm软件更换pip默认安装源为国内安装源我试了一下,换了好像也没啥用a我还是用那个吧pipinstall-ihttps://pypi.tuna.tsinghua.edu.cn/simplexxx 查看详情

国内镜像源(阿里网易清华中科大)ubuntu20.04下载地址超快(代码片段)

1下载ubuntu系统镜像的国内源地址一个不行换一个下载ubuntu系统镜像的国内源地址,超快国内镜像源(阿里、网易、清华、中科大)ubuntu20.04下载地址:清华源https://mirrors.tuna.tsinghua.edu.cn/ 中科大源http://mirrors.ustc.e... 查看详情

pip安装超时,更换国内镜像源安装

pip安装超时问题pipinstall--index源地址安装包常用镜像源地址:http://pypi.douban.com/豆瓣http://pypi.mirrors.ustc.edu.cn/中国科学技术大学http://mirrors.aliyun.com/pypi/simple/阿里云 查看详情

docker——镜像源更换国内源(代码片段)

前言在windows上安装了docker服务想替换为国内源步骤镜像源Docker中国区官方镜像https://registry.docker-cn.com网易http://hub-mirror.c.163.comustchttps://docker.mirrors.ustc.edu.cn中国科技大学https://docker.mirrors.ustc.edu.cn阿里云容器服务(需要先创建容器... 查看详情

ubuntu更换apt源为阿里源(代码片段)

文章目录一、前言二、配置阿里源一、前言Ubuntu默认自带的源好不好用就不多说了,速度摆在那里,在国内的话,个人感觉还是阿里源好用。二、配置阿里源修改我们系统默认自带的apt源,这里我采用的是阿里源&... 查看详情

rockylinux8.5版本全新图文安装教程并更换阿里镜像源等配置信息

一、安装参考链接说明RockyLinux官网​​https://rockylinux.org/rockylinux.org/​​​RcokyLinux8.5版本镜像下载链接​​https://www.rockylinux.org/download/www.rockylinux.org/download/​​​​阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区​​​​阿... 查看详情

ubuntu16.04更换国内源(下载源)(阿里源)

https://blog.csdn.net/qq_40301372/article/details/108622277 查看详情

npm更换阿里云镜像

来源:https://blog.csdn.net/a249040113/article/details/81567430npm安装插件过程:从http://registry.npmjs.org下载对应的插件包(该网站服务器位于国外,所以经常下载缓慢或出现异常) 阿里在国内搭建了镜像服务器:http://npm.taobao.org 需要... 查看详情

centos修改镜像为国内的阿里云源或者163源等国内源

...里云Linux安装镜像源地址:http://mirrors.aliyun.com/CentOS系统更换软件安装源第一步:备份你的原镜像文件,以免出错后可以恢复。mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup第二步:下载新的CentOS-Base.repo到/etc/yum.repos.d... 查看详情

将pip源更换到国内镜像

  用pip管理工具安装库默认使用国外的源文件,下载速度比较慢,国内的一些顶级科研机构已经给我们准备好了各种镜像,下载速度非常快。比较常用的国内镜像包括:(1)阿里云http://mirrors.aliyun.com/pypi/simple/(2)豆瓣http://pyp... 查看详情

国内开源镜像站

一、清华源https://mirrors.tuna.tsinghua.edu.cn/   二、阿里源http://mirrors.aliyun.com/    三、以下是ubuntu16的阿里源 #debcdrom:[Ubuntu16.04LTS_XenialXerus_-Releaseamd64(20160420.1 查看详情