Solved

Mandrake Urpmi database corrupt?

Posted on 2003-12-01
3
845 Views
Last Modified: 2013-12-15
Hi.
I'm having some problems with my Mandrake box. I've installed mandake 9.1 and has had it up and running for quite some time. However a few days ago I decided that I needed some files from the “contrib” archive. I thought that getting it from ftp was a good idea so I added that to the urpmi database (urpmi.addmedia contribs ftp://some.ftp.server/pub/bla/bla/9.2/ with hdlist.cz), updated it and did an install from there. The install failed since I added the 9.2 directory on my 9.1 box. I removed that entry and added a correct one. Another update and another install didn't work since urpmi now found the file (although the wrong version) in /var/cache/urpmi.
I then did what I now believe was stupid. I deleted the file from /var/cache/urpm, hoping that urpmi would now download and install the correct version. It doesn't. Instead it tells me to update my database, which I've done with urpmi.update -av but the problem persists.

Can someone help me with this. I would appreciate it.

Thinking that urpmi and rpm shared the same database I also tried rpm –rebuilddb and rpm –initdb but to no avail.
I also tried to remove all sources from urpmi, hoping to get it to “forget” what packages it had in the cache and I tried urpmi.update –clean on all sources.

TIA

.haeger

These are the error messages that I get:

-------------------------------------------------------------
[root@pingu root]# urpmi --auto-select
To satisfy dependencies, the following packages are going to be installed (13 MB):
gnupg-1.2.2-1.2.91mdk.i586
linuxconf-1.29r3-5mdk.i586
linuxconf-lib-1.29r3-5mdk.i586
Is this OK? (Y/n) y
    ftp://ftp.chello.se/pub/Linux/Mandrake/9.1/contrib/i586/linuxconf-lib-1.29r3-5mdk.i586.rpm
    ftp://ftp.chello.se/pub/Linux/Mandrake/updates/9.1/RPMS/gnupg-1.2.2-1.2.91mdk.i586.rpm
Installation failed, some files are missing:
    /var/cache/urpmi/rpms/linuxconf-lib-1.29r3-5mdk.i586.rpm
    /var/cache/urpmi/rpms/linuxconf-1.29r3-5mdk.i586.rpm
You may want to update your urpmi database
0
Comment
Question by:haeger
  • 2
3 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
Comment Utility
You have to run urpmi.update to update the database.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
Comment Utility
Sorry, I just noticed that you tried this already.
0
 
LVL 5

Accepted Solution

by:
willy134 earned 250 total points
Comment Utility
http://plf.zarb.org/~nanardon/

From that website you can reconfigure all of your urpmi databases.  Select the servers you want and then click proceed to step 3

Then follow those instructions.

Good luck,
Willy
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now