MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.9k stars 499 forks source link

RPi 3B errors on clean install inc. Apt failing #7223

Closed mdr92 closed 2 months ago

mdr92 commented 2 months ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Steps to reproduce

  1. Clean install 9.7.1 and boot
  2. After initial setup and updates working fine any subsequent boots result in errors in the banner and apt failing.

Expected behaviour

No errors in banner and apt should work

Actual behaviour

Banner has error "curl: error while loading shared libraries: ▒▒▒▒" Pages of ▒▒▒▒ symbol then ": cannot open shared object file: Error 36"

Apt fails with the below Reading package lists... Error! E: Problem parsing dependency 20 of python3-rtimulib-dbgsym:none=1.22y:0.164.3095+gitba97c73ibuutil3linux (= 2.2.3-1~bpo12+ E: Error occurred while processing python3-rtimulib-dbgsym (NewVersion2) E: Problem with MergeList /var/lib/apt/lists/archive.raspberrypi.com_debian_dists_bookworm_main_binary-arm64_Packages.xz E: The package lists or status file could not be parsed or opened.

dietpi-error1 dietpi-error2

Extra details

Tried multiple clean installs, happens even without any additional software installed, have also tried a week apart and with isp dns and the dietpi one's set with the static ip option in the dietpi.txt Thanks

MichaIng commented 2 months ago

This actually looks like your SD card is about to die, if you run into similar errors on multiple fresh installs. Do you have a different one to test with?

Another thing, while 3A should be enough for an RPi 3, if it is a no-name/low-quality PSU, or more intended for charging than for stable voltage operation, it may be not. Can you check for kernel errors?

dmesg -l 0,1,2,3
mdr92 commented 2 months ago

I can try a different card, it's the same SD card and PSU that's been running my old DietPi 7.8.4 setup for years (with an ext hdd powered too, getting these errors even without that connected) though and that's working without issue, other than obviously been well out of support. I'll be back shortly after trying another card.

root@DietPi-LMS:~# dmesg -l 0,1,2,3
root@DietPi-LMS:~#

So I presume no errors?

MichaIng commented 2 months ago

So I presume no errors?

Jep that looks good. Hmm, so PSU should then be fine, and at least there were no filesystem errors during the initial setup (or did you reboot?). Could be theoretically also the SD card reader, though most tools check content after flashing it. If you have another Linux system to plug the SD card after flashing, to fsck the ext4 partition, could be done to check this.

However

Problem with MergeList /var/lib/apt/lists/archive.raspberrypi.com_debian_dists_bookworm_main_binary-arm64_Packages.xz

This file was written after first boot, so if it is corrupted, that happened afterwards 🤔.

mdr92 commented 2 months ago

It looks like it is the SD card so good spot! Weird how my 7.8.4 seems stable though and 9.7.1 is fine for the full setup and works inc. apt update until the first reboot. I also did a h2testw run on it and the whole card verified fine. Anyway, it has to be the SD card because it works ok with a different one. Thanks for the help

MichaIng commented 2 months ago

Okay great. It is possible that there is a bad block that does not get written to when flashing the image, but during package upgrades on initial setup.

I'll mark this issue as closed then. Feel free to reopen if required.