File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed
Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 11# 工程笔记
22
3- ## 目录
3+ ## Linux
44
5- ### Go
5+ [ Ubuntu - 切换到中国源] ( linux/ubuntu-china-source.md )
6+
7+ ## Go
68
79[ 设置代理加速国内源] ( go/go-proxy-qiniu.md )
810
9- ### Python
11+ ## Python
1012
1113[ 打包并发布包到 PyPI] ( python/build-and-publish-package-to-pypi.md )
1214
Original file line number Diff line number Diff line change 1+ # Ubuntu - 切换到中国源
2+
3+ 以下方案同样适用于 WSL2 上的 Ubuntu。
4+
5+ ## 华为云
6+
7+ ``` bash
8+ sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak && \
9+ sudo sed -i " s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list && \
10+ sudo sed -i " s@http://.*security.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list && \
11+ sudo apt-get update
12+ ```
13+
14+ ## 阿里云
15+
16+ ``` bash
17+ sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak && \
18+ sudo sed -i " s@http://.*archive.ubuntu.com@http://mirrors.aliyun.com@g" /etc/apt/sources.list && \
19+ sudo sed -i " s@http://.*security.ubuntu.com@http://mirrors.aliyun.com@g" /etc/apt/sources.list && \
20+ sudo apt-get update
21+ ```
You can’t perform that action at this time.
0 commit comments