poldek --root niszczy lokalną baze rpm

Mateusz Korniak mateusz-lists w ant.gliwice.pl
Pią, 7 Lis 2014, 09:29:03 CET


Mam sprawną bazę w hoscie i robie na kontenerze prostą instalacje [1].
Wychodzę przez CTRL+D i jest po bazie lokalnej rpma [2].
O co chodzi?


[1]
[matkor w pld ~]$  export LXCNAME=semserver_pl 
[matkor w pld ~]$  poldek --root /var/lib/lxc/$LXCNAME/rootfs/
Loading [pndir]th...
Loading [pndir]th...
22997 packages read
Loading [rpmdb]/var/lib/rpm...
84 packages loaded

Welcome to the poldek shell mode. Type "help" for help with commands.

poldek:/all-avail> install login
Processing dependencies...
There are 1 package to install:
I login-2.25.1-1.x86_64
This operation will use 62.2KB of disk space.
Need to get 46.1KB of archives (46.1KB to download).

Retrieving th::login-2.25.1-1.x86_64.rpm...
.............................. 100.0% [46.1K (46.1K/s)]                  
Executing sudo /bin/rpm --upgrade -vh --root /var/lib/lxc/semserver_pl/rootfs 
--define _check_dirname_deps 1...
Preparing...                ########################################### [100%]
   1:login                  ########################################### [100%]
poldek:/all-avail> 
Writing packages.rpmdbcache.var.lib.lxc.semserver_pl.rootfs.var.lib.rpm.gz...

[2]
[matkor w pld ~]$  poldek --root /var/lib/lxc/$LXCNAME/rootfs/
Loading [pndir]th...
Loading [pndir]th...
22997 packages read
Loading [rpmdbcache]/var/lib/rpm...
error: rpmdb: header #74 cannot be loaded -- skipping.
error: rpmdb: header #7 cannot be loaded -- skipping.
error: rpmdb: header #21 cannot be loaded -- skipping.
error: rpmdb: header #23 cannot be loaded -- skipping.
error: rpmdb: header #49 cannot be loaded -- skipping.
error: rpmdb: header #13 cannot be loaded -- skipping.
Segmentation fault
[matkor w pld ~]$  poldek
Loading [pndir]th...
Loading [pndir]th...
22997 packages read
Loading [rpmdb]/var/lib/rpm...
error: rpmdb: header #1 cannot be loaded -- skipping.
error: rpmdb: header #2 cannot be loaded -- skipping.
error: rpmdb: header #3 cannot be loaded -- skipping.
error: rpmdb: header #4 cannot be loaded -- skipping.
error: rpmdb: header #5 cannot be loaded -- skipping.
error: rpmdb: header #7 cannot be loaded -- skipping.
error: (null): read name/version/release failed
error: rpmdb: header #9 cannot be loaded -- skipping.
error: rpmdb: header #10 cannot be loaded -- skipping.
poldek: header.c:1079: headerLoad: Assertion `(rpmint32_t)rdl >= 0' failed.
Aborted

-- 
Mateusz Korniak
"(...) mam brata - poważny, domator, liczykrupa, hipokryta, pobożniś,
 	krótko mówiąc - podpora społeczeństwa."
				Nikos Kazantzakis - "Grek Zorba"



Więcej informacji o liście pld-users-pl