I did as discussed in this thread and ran fsck successfully from a live USB - but i still get lots of error messages in the damaged installation, which appear to be file system errors.
Is it possible to run fsck at boot soon after luks is opened but before the operating system loads?
Some error message examples:
ldconfig: File /usr/lib/libQt5DesignerComponents.so is empty, not checked.
ldconfig: /usr/lib/libnetsnmptrapd.so.40.1.0 is not an ELF file - it has the w
rong magic bytes at the start.
ldconfig: /usr/lib/libnetsnmpmibs.so is not an ELF file - it has the wrong mag
ic bytes at the start.
ldconfig: File /usr/lib/libQt5Designer.so.5 is empty, not checked.
ldconfig: File /usr/lib/libQt5Help.so.5 is empty, not checked.
ldconfig: File /usr/lib/libpyside6.abi3.so is empty, not checked.
ldconfig: File /usr/lib/libstd-3832a15f20d69b64.so is empty, not checked.
ldconfig: File /usr/lib/libQt5Designer.so.5.15 is empty, not checked.
ldconfig: File /usr/lib/libpyside6.abi3.so.6.5.2 is empty, not checked.
ldconfig: /usr/lib/libm17n-core.so is not an ELF file - it has the wrong magic
bytes at the start.
ldconfig: /usr/lib/libnetsnmptrapd.so.40 is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: File /usr/lib/libQt5DesignerComponents.so.5 is empty, not checked.
ldconfig: File /usr/lib/libpyside6qml.abi3.so.6.5.2 is empty, not checked.
ldconfig: /usr/lib/libnetsnmphelpers.so.40 is not an ELF file - it has the wro
ng magic bytes at the start.
ldconfig: File /usr/lib/libshiboken6.abi3.so is empty, not checked.
ldconfig: /usr/lib/libnetsnmpagent.so.40.1.0 is not an ELF file - it has the w
rong magic bytes at the start.
ldconfig: /usr/lib/libnetsnmp.so is not an ELF file - it has the wrong magic b
ytes at the start.
ldconfig: /usr/lib/libm17n-flt.so.0.4.2 is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: /usr/lib/libm17n.so.0.4.2 is not an ELF file - it has the wrong magi
c bytes at the start.
ldconfig: File /usr/lib/libshiboken6.abi3.so.6.5.2 is empty, not checked.
ldconfig: File /usr/lib/libpyside6qml.abi3.so.6.5 is empty, not checked.
ldconfig: File /usr/lib/libpyside6.abi3.so.6.5 is empty, not checked.
ldconfig: File /usr/lib/libpyside6qml.abi3.so is empty, not checked.
ldconfig: /usr/lib/libm17n-gui.so.0 is not an ELF file - it has the wrong magi
c bytes at the start.
ldconfig: /usr/lib/libnetsnmp.so.40.1.0 is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: /usr/lib/libnetsnmphelpers.so is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: File /usr/lib/libtest-4267710c4664eb03.so is empty, not checked.
ldconfig: File /usr/lib/libqpdf.so.29 is empty, not checked.
ldconfig: /usr/lib/libsnmp.so is not an ELF file - it has the wrong magic byte
s at the start.
ldconfig: File /usr/lib/libOkular5Core.so.11.0.0 is empty, not checked.
ldconfig: /usr/lib/libsnmp.so.40 is not an ELF file - it has the wrong magic b
ytes at the start.
ldconfig: File /usr/lib/libQt5Help.so.5.15.10 is empty, not checked.
ldconfig: /usr/lib/libm17n-flt.so is not an ELF file - it has the wrong magic
bytes at the start.
ldconfig: /usr/lib/libnetsnmpmibs.so.40.1.0 is not an ELF file - it has the wr
ong magic bytes at the start.
ldconfig: File /usr/lib/libQt5Designer.so is empty, not checked.
ldconfig: /usr/lib/libsnmp.so.40.1.0 is not an ELF file - it has the wrong mag
ic bytes at the start.
ldconfig: /usr/lib/libnetsnmpmibs.so.40 is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: /usr/lib/libnetsnmpagent.so.40 is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: /usr/lib/libm17n-gui.so.0.4.2 is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: /usr/lib/libnetsnmphelpers.so.40.1.0 is not an ELF file - it has the
wrong magic bytes at the start.
ldconfig: File /usr/lib/libre2.so.11.0.0 is empty, not checked.
ldconfig: /usr/lib/libm17n-core.so.0 is not an ELF file - it has the wrong mag
ic bytes at the start.
ldconfig: /usr/lib/libm17n-gui.so is not an ELF file - it has the wrong magic
bytes at the start.
ldconfig: File /usr/lib/libQt5DesignerComponents.so.5.15.10 is empty, not chec
ked.
ldconfig: File /usr/lib/libre2.so.11 is empty, not checked.
ldconfig: /usr/lib/libnetsnmptrapd.so is not an ELF file - it has the wrong ma
gic bytes at the start.
ldconfig: File /usr/lib/libQt5Help.so.5.15 is empty, not checked.
ldconfig: File /usr/lib/libqpdf.so.29.6.0 is empty, not checked.
ldconfig: File /usr/lib/libshiboken6.abi3.so.6.5 is empty, not checked.
ldconfig: File /usr/lib/libQt5Help.so is empty, not checked.
ldconfig: /usr/lib/libm17n.so is not an ELF file - it has the wrong magic byte
s at the start.
ldconfig: /usr/lib/libnetsnmpagent.so is not an ELF file - it has the wrong ma
gic bytes at the start.
ldconfig: File /usr/lib/libqpdf.so is empty, not checked.
ldconfig: File /usr/lib/libQt5DesignerComponents.so.5.15 is empty, not checked
.
ldconfig: File /usr/lib/libre2.so is empty, not checked.
ldconfig: File /usr/lib/libostree-1.so.1.0.0.old is empty, not checked.
ldconfig: File /usr/lib/libOkular5Core.so.11 is empty, not checked.
ldconfig: File /usr/lib/libOkular5Core.so is empty, not checked.
ldconfig: File /usr/lib/librustc_driver-392e30d67b5926f8.so is empty, not chec
ked.
ldconfig: /usr/lib/libm17n-core.so.0.4.2 is not an ELF file - it has the wrong
magic bytes at the start.
ldconfig: /usr/lib/libm17n-flt.so.0 is not an ELF file - it has the wrong magi
c bytes at the start.
ldconfig: File /usr/lib/libQt5Designer.so.5.15.10 is empty, not checked.
ldconfig: /usr/lib/libm17n.so.0 is not an ELF file - it has the wrong magic by
tes at the start.