LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-25-2004, 01:36 AM   #1
pramathesh_a
LQ Newbie
 
Registered: Oct 2004
Location: Madhya Pradesh, India
Distribution: Mandrake Linux 9.2
Posts: 4

Rep: Reputation: 0
updating Mandrake 9.2 Pro-Suite using gurpmi


Our organisation purchased an official boxed set of Mandrake 9.2 Pro Suite. I would like to get and apply updates to the distribution. In earlier Mandrake distributions, I have been able to download the updated RPM packages from Mandrake mirror sites to my hard disk, burn a CD, configure an update source in gurpmi and apply the updates to 2-3 machines using Mdk. However, I am no longer able to configure this local update source in gurpmi. gurpmi complains of "cannot parse hdlist for update source" or "the list of updates is void".

However, if I do a "live update" via gurpmi (i.e. update directly from the mirro site), this problem does not arise.

How do I get around this problem? It is important because all machines are not connected to the internet so burning the updated packages to a disk or cdrom is important for me

Thanks in advance
Pramathesh
 
Old 10-25-2004, 04:45 PM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Your downloade rpm's probably include a corrupt hdlist.cz list or one which is grossly out of date as often happens.

You must get RPM NOT to use it and rebuild a new one instead.

You can remove any and all *.cz files from your rpm directories then

urpmi.removemedia NAMEOFRPMARCHIVE

to also delete the existing cached list.

Now once it is done...

urpmi.addmedia the rpm's which you have downloaded (on newer versions of Mandrake you can also utilize the software media manager for this...)

This will cause urpmi (which gurpmi uses) to open and read every single rpm file for content, dependancies and file lists. This can take many minutes, but will cause a new local hdlist.cz to be built which will eliminate the problem you are having.
 
Old 10-26-2004, 05:05 AM   #3
pramathesh_a
LQ Newbie
 
Registered: Oct 2004
Location: Madhya Pradesh, India
Distribution: Mandrake Linux 9.2
Posts: 4

Original Poster
Rep: Reputation: 0
Hi and thanks for your detailed response.
What I don't understand is that the hdlist.cz is downloaded from the same mirror as the RPMs themselves. Then why does the error arise?
Also "live update" through the Mandrake Control Centre downloads both the RPMs and the hdlist and works!. So why is there a difference between updating from a local harddisk and updating from a remote FTP site?
I will try what you suggest and get back.
Should I also remove the hdlist files for the FTP update source from /var/lib/urpmi?
Regards
 
Old 10-26-2004, 06:35 AM   #4
pramathesh_a
LQ Newbie
 
Registered: Oct 2004
Location: Madhya Pradesh, India
Distribution: Mandrake Linux 9.2
Posts: 4

Original Poster
Rep: Reputation: 0
Further to my earlier post, I wish to report that I tried the method suggested by opjose. I removed all .*cz files from the RPM directories and the ran urpmi.removemedia and urpmi.addmedia in sequence. It DID NOT WORK.
The output of the urpmi.addmedia command is given below:

***********************************OUTPUT***********
[root@xxx yyy]# urpmi.addmedia my_updates ftp://anonymous:xxxx_a@rediffmail.com@10.54.7.5/pub/mdk92updates/RPMS
added medium my_updates
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Install Server CD1 (cdrom1).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Install Server CD2 (cdrom2).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.International CD (cdrom3).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.International CD (cdrom4).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Commercial Apps CD (cdrom5).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Commercial Apps CD (cdrom6).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Sources CD1 (cdrom7).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Contrib Java CD (cdrom8).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Contrib CD (cdrom9).cz]
retrieving source hdlist (or synthesis) of "my_updates"...
ftp://anonymous:xxxx@rediffmail.com@...esis.hdlist.cz
ftp://anonymous:xxxx@rediffmail.com@...esis.hdlist.cz
ftp://anonymous:xxxx@rediffmail.com@...esis.hdlist.cz
ftp://anonymous:xxxx@rediffmail.com@...sis.hdlist1.cz
ftp://anonymous:xxxx@rediffmail.com@...sis.hdlist2.cz
ftp://anonymous:xxxx@rediffmail.com@...sis.hdlist1.cz
ftp://anonymous:xxxx@rediffmail.com@...sis.hdlist2.cz
ftp://anonymous:xxxx@rediffmail.com@...sis.hdlist1.cz
ftp://anonymous:xxxx@rediffmail.com@...sis.hdlist2.cz
ftp://anonymous:xxxx@rediffmail.com@...base/hdlist.cz
ftp://anonymous:xxxx@rediffmail.com@...ates/hdlist.cz
ftp://anonymous:xxxx@rediffmail.com@...RPMS/hdlist.cz
ftp://anonymous:xxxx@rediffmail.com@...ase/hdlist1.cz
ftp://anonymous:xxxx@rediffmail.com@...ase/hdlist2.cz
ftp://anonymous:xxxx@rediffmail.com@...tes/hdlist1.cz
ftp://anonymous:xxxx@rediffmail.com@...tes/hdlist2.cz
ftp://anonymous:xxxx@rediffmail.com@...PMS/hdlist1.cz
ftp://anonymous:xxxx@rediffmail.com@...PMS/hdlist2.cz
retrieve of source hdlist (or synthesis) failed
no hdlist file found for medium "my_updates"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.my_updates.cz]
problem reading synthesis file of medium "my_updates"
unable to update medium "my_updates"
*************end output**************************
So where do I go from here?
Will be grateful for tips
Regards and thanks in advance

Last edited by pramathesh_a; 10-26-2004 at 06:37 AM.
 
Old 10-26-2004, 02:09 PM   #5
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
You must remove the cz files and NOT permit them to be redownloaded from the original repositories or you are right back to the same problem as before.

You are merely re-adding the same thing back again.

Of COURSE you are going to have the same problem as you haven't really done anything to correct it.


You asked why does this happen?

Actually creating the .cz files involves extra steps which often the repository maintainers either overlook or do not get to.

Also many times there are two copies of the .cz files on the repositories.

One with the RPM's themselves and another in the ../base directory both grossly out of sync with the actual files.

Each time your upmi.update contacts the repository it will attempt to redownload the same files which are causing you difficulty.

You must either tell it NOT to explicity use the remote .cz files (which I do via the GUI) or download ALL of the files locally, delete the .cz files and THEN rebuild them by adding the local source WITHOUT a corrsponding base.


AND YES IT WORKS... so much so that I never both with the ones on the repository any more as they were too problematic.

I just use an FTP client to grab any new or changed files (file dates are GREAT for this) and then re-create (or re-add)/update the local source.


Mandrake's Live update is NOT the same as the repositories. Mandrake builds the .cz lists while it's up to the repository maintainers to manage the others.

Hence the difference.
 
Old 10-27-2004, 12:55 AM   #6
pramathesh_a
LQ Newbie
 
Registered: Oct 2004
Location: Madhya Pradesh, India
Distribution: Mandrake Linux 9.2
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by opjose
You must remove the cz files and NOT permit them to be redownloaded from the original repositories or you are right back to the same problem as before.

You are merely re-adding the same thing back again.

Of COURSE you are going to have the same problem as you haven't really done anything to .



You must either tell it NOT to explicity use the remote .cz files (which I do via the GUI) or download ALL of the files locally, delete the .cz files and THEN rebuild them by adding the local source WITHOUT a corrsponding base.


AND YES IT WORKS... so much so that I never both with the ones on the repository any more as they were too problematic.

Thanks for your reply
What you said above is what I have done. The output I enclosed with my post is the output of urpmi.addmedia and the repository source was through ftp on my local machine. The .cz files did NOT get built.

What have I got wrong?
Pramathesh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating from 9.2-9.3 pro. Morbid SUSE / openSUSE 2 08-01-2005 04:53 PM
Linux Optimization Suite? comparable to WinOptimization Suite AJones Linux - Software 1 05-15-2005 05:04 AM
Updating 9.1 to 9.2 pro (major problem), Monitor freaks out during install cwolf78 Linux - Software 0 04-25-2005 11:42 PM
When updating in SuSE 9 Pro...Sourceforge doesn't work. What is a good US alt? SILVERPENGUIN Linux - General 1 01-16-2004 09:59 PM
Will the MS Office Suite work in Mandrake Linux 8.1? StlthMd Linux - General 5 01-19-2002 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration