特别注意:
Armbian-bullseye/jammy
先说明一下,为什么会有2个版本。Armbian是基于Debian/Ubuntu的用于ARM芯片的Linux系统。
而Ubuntu也是Debian底层修改来的,当Debian发布一个新版本时,Ubuntu也会有对应的新版本,再到Armbian时就会有对应的Debian和Ubuntu的2个版本。
基于Debian11,及版本号是bullseye的,对应的Ubuntu的版本号是jammy。
为什么刷这个版本,因为这个版本能用OMV6,OMV6界面感觉挺好的。我先截图看看:
固定IP
# interface file auto-generated by buildroot auto lo iface lo inet loopback // 上面是默认的内容,下面是新增的内容,上下之间需要一个空行隔开 // 接口顶格写,属性的前面有一个tab的缩进 # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.113 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1
dhcp
# interface file auto-generated by buildroot auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp
加证书
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xdf00faf1c577104b50bf1d0093d6889f9f0e78d5' |gpg --dearmor| sudo tee /etc/apt/trusted.gpg.d/armbian.gpg
----------------------------------------------------
证书文件下载:https://cloud.189.cn/web/share?code=yQZFNbnmqe63(访问码:lc5u)
放置在以下目录下:
/etc/apt/
即在etc/apt/目录下能见到trusted.gpg这个文件
本地备用:
cd /etc/apt wget http://www.58zn.cn/UpFile/wky/trusted.gpg vim /etc/apt/sources.list.d/armbian.list deb [signed-by=/etc/apt/trusted.gpg] http://mirrors.tuna.tsinghua.edu.cn/armbian/ bookworm main bookworm-utils bookworm-desktop
这个问题能解决大部分
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/armbian focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
这里因为时间不对证书不对的armbian更新的问题
----------------------------------------------------
改源
nano /etc/apt/sources.list
加入清华源,替换全部内容
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware # deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware # # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
nano /etc/apt/sources.list.d/armbian.list
deb [signed-by=/usr/share/keyrings/armbian.gpg] http://mirrors.tuna.tsinghua.edu.cn/armbian/ bookworm main bookworm-utils bookworm-desktop
apt update apt upgrade
装docker
apt install docker.io
============================================================
Ubuntu_20.04的源地址:
vim /etc/apt/sources.list
deb http://ports.ubuntu.com/ focal main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal main restricted universe multiverse deb http://ports.ubuntu.com/ focal-security main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal-security main restricted universe multiverse deb http://ports.ubuntu.com/ focal-updates main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal-updates main restricted universe multiverse deb http://ports.ubuntu.com/ focal-backports main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal-backports main restricted universe multiverse
vim /etc/apt/sources.list.d/armbian.list
deb http://apt.armbian.com focal main focal-utils focal-desktop
返回顶部