用清华源
root@armbian:~# apt update && apt upgrade
Hit:1 https://mirrors.tuna.tsinghua.edu.cn/armbian noble InRelease
Hit:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble InRelease
Hit:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security InRelease
Hit:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates InRelease
Hit:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-backports InRelease
Hit:6 https://github.armbian.com/configng stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
37 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
armbian-bsp-cli-odroidn2-current
The following packages will be upgraded:
armbian-config armbian-firmware armbian-plymouth-theme armbian-zsh base-files bsdextrautils bsdutils fake-ubuntu-advantage-tools fdisk libblkid1 libfdisk1 libfreetype6 libmount1 libnm0
libpython3.12-minimal libpython3.12-stdlib libsmartcols1 libssh-4 libuuid1 linux-base linux-libc-dev mount network-manager network-manager-config-connectivity-ubuntu network-manager-openvpn
openssh-client openssh-server openssh-sftp-server openvpn python3-cryptography python3.12 python3.12-minimal rfkill sudo util-linux wpasupplicant
36 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 172 MB of archives.
After this operation, 136 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/armbian noble/noble-utils arm64 base-files arm64 26.2.1-13ubuntu10-noble [69.0 kB]
Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 bsdutils arm64 1:2.39.3-9ubuntu6.5 [98.6 kB]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 util-linux arm64 2.39.3-9ubuntu6.5 [1,116 kB]
Get:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 mount arm64 2.39.3-9ubuntu6.5 [116 kB]
Get:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 python3.12 arm64 3.12.3-1ubuntu0.12 [651 kB]
Get:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libpython3.12-stdlib arm64 3.12.3-1ubuntu0.12 [2,037 kB]
Get:7 https://github.armbian.com/configng stable/main arm64 armbian-config all 26.2.0-trunk.589.0316.073022 [170 kB]
Get:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 python3.12-minimal arm64 3.12.3-1ubuntu0.12 [2,252 kB]
Get:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libpython3.12-minimal arm64 3.12.3-1ubuntu0.12 [834 kB]
Get:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 openssh-sftp-server arm64 1:9.6p1-3ubuntu13.15 [36.9 kB]
Get:11 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 openssh-server arm64 1:9.6p1-3ubuntu13.15 [501 kB]
Get:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 openssh-client arm64 1:9.6p1-3ubuntu13.15 [885 kB]
Get:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libblkid1 arm64 2.39.3-9ubuntu6.5 [123 kB]
Get:14 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libmount1 arm64 2.39.3-9ubuntu6.5 [133 kB]
Get:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libsmartcols1 arm64 2.39.3-9ubuntu6.5 [65.2 kB]
Get:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libuuid1 arm64 2.39.3-9ubuntu6.5 [36.2 kB]
Get:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libfdisk1 arm64 2.39.3-9ubuntu6.5 [142 kB]
Get:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 sudo arm64 1.9.15p5-3ubuntu5.24.04.2 [929 kB]
Get:19 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 bsdextrautils arm64 2.39.3-9ubuntu6.5 [71.5 kB]
Get:20 https://mirrors.tuna.tsinghua.edu.cn/armbian noble/main arm64 armbian-firmware all 26.2.1 [141 MB]
Get:21 https://mirrors.tuna.tsinghua.edu.cn/armbian noble/main arm64 armbian-plymouth-theme all 26.2.1 [112 kB]
Get:22 https://mirrors.tuna.tsinghua.edu.cn/armbian noble/main arm64 armbian-zsh all 26.2.1 [12.0 MB]
Get:23 https://mirrors.tuna.tsinghua.edu.cn/armbian noble/main arm64 fake-ubuntu-advantage-tools all 26.2.1 [1,360 B]
Get:24 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 fdisk arm64 2.39.3-9ubuntu6.5 [120 kB]
Get:25 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libfreetype6 arm64 2.13.2+dfsg-1ubuntu0.1 [394 kB]
Get:26 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates/main arm64 wpasupplicant arm64 2:2.10-21ubuntu0.4 [1,457 kB]
Get:27 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates/main arm64 network-manager arm64 1.46.0-1ubuntu2.6 [2,275 kB]
Get:28 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates/main arm64 libnm0 arm64 1.46.0-1ubuntu2.6 [482 kB]
Get:29 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 libssh-4 arm64 0.10.6-2ubuntu0.4 [191 kB]
Get:30 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates/main arm64 linux-base all 4.5ubuntu9+24.04.2 [19.6 kB]
Get:31 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 linux-libc-dev arm64 6.8.0-106.106 [2,069 kB]
Get:32 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates/main arm64 network-manager-config-connectivity-ubuntu all 1.46.0-1ubuntu2.6 [2,266 B]
Get:33 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates/main arm64 openvpn arm64 2.6.19-0ubuntu0.24.04.1 [674 kB]
Get:34 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-updates/main arm64 network-manager-openvpn arm64 1.10.2-4ubuntu0.2 [58.4 kB]
Get:35 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 python3-cryptography arm64 41.0.7-4ubuntu0.3 [776 kB]
Get:36 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports noble-security/main arm64 rfkill arm64 2.39.3-9ubuntu6.5 [19.8 kB]
Fetched 172 MB in 11s (15.2 MB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 34702 files and directories currently installed.)
Preparing to unpack .../base-files_26.2.1-13ubuntu10-noble_arm64.deb ...
Unpacking base-files (26.2.1-13ubuntu10-noble) over (26.02.0-trunk-13ubuntu10-noble) ...
Setting up base-files (26.2.1-13ubuntu10-noble) ...
Created symlink /etc/systemd/system/timers.target.wants/motd-news.timer → /usr/lib/systemd/system/motd-news.timer.
motd-news.service is a disabled or a static unit not running, not starting it.
(Reading database ... 34701 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking bsdutils (1:2.39.3-9ubuntu6.5) over (1:2.39.3-9ubuntu6.4) ...
Setting up bsdutils (1:2.39.3-9ubuntu6.5) ...
(Reading database ... 34701 files and directories currently installed.)
Preparing to unpack .../util-linux_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking util-linux (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Setting up util-linux (2.39.3-9ubuntu6.5) ...
fstrim.service is a disabled or a static unit not running, not starting it.
(Reading database ... 34701 files and directories currently installed.)
Preparing to unpack .../0-mount_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking mount (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Preparing to unpack .../1-python3.12_3.12.3-1ubuntu0.12_arm64.deb ...
Unpacking python3.12 (3.12.3-1ubuntu0.12) over (3.12.3-1ubuntu0.11) ...
Preparing to unpack .../2-libpython3.12-stdlib_3.12.3-1ubuntu0.12_arm64.deb ...
Unpacking libpython3.12-stdlib:arm64 (3.12.3-1ubuntu0.12) over (3.12.3-1ubuntu0.11) ...
Preparing to unpack .../3-python3.12-minimal_3.12.3-1ubuntu0.12_arm64.deb ...
Unpacking python3.12-minimal (3.12.3-1ubuntu0.12) over (3.12.3-1ubuntu0.11) ...
Preparing to unpack .../4-libpython3.12-minimal_3.12.3-1ubuntu0.12_arm64.deb ...
Unpacking libpython3.12-minimal:arm64 (3.12.3-1ubuntu0.12) over (3.12.3-1ubuntu0.11) ...
Preparing to unpack .../5-openssh-sftp-server_1%3a9.6p1-3ubuntu13.15_arm64.deb ...
Unpacking openssh-sftp-server (1:9.6p1-3ubuntu13.15) over (1:9.6p1-3ubuntu13.14) ...
Preparing to unpack .../6-openssh-server_1%3a9.6p1-3ubuntu13.15_arm64.deb ...
Unpacking openssh-server (1:9.6p1-3ubuntu13.15) over (1:9.6p1-3ubuntu13.14) ...
Preparing to unpack .../7-openssh-client_1%3a9.6p1-3ubuntu13.15_arm64.deb ...
Unpacking openssh-client (1:9.6p1-3ubuntu13.15) over (1:9.6p1-3ubuntu13.14) ...
Preparing to unpack .../8-libblkid1_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking libblkid1:arm64 (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Setting up libblkid1:arm64 (2.39.3-9ubuntu6.5) ...
(Reading database ... 34701 files and directories currently installed.)
Preparing to unpack .../libmount1_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking libmount1:arm64 (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Setting up libmount1:arm64 (2.39.3-9ubuntu6.5) ...
(Reading database ... 34701 files and directories currently installed.)
Preparing to unpack .../libsmartcols1_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking libsmartcols1:arm64 (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Setting up libsmartcols1:arm64 (2.39.3-9ubuntu6.5) ...
(Reading database ... 34701 files and directories currently installed.)
Preparing to unpack .../libuuid1_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking libuuid1:arm64 (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Setting up libuuid1:arm64 (2.39.3-9ubuntu6.5) ...
(Reading database ... 34701 files and directories currently installed.)
Preparing to unpack .../00-libfdisk1_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking libfdisk1:arm64 (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Preparing to unpack .../01-sudo_1.9.15p5-3ubuntu5.24.04.2_arm64.deb ...
Unpacking sudo (1.9.15p5-3ubuntu5.24.04.2) over (1.9.15p5-3ubuntu5.24.04.1) ...
Preparing to unpack .../02-bsdextrautils_2.39.3-9ubuntu6.5_arm64.deb ...
Unpacking bsdextrautils (2.39.3-9ubuntu6.5) over (2.39.3-9ubuntu6.4) ...
Preparing to unpack .../03-armbian-config_26.2.0-trunk.589.0316.073022_all.deb ...
Unpacking armbian-config (26.2.0-trunk.589.0316.073022) over (26.2.0-trunk.422.0212.045104) ...
Preparing to unpack .../04-armbian-firmware_26.2.1_all.deb ...
Unpacking armbian-firmware (26.2.1) over (26.02.0-trunk) ...
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/04-armbian-firmware_26.2.1_all.deb (--unpack):
unable to open '/lib/firmware/qcom/sm8550/ayn/odin2mini/a740_zap.mbn.dpkg-new': No such file or directory
dpkg (subprocess): unable to execute rm command for cleanup (rm): No such file or directory
dpkg: error while cleaning up:
rm command for cleanup subprocess returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/05-armbian-plymouth-theme_26.2.1_all.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/06-armbian-zsh_26.2.1_all.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/07-fake-ubuntu-advantage-tools_26.2.1_all.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/08-fdisk_2.39.3-9ubuntu6.5_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/09-libfreetype6_2.13.2+dfsg-1ubuntu0.1_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/10-wpasupplicant_2%3a2.10-21ubuntu0.4_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/11-network-manager_1.46.0-1ubuntu2.6_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/12-libnm0_1.46.0-1ubuntu2.6_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/13-libssh-4_0.10.6-2ubuntu0.4_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/14-linux-base_4.5ubuntu9+24.04.2_all.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/15-linux-libc-dev_6.8.0-106.106_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/16-network-manager-config-connectivity-ubuntu_1.46.0-1ubuntu2.6_all.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/17-openvpn_2.6.19-0ubuntu0.24.04.1_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/18-network-manager-openvpn_1.10.2-4ubuntu0.2_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/19-python3-cryptography_41.0.7-4ubuntu0.3_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
dpkg (subprocess): unable to execute split package reassembly (dpkg-split): No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-XMfhe6/20-rfkill_2.39.3-9ubuntu6.5_arm64.deb (--unpack):
subprocess dpkg-split returned error exit status 2
Errors were encountered while processing:
/tmp/apt-dpkg-install-XMfhe6/04-armbian-firmware_26.2.1_all.deb
/tmp/apt-dpkg-install-XMfhe6/05-armbian-plymouth-theme_26.2.1_all.deb
/tmp/apt-dpkg-install-XMfhe6/06-armbian-zsh_26.2.1_all.deb
/tmp/apt-dpkg-install-XMfhe6/07-fake-ubuntu-advantage-tools_26.2.1_all.deb
/tmp/apt-dpkg-install-XMfhe6/08-fdisk_2.39.3-9ubuntu6.5_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/09-libfreetype6_2.13.2+dfsg-1ubuntu0.1_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/10-wpasupplicant_2%3a2.10-21ubuntu0.4_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/11-network-manager_1.46.0-1ubuntu2.6_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/12-libnm0_1.46.0-1ubuntu2.6_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/13-libssh-4_0.10.6-2ubuntu0.4_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/14-linux-base_4.5ubuntu9+24.04.2_all.deb
/tmp/apt-dpkg-install-XMfhe6/15-linux-libc-dev_6.8.0-106.106_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/16-network-manager-config-connectivity-ubuntu_1.46.0-1ubuntu2.6_all.deb
/tmp/apt-dpkg-install-XMfhe6/17-openvpn_2.6.19-0ubuntu0.24.04.1_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/18-network-manager-openvpn_1.10.2-4ubuntu0.2_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/19-python3-cryptography_41.0.7-4ubuntu0.3_arm64.deb
/tmp/apt-dpkg-install-XMfhe6/20-rfkill_2.39.3-9ubuntu6.5_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Problem executing scripts DPkg::Post-Invoke 'test -x /usr/lib/armbian/armbian-apt-updates && /usr/lib/armbian/armbian-apt-updates || true'
E: Sub-process returned an error code
root@armbian:~# dpkg
-bash: /usr/bin/dpkg: cannot execute: required file not found
root@armbian:~# ls
-bash: /usr/bin/ls: cannot execute: required file not found
见鬼,连系统核心命令都没有了。又得重装。。。
临时解决方案,建议锁核心包不要升级:
bash
apt-mark hold armbian-firmware 'linux-image-*' 'linux-dtb-*' 'linux-u-boot-*' 'armbian-bsp-*'
然后 apt-upgrade 就不会把系统搞崩了