5

I am trying to isntall something using "yum install my.rpm"

The problem is I am getting

TypeError: an integer is required
error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x013e3f8>> failed, aborting!

What does this mean? I turned on verbosity of the yum install, cant figure anything out. This is RHEL 6.1

Thanks

Derek
  • 11,715
  • 32
  • 127
  • 228

2 Answers2

8

If rpm is not able to access the file for some reason while installing the package, it throws this error.

For example if your rpm is located on a NFS share witn root_squash directive, and try to install, then since root while attempting to access the file won't be permitted to it will fail, and it throws this excact error.

If this is your case, then putting the rpm in something like /tmp first, and then re-trying will solve it.

Petter H
  • 204
  • 1
  • 5
  • 13
-1

To install a rpm file with yum, you need to use the localinstall command:

localinstall Is used to install a set of local rpm files. If required the enabled repositories will be used to resolve dependencies. Note that the install command will do a local install, if given a filename.

For example "yum localinstall my.rpm". But I think you also have a problem with your spec file.

gogators
  • 783
  • 2
  • 6
  • 17