• [supprimé]

[root@localhost rpm]# rpm -ivh /mnt/sata/archive/archive/Linux/logiciels/AdobeReader_enu-7.0.0-1.i386.rpm
error: cannot open Packages database in /var/lib/rpm
[root@localhost rpm]#
D'où vient le problème et comment y remédier ? :-o
  • [supprimé]

Voici ce que j'obtien lorsque je fais un ls du dossier /var/lib/rpm/ :
[root@localhost rpm]# ls
Basenames __db.003 Installtid Provideversion Sha1header
Conflictname Dirnames Name Pubkeys Sigmd5
__db.001 Filemd5s Packages Requirename Triggername
__db.002 Group Providename Requireversion
  • [supprimé]

j'ai essayé çà également :
[root@localhost archives]# rpm --rebuilddb
error: unrecognized db option: "db3" ignored.
Salut,

Essaye un

rm -f /var/lib/rpm/__db.*

avant le rebuild

A+
  • [supprimé]

[root@localhost rpm]# rm -f /var/lib/rpm/__db.*
[root@localhost rpm]# ls
Basenames Group Providename Requireversion
Conflictname Installtid Provideversion Sha1header
Dirnames Name Pubkeys Sigmd5
Filemd5s Packages Requirename Triggername
[root@localhost rpm]# rpm --rebuilddb
error: unrecognized db option: "db3" ignored.
Marche pas !
🙁
  • [supprimé]

J'ai enfin trouvé la solution :

If you get an error like the one below

"error: unrecognized db option: "db3" ignored."

You will need to reinstall rpm as it looks like rpm is damaged.
The rpm package only comes in .rpm format so will need to use the
rpm2cpio command to install. rpm2cpio can be copied from another machine
if you dont have it.
mkdir -p /var/tmp/xxx
cd /var/tmp/xxx
rpm2cpio rpm-4.0.3-1.03.6x.*.rpm | cpio -dim
chmod -R 755 *
tar cf - ./usr ./etc | (cd /; tar xvf -)
Then do "rpm --rebuilddb" to fix your database.

:-D