linuxanaconda换源
时间: 2023-12-10 19:31:44 浏览: 102
Anaconda换国内源
要在Anaconda中更改Linux系统的软件源,可以按照以下步骤操作:
1. 打开终端并输入以下命令以备份原始配置文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 使用文本编辑器(如nano或vim)打开源列表文件:
```
sudo nano /etc/apt/sources.list
```
3. 将文件中的所有内容替换为以下内容(这是清华大学的Ubuntu软件源,您也可以选择其他源):
```
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
```
4. 保存并关闭文件。
5. 更新软件包列表:
```
sudo apt-get update
```
6. 安装Anaconda:
```
bash Anaconda-latest-Linux-x86_64.sh
```
7. 按照安装程序的提示进行操作。
阅读全文