Bug 2715 - urpmi cannot open database
Summary: urpmi cannot open database
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: D Morgan
QA Contact:
URL:
Whiteboard: ceck
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2011-09-12 14:58 CEST by Aurélien Croc
Modified: 2011-10-03 16:45 CEST (History)
5 users (show)

See Also:
Source RPM: rpm-4.9.1.1-3.mga2
CVE:
Status comment:


Attachments

Description Aurélien Croc 2011-09-12 14:58:28 CEST
Description of problem:

When urpmi try to add or update packages it failed with this error:

error: dbiOpen: dbapi 1 not available
error: cannot open Packages database in /var/lib/rpm
unable to open rpmdb


Version-Release number of selected component (if applicable):

rpm-4.9.1.1-3.mga2


How reproducible:

Everytime urpmi is used.


Steps to Reproduce:
1. update rpm to this version
2. urpmi --auto-select
Aurélien Croc 2011-09-12 14:58:44 CEST

CC: (none) => titou

Comment 1 D Morgan 2011-09-12 15:04:43 CEST
yes this is normal you need  next perl-URPM ( try to wget and rpm -Uvh  from from here : ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/updates_testing/ )

CC: (none) => dmorganec

Comment 2 Aurélien Croc 2011-09-12 15:52:36 CEST
As far as I can see during the last update I did this morning, perl-URPM has been updated to the version: perl-URPM-3.38.2-4.mga2.

This version is newer than the one available on the repository accessible through your link. However when I downgrade this package urpmi becomes usable!

I guess that some dependencies are broken or the latest perl-URPM package is bad.
Comment 3 corneliu dabija 2011-09-18 05:02:34 CEST
I have the same issue. I tried to fix it following D. Morgan's advice.
So I downloaded and installed perl-URPM. It wanted rpm-lib64rpmbuild2-4.9.1.1-3.mga2.x86_64.rpm as a dependency which I downloaded from the same place and installed before installing perl-URPM.
Then when I executed "urpmi --auto-select" it said that there is one update available and the package to be updated was perl-URPM. So I updated it and then urpmi restarted and again it was unable to open rpmdb. 
So I can't update anything because the first thing it wants to update is perl-URPM after which urpmi doesn't work anymore.

CC: (none) => corneliu.dabija

Matteo Pasotti 2011-09-18 19:22:46 CEST

CC: (none) => pasotti.matteo

Comment 4 Samuel Verschelde 2011-10-01 03:23:30 CEST
Is that issue solved now?

CC: (none) => stormi

Manuel Hiebel 2011-10-02 16:02:08 CEST

Keywords: (none) => NEEDINFO
Whiteboard: (none) => ceck

Comment 5 Aurélien Croc 2011-10-03 15:55:41 CEST
The problem is solved for me. Thank you
Comment 6 Samuel Verschelde 2011-10-03 15:57:48 CEST
closing according to comment #5

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 Matteo Pasotti 2011-10-03 16:12:45 CEST
I'm still experiencing this problem.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 8 Samuel Verschelde 2011-10-03 16:16:21 CEST
(In reply to comment #7)
> I'm still experiencing this problem.

Assignee: bugsquad => dmorganec

Comment 9 D Morgan 2011-10-03 16:25:14 CEST
you need the perl-URPM from testing that's all.
Comment 10 Matteo Pasotti 2011-10-03 16:45:27 CEST
The problem is solved for me, too. 
Thank you

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.