-
2021-10-31 04:20:48
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --remove channels defaults conda config --set show_channel_urls yes
更多相关内容 -
Ubuntu快速更换国内源
2019-01-07 12:10:53Ubuntu快速更换国内源,适用于14.04、16.04、18.04,方便下载使用。 -
Ubuntu 21.10安装国内源
2022-01-10 20:21:20为什么要安装国内源?因为默认的软件更新源是国外的,在国内使用下载速度很慢。我们只需要把它默认更新软件的国外网址改成我们国内的镜像网址就行了。 首先将我们的原来的软件源备份:(这样就算改错了也能恢复) ...为什么要安装国内源?因为默认的软件更新源是国外的,在国内使用下载速度很慢。我们只需要把它默认更新软件的国外网址改成我们国内的镜像网址就行了。
首先将我们的原来的软件源备份:(这样就算改错了也能恢复)
sudo cp -v /etc/apt/sources.list /etc/apt/sources.list.backup
终端执行chmod命令更改文件权限使软件源文件可编辑:
sudo chmod 777 /etc/apt/sources.list
之后通过gedit命令编辑软件源:
sudo gedit /etc/apt/sources.list
然后将里面的国外的网址改为国内的镜像网址就行了。(下面是修改前的样子)
#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://cn.archive.ubuntu.com/ubuntu/ impish main restricted # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://cn.archive.ubuntu.com/ubuntu/ impish-updates main restricted # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://cn.archive.ubuntu.com/ubuntu/ impish universe # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish universe deb http://cn.archive.ubuntu.com/ubuntu/ impish-updates universe # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://cn.archive.ubuntu.com/ubuntu/ impish multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish multiverse deb http://cn.archive.ubuntu.com/ubuntu/ impish-updates multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://cn.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu impish partner # deb-src http://archive.canonical.com/ubuntu impish partner deb http://security.ubuntu.com/ubuntu impish-security main restricted # deb-src http://security.ubuntu.com/ubuntu impish-security main restricted deb http://security.ubuntu.com/ubuntu impish-security universe # deb-src http://security.ubuntu.com/ubuntu impish-security universe deb http://security.ubuntu.com/ubuntu impish-security multiverse # deb-src http://security.ubuntu.com/ubuntu impish-security multiverse # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual.
修改后:(我这里使用的是清华的镜像源)
#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish main restricted # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates main restricted # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish universe # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates universe # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-backports main restricted universe multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu impish partner # deb-src http://archive.canonical.com/ubuntu impish partner deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security main restricted # deb-src http://security.ubuntu.com/ubuntu impish-security main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security universe # deb-src http://security.ubuntu.com/ubuntu impish-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security multiverse # deb-src http://security.ubuntu.com/ubuntu impish-security multiverse # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual.
对比发现:只不过是把每个help.ubuntu.com(国外)替换成了mirrors.tuna.tsinghua.edu.cn,(清华镜像网址)。
修改完软件源后,更新软件列表和软件:
sudo apt update sudo apt upgrade
对于其他版本的Ubuntu也可照着修改,只需改网址就行。
-
Ubuntu 22.04换国内源 清华源 阿里源 中科大源 163源
2022-02-10 11:11:23本文系原创,转载请注明出处 update 2022.04.23: Ubuntu 22.04 的稳定版已经于 2022 年 4 月 21 日发布,Ubuntu 22.04 稳定版下载地址... sudo apt-get update sudo apt-get upgrade 其他几份国内源如下: 阿里源 deb ...本文系原创,转载请注明出处
update 2022.04.23:Ubuntu 22.04
的稳定版已经于 2022 年 4 月 21 日发布,Ubuntu 22.04
稳定版下载地址:https://ubuntu.com/download/desktopUbuntu 22.04
的稳定版计划于 2022 年 4 月 21 日发布。开发工作已经在紧锣密鼓地进行,它将遵循如下发布时间表:- 2022 年 2 月 24 日:功能冻结
- 2022 年 3 月 17 日:用户界面冻结
- 2022 年 3 月 31 日:测试版发布
- 2022 年 4 月 14 日:候选版本
- 2022 年 4 月 21 日:最终稳定版本
Linux 5.15 LTS是Ubuntu 22.04的默认内核,GCC 11.2是默认的系统编译器,Mesa 22.0提供开源图形驱动支持。Canonical一直在为Ubuntu开发新的桌面安装程序,但是随着22.04 LTS的发布,现有的Ubiquity仍然是默认使用的。
如果你想在备用机器或虚拟机上测试它,你可以从 Ubuntu 的网站下载
Ubuntu 22.04
每日构建版。
下载Ubuntu 22.04
每日构建(不稳定)https://cdimage.ubuntu.com/daily-live/current/
国内有很多Ubuntu
的镜像源,包括阿里的、网易的,还有很多教育网的源,比如:清华源、中科大源。
我们这里以清华源为例讲解如何修改Ubuntu 22.04
里面默认的源。
编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份):清华源
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse # 预发布软件源,不建议启用 # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
然后执行命令:
sudo apt-get update sudo apt-get upgrade
其他几份国内源如下:
阿里源
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
网易163源
deb http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
-
修改yum源为国内源
2020-12-04 18:09:36修改为阿里源 首先是到yum源设置文件夹里 1. 查看yum源信息: yum repolist 2. 安装base reop源 cd /etc/yum.repos.d 3. 接着备份旧的配置文件 sudo mv CentOS-Base.repo CentOS-Base.repo.bak 4. 下载阿里源的...修改为阿里源
首先是到yum源设置文件夹里: /etc/yum.repos.d/ 1. 查看yum源信息: yum repolist 2. 安装base reop源 cd /etc/yum.repos.d 3. 接着备份旧的配置文件 sudo mv CentOS-Base.repo CentOS-Base.repo.bak 4. 下载阿里源的文件 sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 5.清理缓存 yum clean all 6.重新生成缓存 yum makecache 7. 再次查看yum源信息 yum repolist 8. 安装 yum -y update
修改为网易163源
1.前期文件准备
- 前提条件linux系统必须可以联网
- 在Linux环境中访问该网络地址:http://mirrors.163.com/.help/centos.html,在使用说明中点击CentOS7->再点击保存,如下图所示
2.替换本地yum文件
(1)把下载的文件移动到/etc/yum.repos.d/目录
[root@hcmaster 下载]# mv CentOS7-Base-163.repo /etc/yum.repos.d/
(2)进入到/etc/yum.repos.d/目录
[root@hcmaster yum.repos.d]# pwd
/etc/yum.repos.d
(3)用CentOS7-Base-163.repo替换CentOS-Base.repo
[root@hcmaster yum.repos.d]# mv CentOS7-Base-163.repo CentOS-Base.repo
3.安装命令
(1)[root@hcmaster yum.repos.d]#yum clean all
(2)[root@hcmaster yum.repos.d]#yum makecache
yum makecache就是把服务器的包信息下载到本地电脑缓存起来
4.测试
[root@hcmaster yum.repos.d]#yum list | grep firefox
[root@hcmaster ~]#yum -y install firefox.x86_64
-
Go设置国内源
2020-12-14 10:37:32Go设置国内源 如果你需要Beego这个框架,正常来说你需要安装Git之后go get不会报错。但由于网络问题,go get会非常慢,以至于没法使用。 这个时候我们需要需要国内源来进行加速 首先需要我们开启Go的MODULL支持 ... -
docker修改国内源
2021-12-14 12:57:00修改如下文件内容 [root@localhost ~]# vim /etc/docker/daemon.json ...可以添加的国内源有如下一下: Docker国内源说明: Docker 官方中国区 https://registry.docker-cn.com 网易 http://hub-mirror.c.1 -
pip 国内源下载
2021-06-15 19:13:30(1)pip国内的一些镜像 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 ... -
pip配置国内源
2021-07-25 13:32:27常用国内源 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 阿里云 http://mirrors.aliyun.com/pypi/simple/ 豆瓣 http://pypi.douban.com/simple/ 一... -
常用国内源地址
2020-06-21 11:49:15国内源: 新版ubuntu要求使用https源,要注意。 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ust -
Anaconda 换国内源
2021-10-25 20:33:45由于国外下载速度太慢,这里就有了国内的一些镜像源进行下载 Anaconda 换源 清华源 在cmd 命令行中,输入添加以下命令(前提是要安装了Anaconda包管理工具) conda config --add channels ... -
CentOS 8 最新安装源国内源
2022-04-01 17:14:39CentOS 8 最新安装源国内源 -
【Ubuntu 】Ubuntu 更换国内源—解决终端下载错误或速度慢的问题
2021-10-21 13:58:48前言:安装好ubuntu双系统后,默认的软件更新源是国外的,在国内使用速度很慢,用"apt install xxx"安装软件时可能出现"网络不可达"、"你的网络需要认证吗"、"无法定位软件包"等错误,所以...三、Ubuntu ROS更换国内源 -
国内源地址
2021-01-15 14:43:57国内源地址 中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/ 阿里云: http://mirrors.aliyun.com/pypi/simple/ 豆瓣(douban): http://pypi.douban.com/simple/ 清华大学: ... -
Kali Linux2021更换国内源
2021-07-17 11:26:25由于kali默认的源是国外的,下载东西速度太慢了老是下载失败,下面开始更换国内源的教程。 切换管理员身份 由于修改源文件(需要用root权限),所以要切换root账户登录 如果处于普通用户状态下,可以打开Terminal... -
Ubuntu 20.04换国内源 清华源 阿里源 中科大源 163源
2020-04-22 17:24:44国内有很多Ubuntu的镜像源,包括阿里的、网易的,还有很多教育网的源,比如:清华源、中科大源。 我们这里以中科大的源为例讲解如何修改Ubuntu 20.04里面默认的源。 编辑/etc/apt/sources.list文件, 在文件最前面... -
alpine 使用国内源
2021-05-13 14:51:25在Termux中安装了一个alpine,因为它比较小。之前都有没用过样的系统。 系统版本 cat /etc/os-release NAME="Alpine Linux" ID=alpine VERSION_ID=3.13.1 ...国内源 默认源安装软件太慢了,换一下国内的源吧! 帮 -
Ubuntu conda换国内源
2022-03-08 20:46:341.conda config --set show_channel_urls yes 2.sudo gedit ~/.condarc 3.channels: https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ show_channel_urls: true -
Ubuntu apt更换国内源
2020-05-04 23:32:38Ubuntu apt更换国内源 很多小伙伴在做实验的时候会用到Linux系统的虚拟,其中最常用的就是Ubuntu了,但是由于原始的镜像源都是美国的一些镜像,下载会非常的慢,今天我们就来将它的镜像源换成国内的源,... -
Git国内源
2020-10-28 19:33:13git的安装包国内源 https://npm.taobao.org/mirrors/git-for-windows/ -
Docker 更换镜像内部的软件源为国内源(apt-get源)
2021-12-30 13:09:01Docker 更换镜像内部的软件源为国内源(apt-get源) -
conda国内源-持续更新
2021-05-12 21:19:22清华源、中科大源大部分时间能用,但没事也会被封。最近发现的北外源挺好用。推荐使用: 北外镜像(推荐): conda config... 2、conda环境管理指令整理; 3、conda下载出现连接超时怎么办; 4、conda国内源-持续更新。 -
pip 替换为国内源(清华源,阿里源)
2020-08-27 13:06:49修改为国内源(清华源,阿里源)的方法: 临时的方法 pip install XXX -i https://pypi.tuna.tsinghua.edu.cn/simple清华源 pip install XXX -i ... -
PVE7.0国内源 ProxmoxVE
2021-08-28 12:59:56PVE7.0国内源 ProxmoxVE 先安装vim编辑器,后面会使用。 apt install vim 默认是企业订阅版,如果不做修改,在使用 pveceph init 进行 ceph 初始化安装的时候会将整个环境破坏,切记! 下面的直接复制到终端运行... -
opencv-python 国内源
2022-04-09 15:27:43D:\coding>...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version o -
ubuntu更换国内源
2021-03-10 10:17:49在Ubuntu系统中使用apt-get命令来...ubuntu更换国内源 1.备份原始源文件source.list sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 2.修改sources.list 将原文件中的内容删除,进入清华开源镜像,选 -
Ubuntu 20.04 国内源
2020-06-15 11:27:15清华源 # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse # deb-src ... -
pytorch安装教程,使用国内源
2021-12-21 14:25:451.cuda+cudnn+ 8.2.4 2.pytorch pip3 install torch==1.10.1+cu113 torchvision==0.11.2+cu113 torchaudio===0.10.1+cu113 -i ... -
python国内源下载地址亲测有效
2022-05-06 16:46:09Python国内源下载地址,包括各个版本,此是华为云的链接: Index of python-local 任意选一个,带amd64位的就是64位操作系统,直接是版本号的对应的就是32位的python,有些特殊插件只兼容32位的,所以在此... -
Ubuntu 更换国内源
2018-03-11 15:09:05一个软件的下载是十分痛苦的,这里讲解一下如何将国外源更换为国内源,让你的网速Biu.Biu.Biu 1.备份原来的源 sudo cp /etc/apt/sources.list /etc/apt/sources_init.list 将以前的源备份一下,以...