rpm 4.16 landed -> errors!

Jan Rękorajski baggins at pld-linux.org
Tue Mar 16 18:38:42 CET 2021


On Tue, 16 Mar 2021, Elan Ruusamäe wrote:

> 
> On 16.03.2021 16:45, Elan Ruusamäe wrote:
> >
> > the automatic upgrade is failing:
> >
> > - https://gitlab.com/pld-linux/pld/-/jobs/1094531330#L214
> >
> oh, and user is left without rpmdb:
> 
> 
> [@46a17bd0ade9 /]# rpm -q rpm poldek
> warning: Found bdb Packages database while attempting sqlite backend: 
> using bdb backend.
> warning: Generating 6 missing index(es), please wait...
> package rpm is not installed
> package poldek is not installed
> 
> [@46a17bd0ade9 /]# rpm -q rpm poldek
> warning: Found bdb Packages database while attempting sqlite backend: 
> using bdb backend.
> package rpm is not installed
> package poldek is not installed
> [@46a17bd0ade9 /]#

First, regarding lost database.
You do have a backup of the database from before the update:

Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-4.16.1.2-6

There is also the new database, that rpm was unable to move:

error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.42 to recover

Is /var/lib/rpm a mountpoint? That would be the explanation that comes
to mind. There must be something that prevented rpm from renaming temporary
directory in /var/lib to rpm.

I've been (live) testing upgrade path and I assumed it does work.
Never encountered problems after squashing rpm5 oddities.

I've been also asking over and over for testing and no one came with any
issues like this.

-- 
Jan Rękorajski                    | PLD/Linux
SysAdm | baggins<at>pld-linux.org | http://www.pld-linux.org/


More information about the pld-devel-en mailing list