So I went to that directory and opened the file and here is where I think the error is;
- Code: Select all
sub open_rpm_db {
my ($o_force) = @_;
my $host;
log::explanations("opening the RPM database");
if ($::rpmdrake_options{parallel} && ((undef, $host) = @{$::rpmdrake_options{parallel}})) {
state $done;
my $dblocation = "/var/cache/urpmi/distantdb/$host";
if (!$done || $o_force) {
print "syncing db from $host to $dblocation...";
mkdir_p "$dblocation/var/lib/rpm";
system "rsync -Sauz -e ssh $host:/var/lib/rpm/ $dblocation/var/lib/rpm";
$? == 0 or die "Couldn't sync db from $host to $dblocation";
$done = 1;
print "done.\n";
}
URPM::DB::open($dblocation) or die "Couldn't open RPM DB";
} else {
my $db;
if ($::env) {
#- URPM has same methods as URPM::DB and empty URPM will be seen as empty URPM::DB.
$db = new URPM;
$db->parse_synthesis("$::env/rpmdb.cz");
} else {
$db = URPM::DB::open($::rpmdrake_options{'rpm-root'}[0]);
}
$db or die "Couldn't open RPM DB (" . ($::env ? "$::env/rpmdb.cz" : $::rpmdrake_options{'rpm-roo
t'}[0]) . ")";
}
}
I have searched around and it looks like I may need to re-install or update the rpm.db but I have not found anything that is specific to Mageia yet so I thought I would look for help from the community. I also search this forum and Mageia support before posting this and found nothing related.
I would appreciate any help or advice. BTW, this is a clean install from an iso downloaded yesterday from Mageia directly. Thanks in advance!