Skip to content

Instantly share code, notes, and snippets.

@metzenseifner
Last active June 6, 2024 19:13
Show Gist options
  • Save metzenseifner/cb61ecfd614a93c5927ba3cd62d68127 to your computer and use it in GitHub Desktop.
Save metzenseifner/cb61ecfd614a93c5927ba3cd62d68127 to your computer and use it in GitHub Desktop.
Fix ldconfig "file is empty, not checked" error
# --overwrite '*' whereby * means every file path; reinstall everything otherwise you might get "exists in filesystem" errors
pacman -Syyu $(pacman -Qnq) --overwrite '*'
@tskxz
Copy link

tskxz commented Aug 13, 2023

Error Invalid option --force

@AurevoirXavier
Copy link

Use --overwrite '*' instead with latest pacman.

@mureithimaina
Copy link

Just to make it easy to copy

pacman -Syyu $(pacman -Qnq) --overwrite '*'

@anaxonda
Copy link

anaxonda commented Apr 9, 2024

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 '*'

@Bugaddr
Copy link

Bugaddr commented Jun 6, 2024

Thanks that helped 👍

@metzenseifner
Copy link
Author

metzenseifner commented Jun 6, 2024

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