[Yum] Need Help Getting Yum To Work With Mandrake 9.2

David Relson relson at osagesoftware.com
Sun Dec 28 13:08:46 UTC 2003


On Sat, 27 Dec 2003 22:44:14 -0600
Kathy Wills <kathywills at brannanorwills.com> wrote:

> I have Yum version 2.0.1 installed from a mandrake rpm package. My 
> Python version is 2.3-3. Here is my /etc/yum.conf file:
> 
> > [main]
> > cachedir=/var/cache/yum
> > debuglevel=2
> > logfile=/var/log/yum.log
> > pkgpolicy=newest
> > distroverpkg=mandrake-release    ;;Mandrake Linux release 9.2
> > (FiveStar) tolerant=1
> > exactarch=1
> >
> > [base]
> > name=Mandrake Linux $releasever - Base
> > baseurl=http://mirrors.usc.edu/pub/yum-repository/mandrake/$release
> > ver/i586/
> >
> > [updates]
> > name=Mandrake Linux $releasever - Updates
> > baseurl=http://mirrors.usc.edu/pub/yum-repository/mandrake/updates/
> > $releasever/i586/
> >
> > [contrib]
> > name=Mandrake Linux $releasever - Contrib
> > baseurl=http://mirrors.usc.edu/pub/yum-repository/mandrake/$release
> > ver/contrib/i586/
> 
> Here are the error messages I get when I do "yum list":
> 
>  root]# yum list
> Gathering header information file(s) from server(s)
> Server Mandrake 9.2 - Base
> Traceback (most recent call last):
>     File "/usr/bin/yum", line 60, in ?
>        yumain.main<sys.arv[1:]>
>     File "yumain.py", line 183, in main
>     File "clientStuff.py", line 734, in get_package_info_from_servers
>     File "clientStuff.py", line  1103, in grab
>     File "urlgrabber.py", line 228, in retrygrab
>     File "urlgrabber.py", line 306, in urlgrab
>     File "/usr/lib/python2.3/urllib2.py", line 136, in urlopen
>        return _opener+open(url, data)
>     File "/usr/lib/python2.3/urllib2.py", line 333, in open '_open',
>     req> File "/usr/lib/python2.3/urllib2.py", line 313, in 
>     _call_chain
>        result = func(Margs)
>     File "keepalive.py", line 162, in http_open
>     File "keepalive.py", line 143, in do_open
>     File "/usr/lib/python2.3/httplib.py", line 777, in get response
>        method=self+method>
> Type error:_init_()got an unexpected keyboard argument 'method'
> 
> I did not touch the keyboard when this was working. My computer is the
> 
> only one that I need to keep up to date. Has anyone been able to get 
> this working with Mandrake 9.2? If so what am I doing wrong?
> 
> If I can get it working, it sounds like I will like it better than 
> Mandrake's urpmi.
> 
> -- 
> Kathy Wills
> 

Kathy,

I've got it running just fine on Mandrake 9.2.  There are two ways to do
that (that I know of):

1) The simplest is to delete /usr/share/yum/httplib.py*.  yum will
accept the lack of a file and will run without it, thus avoiding the
error.

2) The best route (I believe) is to get the current version.  I built
from a daily snapshot about a week ago and have version 2.0.4. 
According to a comment I put in /etc/yum.conf, I have
http://linux.duke.edu/projects/yum/download/daily/2.0/yum-20031205.tar.gz.
 As that's several weeks old, I'm sure there's a newer version
available.

Good luck.

David



More information about the Yum mailing list