Bug 242275

Summary: Yum crashes when installing package
Product: [Fedora] Fedora Reporter: Clodoaldo Pinto Neto <clodoaldo.pinto.neto>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 7CC: ivazqueznet, kahlil.hodgson
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-03 07:06:46 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:

Description Clodoaldo Pinto Neto 2007-06-02 22:16:36 UTC
When trying to install postgresql:

# yum install postgresql*
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package postgresql-python.i386 0:8.2.3-2.fc7 set to be updated
---> Package postgresql-server.i386 0:8.2.3-2.fc7 set to be updated
---> Package postgresql-libs.i386 0:8.2.3-2.fc7 set to be updated
---> Package postgresql.i386 0:8.2.3-2.fc7 set to be updated
--> Processing Dependency: mx for package: postgresql-python
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mx.i386 0:2.0.6-3 set to be updated

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 postgresql              i386       8.2.3-2.fc7      fedora            3.0 M
 postgresql-libs         i386       8.2.3-2.fc7      fedora            195 k
 postgresql-python       i386       8.2.3-2.fc7      fedora             66 k
 postgresql-server       i386       8.2.3-2.fc7      fedora            4.1 M
Installing for dependencies:
 mx                      i386       2.0.6-3          fedora            4.5 M

Transaction Summary
=============================================================================
Install      5 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 172, in main
    base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 302, in doTransaction
    problems = self.downloadPkgs(downloadpkgs) 
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 798, in downloadPkgs
    remote_pkgs.sort(mediasort)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 747, in mediasort
    a = a.getDiscNum()
  File "/usr/lib/python2.5/site-packages/yum/packages.py", line 485, in getDiscNum
    return int(fragid)
ValueError: invalid literal for int() with base 10: ''

Comment 1 Ignacio Vazquez-Abrams 2007-06-02 22:23:59 UTC
Are you trying to use your DVD as a repository for yum?

Comment 2 Clodoaldo Pinto Neto 2007-06-02 23:24:53 UTC
It only crashes when using a copy of the install DVD as repository:

/etc/yum.repos.d/fedora.repo:
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
baseurl=http://yumrepo.s0/7/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch

When using the mirror list it downloads and installs without problems.

Comment 3 Clodoaldo Pinto Neto 2007-06-02 23:38:53 UTC
I issued a createrepo in the DVD directory copy and now I can install from my
own repo.

Comment 4 Kahlil Hodgson 2007-06-03 00:23:35 UTC
I had the same problem with a similar set up.  
Can confirm that running createrepo fixes it for me:-)

Comment 5 Ignacio Vazquez-Abrams 2007-06-03 07:06:46 UTC

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