Last active
February 2, 2025 12:49
-
-
Save metzenseifner/cb61ecfd614a93c5927ba3cd62d68127 to your computer and use it in GitHub Desktop.
Fix ldconfig "file is empty, not checked" error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --overwrite '*' whereby * means every file path; reinstall everything otherwise you might get "exists in filesystem" errors | |
pacman -Syyu $(pacman -Qnq) --overwrite '*' |
Use --overwrite '*'
instead with latest pacman.
Just to make it easy to copy
pacman -Syyu $(pacman -Qnq) --overwrite '*'
In case pacman not working in chroot, its also possible to use the --sysroot option with the above command, from live ISO. This, plus disabing signature checking allowed my arch install to come back from the dead.
IE:
pacman --sysroot /mnt -Syyu $(pacman --sysroot /mnt -Qnq) --overwrite '*'
Thanks that helped 👍
Sorry it took so long. I wrote this back when —force
was still an option (a long time ago). I just noticed the comments 😃. Thanks everybody.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error Invalid option --force