Bug #651
librechroot request for pacman-db-upgrade
Status:
fixed
Priority:
bug
Category:
-
Assignee:
-
% Done:
0%
Description
sudo librechroot update
error: failed to initialize alpm library
(database is incorrect version: /var/lib/pacman/)
History
Updated by aurelien about 9 years ago
during libremakepkg
| > Checking runtime dependencies...
| error: failed to initialize alpm library
| (database is incorrect version: /var/lib/pacman/)
| error: try running pacman-db-upgrade
| > ERROR: 'pacman' returned a fatal error (255):
==> Copying log and package files out of the chroot...
Updated by lukeshu about 9 years ago
Well, did you try running librechroot run pacman-db-upgrade
?
Updated by aurelien about 9 years ago
- Status changed from open to fixed
Alfplayer help me to correct the situation like this :
$ sudo rm -rf /var/lib/archbuild/*
$ sudo pacman-db-upgrade
$ sudo librechroot update
Updated by alfplayer about 9 years ago
Running pacman-db-upgrade on the host upgrades the host system DB only, so it's not necessary for libretools. This is not a libretools issue strictly. After deleting /var/lib/archbuild/* librechroot installs a system with an upgraded pacman DB, and other chroots are then copied from that chroot, so DBs on copies have the new DB version.