I bought a raspberry pi 5 around 6 months ago and install OMV on that device on a SanDisk 256GB SD card
until few weeks ago everything worked perfectly and no issues. I was running multiple containers, having a external HDD drives attached, remote access with cloudflare and more.
but suddenly few weeks ago my raspberry pi started to corrupt itself.
trying to run stuff resulted in: bash: ./update.sh: cannot execute binary file: Exec format error
and I couldn't get updates or command working (some OMV-XXX commands worked but nothing that helped)
I decided to do a fresh reinstall of OMV since all my data/docker stuff was on external HDD and basically the SD card only contained the OS
after the fresh install the raspberry pi worked fine for about a week, then it started corrupting itself again with the same error
I tried updating using sudo apt-get update
but I got the following error (not that specific repo but similar)
Traceback (most recent call last):
File "/usr/sbin/omv-mkaptidx", line 236, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/sbin/omv-mkaptidx", line 128, in main
cache = apt.cache.Cache()
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/apt/cache.py", line 170, in __init__
self.open(progress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 232, in open
self._cache = apt_pkg.Cache(progress)
^^^^^^^^^^^^^^^^^^^^^^^
apt_pkg.Error: E:Unable to parse package file /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_i18n_Translation-en (1), W:You may want to run apt-get update to correct these problems, E:The package cache file is corrupted
Reading package lists... Error!
E: Unable to parse package file /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_i18n_Translation-en (1)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted
Display More
then I tried running sudo apt-get upgrade
and got the following error:
apt-listchanges: Mailing root: apt-listchanges: changelogs for raspberrypi
debconf: Perl may be unconfigured (strict.pm did not return a true value at (eval 1) line 2.
BEGIN failed--compilation aborted at (eval 1) line 2.
) -- aborting
dpkg: unrecoverable fatal error, aborting:
files list file for package 'lsb-release' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
I tried using chatGPT for some help, since I couldn't find any issues similar to mine on the forums here or in the web
but nothing he suggested worked.
at the end I did a 2nd fresh install few days ago again.
I decided to keep the raspberry pi to bare minimum or containers/installed software
to see if the issue persists
and now I got back to the same errors. can't run ELFs, can't update/upgrade
I can't even access the WEB UI dashboard. I get to the login page the it just loading endlessly without login to my account
what steps I can take to fix this issue and make sure it doesn't appear in the future again?
is there a chance that my SD card is corrupted? or is it an issue with the raspberry pi itself?
Edit: I did setup both timeshift and OMV-backup
but running sudo omv-backup does literally nothing (not even with --help)
and timeshift only shows a backup from yesterday only which idk if it uncorrupted or not