Bug 520790 - cannot install gcc in F12 because of yum problem
Summary: cannot install gcc in F12 because of yum problem
Keywords:
Status: CLOSED DUPLICATE of bug 521358
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-02 12:29 UTC by Joachim Backes
Modified: 2014-01-21 23:11 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-10-13 13:27:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joachim Backes 2009-09-02 12:29:19 UTC
Description of problem:

After having installed F12 (in VirtualBox, without devel packages), I tried to install 
gcc, but getting some repo issues:

Error Downloading Packages:
   ppl-0.10.2-5.fc12.i686: failure: Packages/ppl-0.10.2-5.fc12.i686.rpm 
from InstallMedia: (256, 'No more mirrors to try.')
   binutils-2.19.51.0.14-31.fc12.i686: failure: 
Packages/binutils-2.19.51.0.14-31.fc12.i686.rpm from InstallMedia: (256, 
'No more mirrors to try.')

binutils-2.19.51.0.14-31.fc12.i686: failure: 
Packages/binutils-2.19.51.0.14-31.fc12.i686.rpm from InstallMedia: (256, 
'No more mirrors to try.')




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


How reproducible:

each time
Steps to Reproduce:
1.yum install gcc
2.
3.
  
Actual results:
After having installed F12 (without devel packages), I tried to install 
gcc, but getting some repo issues:

Error Downloading Packages:
   ppl-0.10.2-5.fc12.i686: failure: Packages/ppl-0.10.2-5.fc12.i686.rpm 
from InstallMedia: (256, 'No more mirrors to try.')
   binutils-2.19.51.0.14-31.fc12.i686: failure: 
Packages/binutils-2.19.51.0.14-31.fc12.i686.rpm from InstallMedia: (256, 
'No more mirrors to try.')

binutils-2.19.51.0.14-31.fc12.i686: failure: 
Packages/binutils-2.19.51.0.14-31.fc12.i686.rpm from InstallMedia: (256, 
'No more mirrors to try.')



see above
Expected results:
gcc is installed

Additional info:

Comment 1 seth vidal 2009-09-02 13:38:24 UTC
Is it possible that machine had a limited number of mirrors but is now fine?

Try running: 

yum clean all
yum install gcc

and see  if it picks up.

Comment 2 Joachim Backes 2009-09-02 14:27:50 UTC
I could solve the problem: I found in /etc/yum.repos.d a file called Fedora-install-media.repo with the following lines:

[InstallMedia]
name=Fedora 12-Alpha
mediaid=1250548413.424676
metadata_expire=-1
gpgcheck=0
cost=500

Don't know why this file was installed, and by whom.

After removing this file, the install of gcc was perfectly performed.

Comment 3 Joachim Backes 2009-09-03 08:38:46 UTC
I have the impression this could be a legacy of anaconda?

Comment 4 Joachim Backes 2009-09-03 08:39:40 UTC
PLease reopen.

Comment 5 Chris Lumens 2009-09-03 14:07:08 UTC
That file is written out if you do a CD/DVD install so that you can later use the installation media to install extra packages.  You'll note that it's got a very high cost, ensuring it will be the last thing to be used.  yum really shouldn't be making use of it unless there's no other repos available to use.

Comment 6 Joachim Backes 2009-09-03 15:12:10 UTC
(In reply to comment #5)
> That file is written out if you do a CD/DVD install so that you can later use
> the installation media to install extra packages.  You'll note that it's got a
> very high cost, ensuring it will be the last thing to be used.  yum really
> shouldn't be making use of it unless there's no other repos available to use.  

This is a really unexpected behaviour. Normally, I install forgotten packages from the internet repos, and not from the DVD. Why yum uses that file? After removing this file, all installs fine!

Comment 7 Tim Lauridsen 2009-09-04 08:08:31 UTC
(In reply to comment #5)
> That file is written out if you do a CD/DVD install so that you can later use
> the installation media to install extra packages.  You'll note that it's got a
> very high cost, ensuring it will be the last thing to be used.  yum really
> shouldn't be making use of it unless there's no other repos available to use.  

Is that something new for F12, i have not seen that before ?

Maybe, It should be disabled by default, yum-cli don't have the code to ask for a missing dvd or asking for CD changing.
pk can't handle it yet, only yumex NextGen can handle the media request/change.

Comment 8 Joachim Backes 2009-09-04 09:11:22 UTC
(In reply to comment #7)
> (In reply to comment #5)
> > That file is written out if you do a CD/DVD install so that you can later use
> > the installation media to install extra packages.  You'll note that it's got a
> > very high cost, ensuring it will be the last thing to be used.  yum really
> > shouldn't be making use of it unless there's no other repos available to use.  
> 
> Is that something new for F12, i have not seen that before ?

Googeling for that item showed me some remarks/questions in the forums concerning this file in older Fedora versions. I seems that is not a new issue.

> 
> Maybe, It should be disabled by default

I agree!

> yum-cli don't have the code to ask for
> a missing dvd or asking for CD changing.
> pk can't handle it yet, only yumex NextGen can handle the media request/change.

Comment 9 Gene Czarcinski 2009-09-04 19:39:16 UTC
This must be something new for F12 as I do not see it on my F11 installs which were done from DVD+updates.

If this is going to exist from now on, it should definitely be disabled by default with comments explaining what it is for, etc.

Comment 10 Gene Czarcinski 2009-09-04 19:41:15 UTC
Shouldn't this problem be assigned to anaconda rather than yum?  Anaconda put it there, yum is just doing its thing.

Comment 11 James Antill 2009-09-17 17:09:58 UTC
Chris, in reply to comment 5 ...

              cost  relative  cost  of  accessing  this repository. Useful for
              weighing one repo's packages as  greater/less  than  any  other.
              defaults to 1000

...so that repo file is prefered over the network repos. (which I assume is intentional, or people with the CD/DVD in would hit the network).

Comment 12 seth vidal 2009-10-12 21:54:32 UTC
this one is going over to anaconda - if the repo is enabled we have to update the cache on it. And we can't know apriori whether the cost will be an issue.

Comment 13 Chris Lumens 2009-10-13 13:27:59 UTC
We no longer copy the CD/DVD repo config file over.

And no, it's not new for F12 behavior.  We'd been copying that file over off-and-on ever since anaconda switched to using yum way back around FC6 or so.

*** This bug has been marked as a duplicate of bug 521358 ***


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