当前位置:   article > 正文

[linux]armbian修改为清华源_armbian换源一键代码

armbian换源一键代码
查看系统发行版本
  • 命令lsb_release -a
    在这里插入图片描述

本机为基于Debian的armbian buster
所以用清华Debian源

修改apt为清华软件源
  1. 备份原文件:
    sudo cp /etc/apt/sources.list /etc/apt/sources.list-bak
  2. 修改源
    sudo vi /etc/apt/sources.list
  3. 将下列源替换到sources.list中
    这里还添加了OMV的官方源,主要是为安装OMV做准备,不打算用OMV的可以不添加
#tsinghua source 清华源

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

# openmediavault # OMV官方源,选装吧
deb http://packages.openmediavault.org/public usul main
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

使用时候注意还得修改一下咯

# ubuntu for arm清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-proposed main restricted universe multiverse
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
# ubuntu for arm 阿里源
deb http://mirrors.aliyun.com/ubuntu-ports/ buster main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu-ports/ buster-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu-ports/ buster-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu-ports/ buster-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu-ports/ buster-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ buster main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ buster-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ buster-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ buster-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ buster-updates main multiverse restricted universe
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
更新一下

sudo apt-get update
sudo apt-get upgrade

注:OMV源需要源公钥验证签名,否则会报错,可以先把OMV的源注释掉。后面的博客里面会说明如何设置

在这里插入图片描述在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/172310
推荐阅读
相关标签
  

闽ICP备14008679号