1 Star 0 Fork 1

xianyun/Ubuntu-config

forked from 李拓/Ubuntu-config 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sources-config.sh 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
李拓 提交于 2021-01-13 08:38 . add sources-config.sh.
#!/bin/sh
echo "备份源文件sources.list"
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "修改源地址"
sudo bash -c "cat > /etc/apt/sources.list" << EOF
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
EOF
echo "更新源"
sudo apt-get update
echo "安装常用软件"
sudo apt-get install vim zsh git
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/linux-git/ubuntu-config.git
git@gitee.com:linux-git/ubuntu-config.git
linux-git
ubuntu-config
Ubuntu-config
master

搜索帮助