admin管理员组文章数量:1122847
查看系统发行版本
- 命令
lsb_release -a
本机为基于Debian的armbian buster
所以用清华Debian源
修改apt为清华软件源
- 备份原文件:
sudo cp /etc/apt/sources.list /etc/apt/sources.list-bak
- 修改源
sudo vi /etc/apt/sources.list
- 将下列源替换到sources.list中
这里还添加了OMV的官方源,主要是为安装OMV做准备,不打算用OMV的可以不添加
#tsinghua source 清华源
deb https://mirrors.tuna.tsinghua.edu/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu/debian-security buster/updates main contrib non-free
# openmediavault # OMV官方源,选装吧
deb http://packages.openmediavault/public usul main
使用时候注意还得修改一下咯
# ubuntu for arm清华源 deb https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-security main restricted universe multiverse # 预发布软件源,不建议启用 # deb https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu/ubuntu-ports/ xenial-proposed main restricted universe multiverse
# ubuntu for arm 阿里源 deb http://mirrors.aliyun/ubuntu-ports/ buster main multiverse restricted universe deb http://mirrors.aliyun/ubuntu-ports/ buster-backports main multiverse restricted universe deb http://mirrors.aliyun/ubuntu-ports/ buster-proposed main multiverse restricted universe deb http://mirrors.aliyun/ubuntu-ports/ buster-security main multiverse restricted universe deb http://mirrors.aliyun/ubuntu-ports/ buster-updates main multiverse restricted universe deb-src http://mirrors.aliyun/ubuntu-ports/ buster main multiverse restricted universe deb-src http://mirrors.aliyun/ubuntu-ports/ buster-backports main multiverse restricted universe deb-src http://mirrors.aliyun/ubuntu-ports/ buster-proposed main multiverse restricted universe deb-src http://mirrors.aliyun/ubuntu-ports/ buster-security main multiverse restricted universe deb-src http://mirrors.aliyun/ubuntu-ports/ buster-updates main multiverse restricted universe
更新一下
sudo apt-get update
sudo apt-get upgrade
注:OMV源需要源公钥验证签名,否则会报错,可以先把OMV的源注释掉。后面的博客里面会说明如何设置
版权声明:本文标题:[linux]armbian修改为清华源 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1725891881a1025879.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论