|
From: Leendert M. <lee...@ho...> - 2004-03-11 23:11:59
|
Op Thursday 11 March 2004 20:48 schreef Richard Bos: > Op donderdag 11 maart 2004 12:26, schreef Leendert Meyer: <snip> > > # error: cannot get exclusive lock on /var/lib/rpm/Packages > > # error: cannot open Packages database in /var/lib/rpm > > Ah this one again :( > > > > - Even SuSEconfig is run (!) > > > > And IMO that should not happen if *no* package was installed. > > It is fixed in the development version. I hope that it will be released > soon. > > > > - Exec dialog closes > > > - Error dialog opens: "Could not open RPM database" > > > - km_nvidia is still installed > > > > > > ws-02:/home/leen # cd /var/lib/rpm > > > ws-02:/var/lib/rpm # /usr/lib/rpm/rpmdb_stat -CA > > > db_stat: DB_ENV->open: No such file or directory > > > > Where is the cause? In my system or in synaptic? Tried to install knews: no hickups. Tried to install km_nvidia (for testing): hickup: error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm apt executing: /sbin/SuSEconfig And what does apt do after 'apt-get install km_nvidia': <snip> After unpacking 221kB of additional disk space will be used. error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm apt executing: /sbin/SuSEconfig <snip> Aha. > Around apt libs. What would be interesting to know: do you see the same > thing when using apt from the command line. > > After that you can add the argument -o RPM::PM=external to the apt or > synaptic command and it will most likely install the packages, like; > apt -o RPM::PM=external install <pkg> Ok: apt -o RPM::PM=external install km_nvidia <snip> Signature checking is not supported when RPM::PM = external Executing RPM (-Uvh)... Preparing... ########################################### [100%] 1:km_nvidia ########################################### [100%] Done. apt executing: /sbin/SuSEconfig <snip> IOW: flawless! As did 'synaptic -o RPM::PM=external' (removed km_nvidia). Indeed, the install/remove operations were well handled. > -o RPM::PM=external: causes apt to use /bin/rpm instead of the rpm library > functions. The thing to be investigated is if apt is to blame or rpm. The > latter is heavily patch by suse. FWIW: I'm running - SuSE 9.0, updated - KDE 3.2.1 - kernel-default-2.6.4-0 - lua-5.0-rb3 - synaptic-0.47-rb3 - apt-0.5.15cnc5-rb5 - apt-libs-0.5.15cnc5-rb5 (Nice to know that Gustavo is watching over our shoulders ;) Cheers, Leen |