Armbian安装后更换国内源

这篇具有很好参考价值的文章主要介绍了Armbian安装后更换国内源。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

简述

Armbain默认使用的是国外的软件源,但是速度很慢,安装软件下载速度韩漫,所以我们需要更换为国内源

说明

  • debian和Armbian的国内源是否通用的?
  • Debian和Armbian的国内源并不一定通用。虽然它们都是基于Debian的操作系统,但Armbian是专门针对ARM架构的嵌入式设备开发的,因此可能会有特定的源地址和镜像。

切换清华官方Armbian源

  • 帮助文档地址
  1. 运行 armbian-config -> Personal -> Mirrors -> 选择镜像站
  2. 编辑 /etc/apt/sources.list.d/armbian.list,将 http://apt.armbian.com 替换为以下链接,然后执行 ```apt update``。
https://mirrors.tuna.tsinghua.edu.cn/armbian

这可以由以下命令完成文章来源地址https://www.toymoban.com/news/detail-716444.html

sed -i.bak 's#http://apt.armbian.com#https://mirrors.tuna.tsinghua.edu.cn/armbian#g' /etc/apt/sources.list.d/armbian.list
apt update

操作

查看版本【可略】

  • Armbian上查看系统版本
    cat /etc/armbian-release
    
  • 例如:
    root@armbian:~# cat /etc/armbian-release
    # PLEASE DO NOT EDIT THIS FILE
    BOARD=odroidn2
    BOARD_NAME="RK-Panther-X2"
    BOARDFAMILY=meson-g12b
    BUILD_REPOSITORY_URL=
    BUILD_REPOSITORY_COMMIT=
    VERSION=23.05.0-trunk
    LINUXFAMILY=meson64
    ARCH=arm64
    IMAGE_TYPE=stable
    BOARD_TYPE=conf
    INITRD_ARCH=arm64
    KERNEL_IMAGE_TYPE=Image
    FORCE_BOOTSCRIPT_UPDATE=yes
    VENDOR=Armbian
    REVISION=23.05.0-trunk
    BOOTSCRIPT_FORCE_UPDATE="yes"
    BOOTSCRIPT_DST="boot.cmd"
    BRANCH=current
    

常用的国内镜像源

  • 清华大学
  • 中科大
  • 阿里云
  • 163

操作步骤

  1. 打开 /etc/apt/sources.list 文件以编辑,将当前的软件源地址注释或备份,以便将来可以恢复到原始设置
sudo nano /etc/apt/sources.list
  1. 将以下内容【任选其一即可】添加到 sources.list 文件中:
    • 针对armbian的源,可以试试
    deb http://mirrors.tuna.tsinghua.edu.cn/armbian/ buster main buster-utils buster-desktop
    
    • 使用debian的源也可以,如果出现问题,请切换到合适的armbian源
    • 清华源
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
    #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
    
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
    #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
    
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
    #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
    
    deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bullseye-security main contrib non-free
    #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bullseye-security main contrib non-free
    
    • 阿里云源
    deb http://mirrors.aliyun.com/debian/ bullseye main contrib non-free
    #deb-src http://mirrors.aliyun.com/debian/ bullseye main contrib non-free
    
    deb http://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-free
    #deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-free
    
    deb http://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free
    #deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free
    
    deb http://mirrors.aliyun.com/debian-security/ bullseye-security main contrib non-free
    #deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main contrib non-free
    
    
  2. 保存更改(使用 Ctrl + O,然后按 Enter 键),然后关闭文件(使用 Ctrl + X)
  3. 更新软件源列表,以便使用新的镜像源
    sudo apt update
    
  4. 然后会提示你,可升级的包如:
    4 packages can be upgraded. Run 'apt list --upgradable' to see them.
    
  5. 按照提示的命令进行升级即可【速度搜搜快】
    apt list --upgradable
    
    sudo apt upgrade
    

到了这里,关于Armbian安装后更换国内源的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • linux[armbian]环境安装nginx

    下载Nginx: 访问[Nginx官方网站](https://nginx.org/),在下载页面找到最新版本的Nginx。可以选择稳定版本或开发版本,然后点击相应的下载链接。 安装依赖项: 在安装Nginx之前,需要安装一些必要的依赖项,例如编译工具和库。对于基于Debian或Ubuntu的系统,可以使用以下命令安

    2024年02月12日
    浏览(31)
  • 玩客云刷ARMBIAN当服务器过程记录

    1、可以刷成电视+游戏盒子的双系统。也可以刷成单独的电视盒子和游戏盒子。不过因为内存有限放不了多少游戏。还是建议用外置SD卡存储游戏比较合适。 2、刷成Armbian linux系统(可以实现docker、可道云、甜糖等多种功能) 3、最后它还可以刷软路由OpenWrt系统 网上有教程说

    2024年02月05日
    浏览(31)
  • 猿创征文|[CM311-1A Armbian]-烧录制作 Armbian 系统盘以及写入 CM311-1A 机顶盒的 EMMC 刷成服务器

    ################################################## 目录 寻找盒子系统镜像 关于镜像网站 盒子简介 卖家镜像站 s9x 芯片镜像 Ubuntu Armbian jammy Debian Armbian bullseye 默认 arm 系统账户和密码 我所使用的 Armbian Server 镜像资源 使用烧录工具烧录 Armbian 系统盘 获取 balenaEtcher U 盘系统烧录工具 安

    2024年02月04日
    浏览(155)
  • Debian 更换国内源

    有时候我们访问 Debian 的国外网站会比较慢,可以换为国内的源。 查看 Debian 全球镜像站 Debian -- Debian Mirrors (worldwide),可以找到需要的国内的源网址: mirror.bjtu.edu.cn /debian/ amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x mirror.lzu.edu.cn /debian/ amd64 arm64 armel armhf i386 mips mips64el

    2024年02月10日
    浏览(33)
  • armbian 安装openwrt

    先刷armbian 装docker 跑openwrt armbian系统开机 换Debian源(非必要,我没有换反而成功了, 换了反而更新不出来) nano /etc/apt/sources.list (ctrl+x退出) 更新软件 apt-get update apt-get upgrade  安装docker apt install docker.io 打开网卡混杂模式 ip link set eth0 promisc on 创建网络 docker network create -d

    2024年04月08日
    浏览(30)
  • armbian安装docker

    在Armbian上安装Docker,可以按照以下步骤操作: 1、更新软件包列表: 2、安装必要的软件包以允许apt通过HTTPS使用仓库: 3、添加Docker的官方GPG密钥: 4、添加Docker的稳定仓库: 5、再次更新软件包列表(用于读取新添加的Docker仓库): 6、安装Docker CE(社区版): 7、为了确保

    2024年02月21日
    浏览(31)
  • armbian linux 修改主分区磁盘大小

    购买了一块全志 A64 开发板需要用到QT做界面显示,不想从0开始直接搞,找到bananaPi-M64 的ArmBain镜像写入SD卡后在使用dd 写入emmc ,简单修改DTB,发现8G的emmc 识别到的可用空间只有7G,还有一些空间根本没有使用,百度一堆没用的指令;这里记录一下主分区磁盘扩容的方法:

    2024年02月07日
    浏览(36)
  • E900V21C(S905L-armbian)安装armbian-Ubuntu(WiFi)

      基本上是s905L芯片的刷机都是如此,包括Q7等 在网上寻找好多的教程关于e900v21c的刷机包和教程都少的可怜,唯一的就是这个: 山东联通版创维E900V21C盒子刷入Armbiam并安装宝塔和Docker,但他是不能用WiFi和蓝牙的然后就是寻找s90l的刷机教程,之后便是有了这篇文章 寻找镜像

    2024年02月04日
    浏览(60)
  • 【N1盒子安装Armbian,portainer,openwrt记录】

    官方文档:https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/README.cn.md 以下记录文档中没提到的,自己安装过程中的一些问题: 点击show all,展开列表,搜索“s905d”,下载.img.gz结尾的文件,下载其中一个版本: 按照文档推荐,我选择了Rufus刷镜像:https://rufus.ie/zh/。 选择下U盘,选

    2024年04月22日
    浏览(30)
  • 2.玩客云armbian5.9安装docker

    1.换源 命令:nano /etc/apt/sources.list #用以下内容替换原文件内容 deb https://mirrors.ustc.edu.cn/debian buster main contrib non-free deb https://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free deb https://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free deb

    2024年02月05日
    浏览(47)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包