Comments (15)
Can you run these commands and paste the output here:
dpkg-query -s rpi-eeprom
apt-mark showhold rpi-eeprom
apt-mark unhold rpi-eeprom
from dietpi.
from dietpi.
E: Syntax error /etc/apt/apt.conf.d/01autoremove-kernels:1: Extra junk at end of file
Oh, this file seems to be corrupted. Can you paste its content?
cat /etc/apt/apt.conf.d/01autoremove-kernels
However, you can just remove it. It has no effect on RPi anyway, and is not really needed at all:
rm /etc/apt/apt.conf.d/01autoremove-kernels
dietpi-update 1
from dietpi.
from dietpi.
from dietpi.
from dietpi.
for me it looks your system has quite some data corruption. Nearly every file we touch is damaged.
Btw: if possible, login to GitHub directly instead of using mail. Not every information is show correctly using mail, like pictures are missing.
from dietpi.
please see images below
Hope this helps find the issue. Also below is the text cut and paste
The update process started well this time and got further ahead, but got stuck like below
APT upgrade
│ - Command: apt-get -y --with-new-pkgs upgrade
│ - Exit code: 100
│ - DietPi version: v8.16.2 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 | DISTRO: 6
│ - Error log:
│ Reading package lists...
│ Building dependency tree...
│ Reading state information...
│ Calculating upgrade...
│ The following packages will be upgraded:
│ adduser base-files bsdutils curl debian-archive-keyring dpkg dpkg-dev fdisk
│ file firmware-atheros firmware-brcm80211 firmware-iwlwifi
│ firmware-misc-nonfree firmware-realtek grep isc-dhcp-client libblkid1
│ libbsd0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libcurl3-gnutls
│ libcurl4 libdbus-1-3 libdpkg-perl libfdisk1 libglib2.0-0 libgnutls30
│ libgssapi-krb5-2 libjson-c5 libk5crypto3 libkrb5-3 libkrb5support0
│ libmagic-mgc libmagic1 libmount1 libncurses-dev libncurses5-dev libncurses6
│ libncursesw5-dev libncursesw6 libnghttp2-14 libperl5.32 libsmartcols1
│ libssl-dev libssl1.1 libsystemd0 libtinfo6 libudev1 libuuid1 libx11-6
│ libx11-data libx11-dev locales mount ncurses-base ncurses-bin openssh-client
│ openssh-server openssh-sftp-server openssl perl perl-base perl-modules-5.32
│ rpi-eeprom systemd systemd-sysv tar tzdata udev util-linux uuid-dev
│ 74 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
│ Need to get 99.2 MB of archives.
│ After this operation, 54.3 MB disk space will be freed.
│ Get:1 http://ftp.au.debian.org/debian bullseye/main arm64 base-files arm64 11.1+deb11u9 [70.2 kB]
│ Get:2 https://deb.debian.org/debian-security bullseye-security/main arm64 bsdutils arm64 1:2.36.1-8+deb11u2 [145 kB]
│ Get:3 http://ftp.au.debian.org/debian bullseye/main arm64 tar arm64 1.34+dfsg-1+deb11u1 [830 kB]
│ Get:4 https://deb.debian.org/debian-security bullseye-security/main arm64 libblkid1 arm64 2.36.1-8+deb11u2 [187 kB]
│ Get:5 https://deb.debian.org/debian-security bullseye-security/main arm64 uuid-dev arm64 2.36.1-8+deb11u2 [99.6 kB]
│ Get:6 https://deb.debian.org/debian-security bullseye-security/main arm64 libuuid1 arm64 2.36.1-8+deb11u2 [83.4 kB]
│ Get:7 https://deb.debian.org/debian-security bullseye-security/main arm64 libfdisk1 arm64 2.36.1-8+deb11u2 [224 kB]
│ Get:8 https://deb.debian.org/debian-security bullseye-security/main arm64 libmount1 arm64 2.36.1-8+deb11u2 [203 kB]
│ Get:9 https://deb.debian.org/debian-security bullseye-security/main arm64 libsmartcols1 arm64 2.36.1-8+deb11u2 [152
│ kB]
│ Get:10 https://deb.debian.org/debian-security bullseye-security/main arm64 fdisk arm64 2.36.1-8+deb11u2 [186 kB]
│ Get:11 https://deb.debian.org/debian-security bullseye-security/main arm64 util-linux arm64 2.36.1-8+deb11u2 [1097
│
│ Retry : Re-run the last command that failed ↑
│ DietPi-Config : Edit network, APT/NTP mirror settings etc ▮
│
Get:48 http://ftp.au.debian.org/debian bullseye/main arm64 libkrb5support0 arm64 1.18.3-6+deb11u4 [65.1 kB]
│ Get:49 http://ftp.au.debian.org/debian bullseye/main arm64 libkrb5-3 arm64 1.18.3-6+deb11u4 [347 kB]
│ Get:50 http://ftp.au.debian.org/debian bullseye/main arm64 libgssapi-krb5-2 arm64 1.18.3-6+deb11u4 [155 kB]
│ Get:51 http://ftp.au.debian.org/debian bullseye/main arm64 tzdata all 2024a-0+deb11u1 [304 kB]
│ Get:52 http://ftp.au.debian.org/debian bullseye/main arm64 isc-dhcp-client arm64 4.4.1-2.3+deb11u2 [329 kB]
│ Get:53 http://ftp.au.debian.org/debian bullseye/main arm64 file arm64 1:5.39-3+deb11u1 [69.2 kB]
│ Get:54 http://ftp.au.debian.org/debian bullseye/main arm64 libmagic1 arm64 1:5.39-3+deb11u1 [123 kB]
│ Get:55 http://ftp.au.debian.org/debian bullseye/main arm64 libmagic-mgc arm64 1:5.39-3+deb11u1 [273 kB]
│ Get:56 http://ftp.au.debian.org/debian bullseye/main arm64 openssh-sftp-server arm64 1:8.4p1-5+deb11u3 [50.3 kB]
│ Get:57 http://ftp.au.debian.org/debian bullseye/main arm64 openssh-server arm64 1:8.4p1-5+deb11u3 [363 kB]
│ Get:58 http://ftp.au.debian.org/debian bullseye/main arm64 openssh-client arm64 1:8.4p1-5+deb11u3 [898 kB]
│ Get:59 http://ftp.au.debian.org/debian bullseye/main arm64 libnghttp2-14 arm64 1.43.0-1+deb11u1 [74.2 kB]
│ Get:60 http://ftp.au.debian.org/debian bullseye/main arm64 curl arm64 7.74.0-1.3+deb11u11 [265 kB]
│ Get:61 http://ftp.au.debian.org/debian bullseye/main arm64 libcurl4 arm64 7.74.0-1.3+deb11u11 [326 kB]
│ Get:62 http://ftp.au.debian.org/debian bullseye/main arm64 dpkg-dev all 1.20.13 [2314 kB]
│ Get:63 https://archive.raspberrypi.com/debian bullseye/main arm64 firmware-misc-nonfree all
│ 1:20230210-5~bpo11+1+rpt2 [13.0 MB]
│ Get:64 http://ftp.au.debian.org/debian bullseye/main arm64 libdpkg-perl all 1.20.13 [1552 kB]
│ Get:65 http://ftp.au.debian.org/debian bullseye/main arm64 libbsd0 arm64 0.11.3-1+deb11u1 [106 kB]
│ Get:66 http://ftp.au.debian.org/debian bullseye/main arm64 libcurl3-gnutls arm64 7.74.0-1.3+deb11u11 [323 kB]
│ Get:67 http://ftp.au.debian.org/debian bullseye/main arm64 libdbus-1-3 arm64 1.12.28-0+deb11u1 [213 kB]
│ Get:68 http://ftp.au.debian.org/debian bullseye/main arm64 libjson-c5 arm64 0.15-2+deb11u1 [41.6 kB]
│ Get:69 http://ftp.au.debian.org/debian bullseye/main arm64 libx11-dev arm64 2:1.7.2-1+deb11u2 [831 kB]
│ Get:70 https://archive.raspberrypi.com/debian bullseye/main arm64 firmware-realtek all 1:20230210-5~bpo11+1+rpt2
│ [1508 kB]
│ Get:71 https://archive.raspberrypi.com/debian bullseye/main arm64 openssl arm64 1.1.1w-0+deb11u1+rpt1 [837 kB]
│ Get:72 http://ftp.au.debian.org/debian bullseye/main arm64 libx11-data all 2:1.7.2-1+deb11u2 [311 kB]
│ Get:73 https://archive.raspberrypi.com/debian bullseye/main arm64 rpi-eeprom arm64 16.1-1 [2396 kB]
│ Get:74 http://ftp.au.debian.org/debian bullseye/main arm64 libx11-6 arm64 2:1.7.2-1+deb11u2 [744 kB]
│ debconf: delaying package configuration, since apt-utils is not installed
│ Fetched 99.2 MB in 23s (4237 kB/s)
│ (Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading datab
│ ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(
│ database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database .
│ (Reading database ... 70%^Mdpkg: unrecoverable fatal error, aborting:^M
│ files list file for package 'linux-libc-dev:arm64' is missing final newline^M
│ E: Sub-process /usr/bin/dpkg returned an error code (2)
from dietpi.
can you share kernel error log
dmesg -l 0,1,2,3
would be enough to share the console output (copy/paste). No need to do screen shots
from dietpi.
root@DietPi:~# dmesg -l 0,1,2,3
[6915291.009977] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915302.649403] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915314.279095] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915325.890941] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915337.514225] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915349.114315] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915360.716089] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915384.027033] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915395.634356] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[6915418.899099] ieee80211 phy0: brcmf_cfg80211_add_iface: iface validation failed: err=-16
from dietpi.
Do you have a backup where individual files can be easily restored from or even the whole system of more/other files turn out to be affected?
However, you can restore an individual package's file list like that:
cd /tmp
apt download linux-libc-dev
dpkg-deb -R linux-libc-dev*.deb package
find package -mindepth 1 ! \( -path 'package/DEBIAN*' -prune \) | sed 's/^package//' > /var/lib/dpkg/info/linux-libc-dev:arm64.list
rm -R package*
apt update
apt upgrade
from dietpi.
Unfortunately don't have a backup. I ran the commands you mentioned, all worked well until last command "apt upgrade", see output below. Say "apt-utils is not installed", seems we are close to resolving this...hopefully.
root@DietPi:~# cd /tmp
root@DietPi:/tmp# apt download linux-libc-dev
Get:1 https://archive.raspberrypi.com/debian bullseye/main arm64 linux-libc-dev arm64 1:1.20230405-1 [1135 kB]
Fetched 1135 kB in 4s (303 kB/s)
root@DietPi:/tmp# dpkg-deb -R linux-libc-dev*.deb package
root@DietPi:/tmp# find package -mindepth 1 ! \( -path 'package/DEBIAN*' -prune \) | sed 's/^package//' > /var/lib/dpkg/info/linux-libc-dev:arm64.list
root@DietPi:/tmp# rm -R package*
root@DietPi:/tmp# apt update
Hit:1 http://ftp.au.debian.org/debian bullseye InRelease
Get:2 http://ftp.au.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:3 https://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:4 http://ftp.au.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 https://deb.debian.org/debian-security bullseye-security/main arm64 Packages [271 kB]
Get:6 https://archive.raspberrypi.com/debian bullseye InRelease [23.6 kB]
Get:7 https://archive.raspberrypi.com/debian bullseye/main arm64 Packages [307 kB]
Fetched 743 kB in 5s (159 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
74 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@DietPi:/tmp# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
adduser base-files bsdutils curl debian-archive-keyring dpkg dpkg-dev fdisk file firmware-atheros firmware-brcm80211 firmware-iwlwifi firmware-misc-nonfree
firmware-realtek grep isc-dhcp-client libblkid1 libbsd0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libcurl3-gnutls libcurl4 libdbus-1-3 libdpkg-perl libfdisk1
libglib2.0-0 libgnutls30 libgssapi-krb5-2 libjson-c5 libk5crypto3 libkrb5-3 libkrb5support0 libmagic-mgc libmagic1 libmount1 libncurses-dev libncurses5-dev libncurses6
libncursesw5-dev libncursesw6 libnghttp2-14 libperl5.32 libsmartcols1 libssl-dev libssl1.1 libsystemd0 libtinfo6 libudev1 libuuid1 libx11-6 libx11-data libx11-dev
locales mount ncurses-base ncurses-bin openssh-client openssh-server openssh-sftp-server openssl perl perl-base perl-modules-5.32 rpi-eeprom systemd systemd-sysv tar
tzdata udev util-linux uuid-dev
74 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/99.2 MB of archives.
After this operation, 54.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
dpkg: unrecoverable fatal error, aborting:
files list file for package 'libxau-dev:arm64' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
from dietpi.
Still the same issue, just another package. Repeat above steps, but replace linux-libc-dev
with libxau-dev
.
The debconf
warning is no error and unrelated. It is expected on DietPi, since we do not see debconf
pre-generation as a real benefit, and script-internal APT calls skip the rare debconf
dialogs, using reasonable defaults.
from dietpi.
I repeated those steps and got another issue with another package again, followed same steps to update that package also.
Once these packages were sorted, the pi upgraded to latest version of Dietpi. You can now close this issue as you have successfully resolved it.
Thanks so much for your help, it's very much appreciated !!
from dietpi.
Okay, the question remains why so many files were damaged, whether it was a one-time problem like system crash in a bad moment, or some issue with the SD card, and whether other important files are affected. At least APT works again, so whenever you face another issue because of a damaged file, its related package can be reinstalled to repair it.
from dietpi.
Related Issues (20)
- Open Beta v9.6 | Please help testing and hardening our upcoming release HOT 2
- ODROID N2+ can't find USB DAC with latest packages HOT 17
- Will more version be supported for nextcloud ? HOT 4
- Update cannot be finished HOT 1
- Bazarr not working (probably after 9.5.1 upgrade) HOT 7
- 37668978
- Dietpi-banner displays garbled RAM usage HOT 2
- Iteration v9.7 (2024-08-03)
- USB WiFi (TP-Link Archer T2U PLUS) adapter not working on Odroid N2+ since recent kernel upgrade HOT 7
- Dietpi-update fails to complete due to apt-key cannot create /dev/null HOT 8
- Radxa Zero 3W - Format eMMC fails Report 62215187-eddb-4247-9feb-69f6d693802e HOT 2
- Koel not working anymore after updating to version 7.0.2 HOT 8
- Error while updating diet Pi version from 9.4.2 to 9.6.1 HOT 10
- unable to update dietpi to latest version HOT 51
- mariaDB crashing HOT 10
- Multiple shells installed by default? HOT 2
- error
- Jre-17-headless incompatible with PaperMC 1.21 HOT 1
- Unable to upgrade DietPi from v9.5.1 to v9.6.1 HOT 14
- Parallels or UTM arm image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dietpi.