LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2007, 01:41 AM   #1
kinyua
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Unhappy Cannot update system using pirut from installation dvd......


Hi all, am a not so newbie of Linux, if that makes any sense, and i have this problem thats nearly making bash ma pc to the
wall but sanity instantly kicks back in when i think of the amount of cash i paid to acquire it.
Am gona get straight to the point : what exactly does the error
"Failed to retrieve Fedora/RPMS/thepackagenamehere from core Error was [errno 4]IOError : <urlopen error unknown url type : media>" mean.
Am trying to update my freshly installed FC6 system from my DVD and it always gives me the above error. I have googled, asked the whole net
(BTW, i think ask.com is kicking google's butt) and i have come around some couple of pointers of how to update FC6 from installation
DVD but when i try to update, i keep on getting that very frustrating error.
Now if someone could please just explain tyo me what the error means, me being a programmer i have come to understand that the biggest favor
you can ever do to yourself is first to understand the error and thereafter understanding the other nitty gritty will be child's play.
So again i just want to understand the error and what it really means then maybe i can finally be on my way to getting this thing to rest.

P.S i have tried almost all the suggestion in LQ and there was one from #$%#%$% that looked like it would help, but when i came to execute
the createrepo command, AGAIN my system doesn't know the command, now am almost thinking that YUM has something against me.
Anyway, guys i just need to know the detailed meaning of the error and also if anyone has the number to the guy who is in charge of YUM tool
at Fedora, please give it to me so that i call the guy and ask him what he has against me(syke).

And oh, if anyone has any other suggestions on how to effectively update FC6 from the DVD, don't hesitate to give your
suggestion. Waiting for your quick replies.
Cheers all.

Last edited by kinyua; 06-12-2007 at 02:18 AM.
 
Old 06-11-2007, 05:59 PM   #2
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
Where did you get the DVD for FC6? Is it a download from the main Fedora site, a magazine cover disk, or a "respin"?
 
Old 06-11-2007, 10:11 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Am trying to update my freshly installed FC6 system from my DVD
First of all, if there were updates on the DVD, they would have been installed rather than previous versions of packages.
The error is synonymous with 'no internet connection'. Yum works off the repositories from internet servers, not the DVD by default. If you tried to set up the DVD as a repository in Yum, you can only install packages included, not updates. If you get this error trying to install 'extra' packages and not updates from the DVD repository you "possibly" set up in Yum "which is not set up in a default installation", you set it up wrong.
 
Old 06-12-2007, 02:12 AM   #4
kinyua
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy

Hi Sadiqdm, to answer your question about the source of the FC6 installation DVD, i downloaded if from the Fedora site.

Hi Junior Hacker, what am trying to do is not exactly to update my packages but rather to install them. You see when i was installing the FC6 i choose the minimal configuration which had only the mandatory packages included. Now what am trying to do, is install the other funky packages that are in the DVD. My bad if the first post was kind of misleading.

To achieve that i got some pointers from a guy with username "devils_casper" on how to install packages from the DVD when you don't have an internet connection and it went something like this.

***********************************************************************************************
You can't install packages from DVD/CDs. i thought Fedora Team will sort out this problem in FC6. They didn't.
Solution : For installing Packages from DVD

Put '#' sign before first baseurl line in three files fedora-core.repo, fedora-extras.repo and fedora-updates.repo in folder /etc/yum.repos.d

#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
add new line below it.
Code:

baseurl=file:///media/disk

---- create a folder 'disk' in /media
Code:

mkdir /media/disk

---- insert Fedora Core DVD and mount it
Code:

mount /dev/hdc /media/disk

---- clean 'yum' cache.
Code:

yum clean all

click on Add/Remove Softwares and install packages from DVD. for installing from internet again, put '#' sign before disk's 'baseurl' line and remove '#' before original 'baseurl' line.
************************************************** ********


I followed the above instructions to the last letter but i wasn't successfull. I kept on getting my infamous error "Failed to retrieve Fedora/RPMS/thepackagenamehere from core Error was [errno 4]IOError : <urlopen error unknown url type : media>"....


See, what am simply trying to do is just get to install the other packages that are in the DVD. Hope this explain the point where i am at and can contribute to you guys helping me out. Am waiting for any pointers.

Cheers
 
Old 06-12-2007, 04:16 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
That's what I thought you were doing. I have been involved in many threads where people wanted to do the same thing, there were so many suggestions from around the world and most methods would not work. There is a way though, just I don't know which method to recommend as it appears to not be an easy task. You're probably going to have to try many of them before you find the method that works. Don't just rely on the suggestions in linuxquestions threads, as most don't work, try google also.
 
Old 06-13-2007, 02:42 AM   #6
kinyua
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Yesterday was a good day for science. I finally was able to install the packages from the FC6 DVD. I found a pointer from a user called "kizersouzay" and his approach was this.

************************************************************************************
1- Copy every thing from you dvd to a folder on your hard drive. say /FC6DVD

Code:

$mkdir /FC6DVD/ $mount /dev/hdc /mnt/cdrom $cp -R /mnt/cdrom/* /FC6DVD/


2-now use the "createrepo" to make a new reposirory.Make sure use the same directory where your rmps are stored.

Code:

$createrepo -vp -g /FC6DVD/repodata/comps.xml /FC6dVD/Fedora/RPMS


This took almost 5 minutes on my notebook.The "comps.xml" file is used to keep track of groups of packages in yum/pirut.if that is not used u will not get the fancy grouping in yum/pirut

3-now edit the /etc/ yum.repos.d/fedora-core.repo file.
it should look something like this.


Code:

[fc6dvd] name=Fedora Core 6 Installation DVD baseurl=file:///FC6DVD/Fedora/RPMS enabled=1 gpgkey=file:///FC6DVD/RPM-GPG-KEY gpgcheck=1


4-now clean yum's previous cache

Code:

$yum clean all


5-Run pirut from the GNOME menu by clicking Add/Remove Programs.and it will work good now

Now as far as the above procedure is concerned , it looks similar to the methods posted by others.I think the only diference is that "yum" wants the /repodat/ directory to be at the same place where your rpms are store if u look at the /FC6DVD/Fedora/RPMS directory /repodata/ directory is now created.
Or
May be the repodata directory available on your DVD media is not compatible with your system.Caz it was created somewhere else

The downside is that u have to give ~4gb of hard drive space to save the DVD on your system.
*****************************************************************************************


Some gotchas are that you must have createrepo package installed on your system. (Chicken and egg problem if you ask me). Anyway you can do that easily from the shell by using the rpm command.

Code:
rpm -ivh createrepo.yourversionhere
Also change gpgcheck=1 to gpgcheck=0 in your YUM config files (but remember to set it back to 1 when you are installing packages from the internet).

Then you will be on your way to bliss. Hope this helps someone who was in the same boat as me. Cheers all and thanks for all you informative suggestions.

Last edited by kinyua; 06-14-2007 at 01:54 AM.
 
Old 06-13-2007, 03:02 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I had this link below in my "quick response URL collection" and forgot to look at this file to see if I had a valid answer from a thread I was involved in:
http://www.linuxquestions.org/questi...d.php?t=537641
 
  


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
yum dependency issues nick623 Fedora 14 04-25-2007 04:00 AM
issues with yum in ps3 raim1312 Linux - Newbie 3 03-29-2007 05:50 PM
yum issues djljjm Linux - Software 3 01-30-2005 10:33 AM
APT and YUM issues Infernal211283 Linux - Newbie 4 01-28-2005 12:48 PM
FC3 Yum Issues DJOtaku Fedora 1 12-09-2004 05:35 PM


All times are GMT -5. The time now is 08:17 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