25
Apr
2012
geoff

Fixing YUM

I recently came across an issue with RedHat's yum where I couldn't do anything with it. The error was,

    [root@desktop ~]# yum update
    Loaded plugins: langpacks, presto, refresh-packagekit
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1522, in _progress_update
        if self._over_max_size(cur=self._amount_read-self._reget_length):
      File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1541, in _over_max_size
        if cur > max_size + max_size*.10:
    TypeError: can't multiply sequence by non-int of type 'float'
     
     Current download cancelled, interrupt (ctrl-c) again within two seconds
    to exit.
     
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1522, in _progress_update
        if self._over_max_size(cur=self._amount_read-self._reget_length):
      File "/usr/lib/python2.7/site-packages/urlgrabber-3.9.1-py2.7.egg/urlgrabber/grabber.py", line 1541, in _over_max_size
        if cur > max_size + max_size*.10:
    TypeError: can't multiply sequence by non-int of type 'float'
     
     
    Exiting on user cancel
    [root@desktop ~]#

This was caused by having both the python module urlgrabber from easy_install and the python-urlgrabber RPM installed.

To fix it, I did:

[root@desktop ~]# rm -rf /usr/lib/python2.7/site-packages/urlgrabber*
[root@desktop ~]# rm -f /usr/bin/urlgrabber
[root@desktop ~]# rpm -ivh --force http://hany.sk/mirror/fedora/releases/16/Everything/x86_64/os/Packages/python-urlgrabber-3.9.1-10.fc15.noarch.rpm
Tags: 
06
Apr
2012
geoff

How to install RVM

When installing Arachni on a default Fedora I was disappointed that it wouldn't work with the standard ruby install (1.8.6). You will need version 1.9.2 which is easy to accomplish with RVM. RVM is fairly simple to install and can be accomplished by running


bash -s stable

Edit your .zshrc or .bashrc and add:

if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source “$HOME/.rvm/scripts/rvm” ; fi

Then source your .zshrc or .bashrc:

source ~/.zshrc

Then install the new version of ruby you want.
rvm install 1.9.2

02
Apr
2012
geoff

Welcome to GeoffStorbeck.com

I started this site as a project to further learn Drupal and provide access to various things I've created. I'll be posting games I create, various linux tricks that I discover, and other miscellaneous information.

Subscribe to ./blog RSS