You are not logged in.

#1 2023-04-12 05:04:20

perkunos
Member
Registered: 2022-02-11
Posts: 3

Accidentally deleted my aurutils repo "~/.aurrepo/aur.db"

And now can't use aur utils or pacman.
I get the following error on pacman -Syu

aur.db failed to download
error: failed retrieving file 'aur.db' from disk : Couldn't open file /home/user/.aurrepo/aur.db
error: failed to synchronize all databases (unexpected error)

By doing a touch aur.db I could use pacman again but now aurutils aur sync -u does nothing.

Offline

#2 2023-04-12 20:00:18

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Accidentally deleted my aurutils repo "~/.aurrepo/aur.db"

Restore your aur.db aund your packages from your backup. If you do not have one, learn from it and rebuild your missing packages.

Offline

#3 2023-04-12 23:08:14

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,414
Website

Re: Accidentally deleted my aurutils repo "~/.aurrepo/aur.db"

In order of ascending complication...

0. Restore your backup as mentioned above
1. Check pacman's copy of aur.db

cp /var/lib/pacman/sync/aur.db /home/user/.aurrepo/aur.db

2. Pass all packages that are now foreign to aur-build, it will repo-add existing packages where appropriate

xargs -a <(pacman -Qqm) aur sync

3. Pass the latest versions of all packages in the repository to repo-add

For the last option you can use pacsort with repo-add.

Last edited by Alad (2023-04-12 23:08:23)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB