Bug 242275 - Yum crashes when installing package
Summary: Yum crashes when installing package
Status: CLOSED DUPLICATE of bug 241604
Alias: None
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
(Show other bugs)
Version: 7
Hardware: i386 Linux
Target Milestone: ---
Assignee: James Antill
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-06-02 22:16 UTC by Clodoaldo Pinto Neto
Modified: 2014-01-21 22:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-03 07:06:46 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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 
 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>
  File "/usr/share/yum-cli/yummain.py", line 172, in main
  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
  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:


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 ***

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