Creating a bug report/issue
Details:
- Date | Wed Sep 13 00:42:46 BST 2023
- DietPi version | v8.21.1 (MichaIng/master)
- Image creator |
- Pre-image |
- Hardware | ROCK64 (aarch64) (ID=43)
- Kernel version |
Linux DietPi 6.1.46-current-rockchip64 #3 SMP PREEMPT Wed Aug 16 16:27:31 UTC 2023 aarch64 GNU/Linux
- Distro | bullseye (ID=6)
- Command |
apt-get -y dist-upgrade
- Exit code | 100
- Software title | DietPi-Software
Additional Information (if applicable)
- Software title | (EG: Nextcloud)
- Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi? YES
← If you sent a “dietpi-bugreport”, please paste the ID here →
- Bug report ID |
echo $G_HW_UUID
Steps to reproduce
- Flash Dietpi then access it through ssh
Expected behaviour
- It completes the update it starts automatically
Actual behaviour
- it runs a dist-upgrade, gets to installing 'linux-image-current-rockchip64 then seems to crash and the system becomes unresponsive until the microsd is re-flashed.
Log:
debconf: delaying package configuration, since apt-utils is not installed
Fetched 57.1 MB in 6s (8963 kB/s)
(Reading database ... 17581 files and directories currently installed.)
Preparing to unpack .../base-files_23.8.1-bullseye_arm64.deb ...
Unpacking base-files (23.8.1-bullseye) over (11.1+deb11u7) ...
Setting up base-files (23.8.1-bullseye) ...
(Reading database ... 17582 files and directories currently installed.)
Preparing to unpack .../armbian-firmware_23.8.1_all.deb ...
Unpacking armbian-firmware (23.8.1) over (23.08.0-trunk) ...
Preparing to unpack .../libjson-c5_0.15-2+deb11u1_arm64.deb ...
Unpacking libjson-c5:arm64 (0.15-2+deb11u1) over (0.15-2) ...
Preparing to unpack .../linux-dtb-current-rockchip64_23.8.1_arm64.deb ...
Armbian 'linux-dtb-current-rockchip64' for '6.1.50-current-rockchip64': 'preinst' starting.
Armbian 'linux-dtb-current-rockchip64' for '6.1.50-current-rockchip64': 'preinst' finishing.
Unpacking linux-dtb-current-rockchip64 (23.8.1) over (23.08.0-trunk) ...
Preparing to unpack .../linux-image-current-rockchip64_23.8.1_arm64.deb ...
Armbian 'linux-image-current-rockchip64' for '6.1.46-current-rockchip64': 'prerm' starting.
Armbian 'linux-image-current-rockchip64' for '6.1.46-current-rockchip64': 'prerm' finishing.
Armbian 'linux-image-current-rockchip64' for '6.1.50-current-rockchip64': 'preinst' starting.
Armbian 'linux-image-current-rockchip64' for '6.1.50-current-rockchip64': 'preinst' finishing.
Unpacking linux-image-current-rockchip64 (23.8.1) over (23.08.0-trunk) ...
Armbian 'linux-image-current-rockchip64' for '6.1.46-current-rockchip64': 'postrm' starting.
Removing obsolete initramfs images
Armbian 'linux-image-current-rockchip64' for '6.1.46-current-rockchip64': 'postrm' finishing.
Preparing to unpack .../linux-u-boot-rock64-current_23.8.1_arm64.deb ...
Unpacking linux-u-boot-rock64-current (23.8.1) over (23.02.2) ...
Setting up linux-image-current-rockchip64 (23.8.1) ...
Armbian 'linux-image-current-rockchip64' for '6.1.50-current-rockchip64': 'postinst' starting.
Removing obsolete initramfs images
removed '/boot/initrd.img-6.1.46-current-rockchip64'
removed '/boot/uInitrd-6.1.46-current-rockchip64'
update-initramfs: Generating /boot/initrd.img-6.1.50-current-rockchip64
zstd: ../lib/compress/zstd_opt.c:651: ZSTD_insertBtAndGetAllMatches: Assertion `memcmp(match, ip, matchLength) == 0' failed.
Caught SIGABRT signal, printing stack:
/lib/aarch64-linux-gnu/libc.so.6(gsignal+0xdc) [0xffff9f04ceac]
/lib/aarch64-linux-gnu/libc.so.6(abort+0x108) [0xffff9f039aa0]
/lib/aarch64-linux-gnu/libc.so.6(+0x2d478) [0xffff9f046478]
/lib/aarch64-linux-gnu/libc.so.6(+0x2d4dc) [0xffff9f0464dc]
zstd(+0x56570) [0xaaaae32a6570]
zstd(+0x15e2c) [0xaaaae3265e2c]
zstd(+0x15f2c) [0xaaaae3265f2c]
zstd(+0x16600) [0xaaaae3266600]
zstd(+0x6d5a0) [0xaaaae32bd5a0]
zstd(+0x991c) [0xaaaae325991c]
/lib/aarch64-linux-gnu/libpthread.so.0(+0x7648) [0xffff9f194648]
/lib/aarch64-linux-gnu/libc.so.6(+0xd1fdc) [0xffff9f0eafdc]
Aborted
E: mkinitramfs failure zstd -q -19 -T0 134
update-initramfs: failed for /boot/initrd.img-6.1.50-current-rockchip64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-current-rockchip64 (--configure):
installed linux-image-current-rockchip64 package post-installation script subprocess returned error exit status 1
Setting up linux-u-boot-rock64-current (23.8.1) ...
Setting up linux-dtb-current-rockchip64 (23.8.1) ...
Armbian 'linux-dtb-current-rockchip64' for '6.1.50-current-rockchip64': 'postinst' starting.
Armbian: DTB: symlinking /boot/dtb to /boot/dtb-6.1.50-current-rockchip64...
'dtb' -> 'dtb-6.1.50-current-rockchip64'
Armbian 'linux-dtb-current-rockchip64' for '6.1.50-current-rockchip64': 'postinst' finishing.
Setting up armbian-firmware (23.8.1) ...
Setting up libjson-c5:arm64 (0.15-2+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Errors were encountered while processing:
linux-image-current-rockchip64
E: Sub-process /usr/bin/dpkg returned an error code (1)
@MichaIng something you can have a look into?
initramfs-tools aborts while trying to generate the zstd initramfs archive. I guess the initramfs is then missing or broken. After this error message shows up you cannot even check/redo the step?
/lib/aarch64-linux-gnu/libpthread.so.0(+0x7648) [0xffff9f194648]
/lib/aarch64-linux-gnu/libc.so.6(+0xd1fdc) [0xffff9f0eafdc]
This looks actually like one of those libraries is broken. Can you replicate the very same issue with the fresh flashed image? It should upgrade on first boot to Linux 6.1.53, which has been pushed to the APT server just today.
after it fails it will ask if i want to re-try the command that failed. after trying again it becomes unresponsive. I will try a fresh image right now! will update
Something different is happening this time!
I had to change the ‘s’ in ‘https’ to a dollar sign because “new members cannot post more than two links at a time”.
Ran on fresh download and flash, logged in via SSH and never touched the keyboard.
Get:5 https://stpete-mirror.armbian.com/apt bullseye/main arm64 linux-image-curent-rockchip64 arm64 23.11.0-trunk.86 [41.7 MB]
Fetched 56.7 MB in 6s (9872 kB/s)
E: Failed to fetch http$://fi.mirror.armbian.de/apt/pool/main/b/base-files/basefiles_23.11.0-trunk.86-bullseye_arm64__1-bullseye-1armbian1-Bbecb-R55fa.deb 40 Not Found [IP: 65.21.120.247 443]
E: Failed to fetch http$://fi.mirror.armbian.de/apt/pool/main/l/linux-u-boot-rok64-current/linux-u-boot-rock64-current_23.11.0-trunk.86_arm64__2022.07-Se092-P0ec-He8c0-V4d06-Bd32f-R448a.deb 404 Not Found [IP: 65.21.120.247 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mising?
[FAILED] DietPi-Software | APT dist-upgrade
- Command: apt-get -y dist-upgrade
ROCK64 (aarch64) | IP: 192.168.0.40 | Use up/down buttons to scroll text───────│ Get:4 https://stpete-mirror.armbian.com/apt bullseye/main arm64
│ linux-dtb-current-rockchip64 arm64 23.11.0-trunk.86 [316 kB]
│ Get:5 http$://stpete-mirror.armbian.com/apt bullseye/main arm64
│ linux-image-current-rockchip64 arm64 23.11.0-trunk.86 [41.7 MB]
│ Fetched 56.7 MB in 6s (9872 kB/s)
│ E: Failed to fetch
│ http$://fi.mirror.armbian.de/apt/pool/main/b/base-files/base-files_23.11.0-t
│ runk.86-bullseye_arm64__1-bullseye-1armbian1-Bbecb-R55fa.deb 404 Not Found
│ [IP: 65.21.120.247 443]
│ E: Failed to fetch
│ http$://fi.mirror.armbian.de/apt/pool/main/l/linux-u-boot-rock64-current/lin
│ ux-u-boot-rock64-current_23.11.0-trunk.86_arm64__2022.07-Se092-P60ec-He8c0-V
│ 4d06-Bd32f-R448a.deb 404 Not Found [IP: 65.21.120.247 443]
│ E: Unable to fetch some archives, maybe run apt-get update or try with
│ --fix-missing?
after running apt-get dist-upgrade I get this:
Removing obsolete initramfs images
removed '/boot/initrd.img-6.1.46-current-rockchip64'
removed '/boot/uInitrd-6.1.46-current-rockchip64'
update-initramfs: Generating /boot/initrd.img-6.1.53-current-rockchip64
zstd: ../lib/compress/zstd_opt.c:651: ZSTD_insertBtAndGetAllMatches: Assertion `memcmp(match, ip, matchLength) == 0' failed.
Caught SIGABRT signal, printing stack:
/lib/aarch64-linux-gnu/libc.so.6(gsignal+0xdc) [0xffff88dfeeac]
/lib/aarch64-linux-gnu/libc.so.6(abort+0x108) [0xffff88debaa0]
/lib/aarch64-linux-gnu/libc.so.6(+0x2d478) [0xffff88df8478]
/lib/aarch64-linux-gnu/libc.so.6(+0x2d4dc) [0xffff88df84dc]
zstd(+0x56570) [0xaaaab7786570]
zstd(+0x15e2c) [0xaaaab7745e2c]
zstd(+0x15f2c) [0xaaaab7745f2c]
zstd(+0x16600) [0xaaaab7746600]
zstd(+0x6d5a0) [0xaaaab779d5a0]
zstd(+0x991c) [0xaaaab773991c]
/lib/aarch64-linux-gnu/libpthread.so.0(+0x7648) [0xffff88f46648]
/lib/aarch64-linux-gnu/libc.so.6(+0xd1fdc) [0xffff88e9cfdc]
Aborted
E: mkinitramfs failure zstd -q -19 -T0 134
update-initramfs: failed for /boot/initrd.img-6.1.53-current-rockchip64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-current-rockchip64 (--configure):
installed linux-image-current-rockchip64 package post-installation script subprocess returned error exit status 1
Setting up linux-u-boot-rock64-current (23.11.0-trunk.86) ...
Setting up linux-dtb-current-rockchip64 (23.11.0-trunk.86) ...
Armbian 'linux-dtb-current-rockchip64' for '6.1.53-current-rockchip64': 'postinst' starting.
Armbian: DTB: symlinking /boot/dtb to /boot/dtb-6.1.53-current-rockchip64...
'dtb' -> 'dtb-6.1.53-current-rockchip64'
Armbian 'linux-dtb-current-rockchip64' for '6.1.53-current-rockchip64': 'postinst' finishing.
Setting up armbian-firmware (23.11.0-trunk.86) ...
Setting up libjson-c5:arm64 (0.15-2+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Errors were encountered while processing:
linux-image-current-rockchip64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Simply enter your log into code fences
```
log
```
1 Like
after running apt dist-upgrade a few times it seems to have finally worked!
Super thankful to y’all for informing about the APT server thing, I would’ve gotten frustrated trying many other distros to no avail (just trying to get OpenMediaVault up so I can watch my Stargate!)
best wishes!
Unfortunately, these Armbian package server are out of our control. Actually, it seems there are just 2 Armbian package server at all, where one is not up-to-date. But looks like it’s getting in sync right now. At least we can see some files getting updated.
It seems I was also encountering an issue here my rock64 would just freeze up after a few minutes of running commands. It seemed to freeze at that step every time, but seems to be rectified by using the user ‘dietpi’ and not ‘root’.
Who knows if that was anything to do with it, but since I stopped using ‘root’ I haven’t had any odd behavior so fingers crossed!