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: ''
Are you trying to use your DVD as a repository for yum?
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.
I issued a createrepo in the DVD directory copy and now I can install from my own repo.
I had the same problem with a similar set up. Can confirm that running createrepo fixes it for me:-)
*** This bug has been marked as a duplicate of 241604 ***