Project

General

Profile

Bug #651

librechroot request for pacman-db-upgrade

aurelien - about 9 years ago - . Updated about 9 years ago.

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

#1

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...
#2

Updated by lukeshu about 9 years ago

Well, did you try running librechroot run pacman-db-upgrade?

#3

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

#4

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.

Also available in: Atom PDF