Bug 109276

Summary: Install of new packages fails due to incorrect path
Product: [Fedora] Fedora Reporter: Dan Tucny <d>
Component: redhat-config-packagesAssignee: Jeremy Katz <katzj>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: acmospis, alriddoch, bernie+fedora, bestworldweb, cristi, davy, drew, embryo, frank, gerry, mccabemt, phix919, pprandin, redhat, renzo, siegler, slars, viot
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.7-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-24 21:51:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Contents of /usr/share/comps/i386/.discinfo
none
Updates method.py none

Description Dan Tucny 2003-11-06 13:47:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031030

Description of problem:
When using redhat-config-packages to add new packages, it gets to
telling you to insert a CD, once you OK this, it fails with 'Error
installing packages There was an error installing packages. Exiting.'

Running redhat-config-packages in a terminal window shows the
following error message, in this case, installing tsclient.

The file /mnt/cdrom/RedHat/RPMS/tsclient-0.120-1.i386.rpm cannot be
opened. This is due to a missing file, a bad package, or bad media.
Press <return> to try again.

The correct path is actually
/mnt/cdrom/Fedora/RPMS/tsclient-0.120-1.i386.rpm.


Version-Release number of selected component (if applicable):
redhat-config-packages-1.2.6-1

How reproducible:
Always

Steps to Reproduce:
1. Open redhat-config-packages
2. Choose some new packages
3. Click Update
    

Additional info:

Comment 1 Jeremy Katz 2003-11-06 16:27:33 UTC
What does /usr/share/comps/i386/.discinfo contain?

Comment 2 Michael McCabe 2003-11-06 17:08:22 UTC
Created attachment 95765 [details]
Contents of /usr/share/comps/i386/.discinfo

Comment 3 Dan Tucny 2003-11-06 17:10:27 UTC
The file contents are the same as posted by Michael above. Thanks Michael.

Comment 4 Michael McCabe 2003-11-06 18:10:13 UTC
Created attachment 95766 [details]
Updates method.py

This patch updates method.py with the Fedora cd path. I compiled it and tested
on two Fedora Core 1 Systems and they both worked.

Comment 5 Jeremy Katz 2003-11-06 18:29:18 UTC
But that's just a default that's used if the .discinfo file doesn't
exist and have the package path...  and it works here for me.

Comment 6 Drew Gaylo 2003-11-06 21:04:31 UTC
I'm having the same problem, terminal output as follows

---Start---
WARNING: perl-Digest-SHA1 had an old state and tried to set it again.
 0 to 2
selecting already selected package perl-Digest-SHA1
The file /mnt/cdrom1/RedHat/RPMS/perl-Digest-SHA1-2.01-15.i386.rpm
cannot be opened. This is due to a missing file, a bad package, or bad
media. Press <return> to try again.
---End---

Comment 7 Drew Gaylo 2003-11-06 21:09:04 UTC
I've applied the patch mentioned above and rebuilt the source rpm and
installed it and it works great now.


Comment 8 Rasmus Back 2003-11-07 13:20:51 UTC
I'm also having the same problem. Looking at the source code for
method.py it doesn't seem like the package path is read from .discinfo.

In class RedHatCdromInstallMethod method readDiscInfo only timestamp
and releaseName are read from .discinfo.

Adding self.packagesDir = discid.rpms_path to readDiscInfo fixes the
problem and i can install rpms again.

The method.py file as a whole could use some cleaning up ;)


Comment 9 Frank Straetz 2003-11-07 17:58:08 UTC
Same problem here. (bump :p)

I can't install the development tools because of this problem, but I
need them to compile Nvidia kernel interface/module/whatever. If I
install the redhat-config-packages source package and modify the
methods.py file I can't recompile it because the dev tools are
missing. In short, I'm too lazy to install 38 packages by hand. :) Help!

Comment 10 Jeremy Katz 2003-11-07 19:56:18 UTC
*sigh*  Fixed in 1.2.7 -- I know I had this working at some point :/

http://people.redhat.com/~katzj/redhat-config-packages/ will have the
package as soon as it's done building.

Comment 11 Jeremy Katz 2003-11-07 20:48:09 UTC
*** Bug 109439 has been marked as a duplicate of this bug. ***

Comment 12 Jeremy Katz 2003-11-08 18:16:18 UTC
*** Bug 109473 has been marked as a duplicate of this bug. ***

Comment 13 Nick Lamb 2003-11-09 03:46:23 UTC
Can this be pushed onto up2date? I'm not sure what policy has been set
for Fedora on which non-security fixes can go to up2date, but this one
seems like a no brainer to me.

Comment 14 Jeremy Katz 2003-11-09 04:36:02 UTC
*** Bug 109530 has been marked as a duplicate of this bug. ***

Comment 15 Jeremy Katz 2003-11-09 17:24:47 UTC
*** Bug 109551 has been marked as a duplicate of this bug. ***

Comment 16 Jeremy Katz 2003-11-10 22:51:05 UTC
*** Bug 109685 has been marked as a duplicate of this bug. ***

Comment 17 Jeremy Katz 2003-11-13 16:14:29 UTC
*** Bug 109931 has been marked as a duplicate of this bug. ***

Comment 18 Jeremy Katz 2003-11-13 20:50:12 UTC
*** Bug 109999 has been marked as a duplicate of this bug. ***

Comment 19 Jeremy Katz 2003-11-19 21:43:59 UTC
*** Bug 110412 has been marked as a duplicate of this bug. ***

Comment 20 Jeremy Katz 2003-11-21 17:57:59 UTC
*** Bug 110580 has been marked as a duplicate of this bug. ***

Comment 21 Michael Phix 2003-11-21 21:28:09 UTC
I tried to install the 1.2.7 RPM and here is my output

file /usr/share/redhat-config-packages/method.py from install of
redhat-config-packages-1.2.7-1 conflicts with file from package
redhat-config-packages-1.2.6-1

Comment 22 Dan Tucny 2003-11-22 13:24:27 UTC
Michael P, rpm -U to upgrade a package rather than rpm -i to install.

Comment 23 Paolo Prandini 2003-11-23 08:12:25 UTC
I have updaded package. Works fine now.
- Regards
- Paolo


Comment 24 Jeremy Katz 2003-11-24 21:51:22 UTC
Released as a Fedora Core update.

Comment 25 Jeremy Katz 2003-11-24 22:24:00 UTC
*** Bug 110844 has been marked as a duplicate of this bug. ***

Comment 26 Karsten Hopp 2003-12-31 14:48:34 UTC
*** Bug 111637 has been marked as a duplicate of this bug. ***

Comment 27 Jeremy Katz 2004-03-10 17:31:54 UTC
*** Bug 117947 has been marked as a duplicate of this bug. ***