Pacstrap Unregistering Databases
After creating and mounting the root and boot partitions, using
pacstrap -U /mnt base ...
returns
error: database file for 'core' does not exist (use pacman -Sy to download)
What I don't understand is the .db files are present in
/var/lib/pacman/sync
and using
pacman -Sy --debug
returns an error at the end stating
unregistering "core"
along with community and extra.
I've already rebooted, reinitialized and repopulated the keys, checked the mirrors, removed the database files and pacman -Sy'd, followed every forum post advice, and nothings worked.
I suspect it might be due to a faulty livecd (even though I've used this exact drive before with success) but I don't have access to a computer with admin rights to create a new bootable USB so I'm hoping I can just fix this instead.
Anyone encounter anything similar?
Posted Oct 6, 2022, 7:59 PM UTC · edited
Longshot but Curious if using
pacstrap -i /mnt base ...gives the same error.Amazing. This solved it.
I ran
pacstrap -Uibefore with no luck but only passing the i flag did it!Glad it worked! Though it does seem like a bug.
I had to man pacstrap to know what -U meant. I always use just
pacstrap /mntin scripts, maybe naively.Just recently (within the last few months?) the installation guide changed from using the U flag to using the K flag - and I think K was also recently added as the older version of pacstrap on that livecd doesn't have it. Maybe part of the problem was a slightly outdated ISO.... weird.