I’ve opensuse 12.1 installed on my system.
I want to use yum for installing packages so i install yum on it, make some changes in “/etc/yum/yum.conf” file.
but while doing ‘yum update’ , its giving the following error:
base | 1.6 kB 00:00
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/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/grabber.py”, line 1539, in _over_max_size
if cur > max_size + max_size*.10:
TypeError: can’t multiply sequence by non-int of type ‘float’
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/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/grabber.py”, line 1539, 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/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/grabber.py”, line 1539, in _over_max_size
if cur > max_size + max_size*.10:
TypeError: can’t multiply sequence by non-int of type ‘float’
On 08/21/2012 02:46 PM, saurabh23 wrote:
> Can anyone please help me on this…
hmmm…i think all the yum gurus are on the Fedora/Red Hat/CentOS list…
why do you want to blaze a trail with yum on openSUSE? just try zypper
instead…it is simple…or YaST Software Management, even simpler than
either yum or zypper!
anyway, you are kinda “out there, on your own” with yum on openSUSE,
because the folks here don’t know much yum, and the folks who know a lot
about yum don’t know much about openSUSE…
remember: When you have seen one Linux, you have seen one Linux!
Actually, i m developing a project in which i m providing a multi os support ,all of linux flavor. And i want to use a common package manager in all OS’s , that’s why i was trying to use either yum/apt in openSuse. i found a way of using apt in both centOS and fedora, and i want the same for openSuse, but unfortunately its not happening.
There is a project for that IIRC, called PackageKit. It is allready on openSUSE (and the Apper applet in KDE is using it), but it is still full of problems and we discourage it’s usage. The more while we have YaST/zypper which we think is one of the great things that openSUSE offers you and that is one of the cornerstones of making openSUSE different (and we think: better, but we are not neutral of course) from the others.
On 2012-08-23 15:46, saurabh23 wrote:
>
> @hcvv & @dd
>
> Thanks for ur kind reply…
>
> Actually, i m developing a project in which i m providing a multi os
> support ,all of linux flavor. And i want to use a common package manager
> in all OS’s , that’s why i was trying to use either yum/apt in openSuse.
You will do better if you use the native package manager of each distro, or you will get into
huge problems.
And, as hcw said, what you are attempting already exists, and “we hate its guts”, kind of – so
I doubt you will succed
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
I got this error trying a ‘yum update’, and used the following to fix the problem
In a terminal window,as root:
<your favourite text editor> /usr/lib/python2.7/site-packages/urlgrabber/grabber.py
go to line 1539
replace “if cur > max_size + max_size*.10:” with “if cur > (float(max_size)*1.10):”
save the file
try whatever it is you were doing before again
if this doesn’t work for you, sorry…
I hope all the people who say “why don’t you use something else” haven’t put you off trying to do what you set out to do - if that happened we’d still be hanging from trees peeling bananas and throwing our sh*t around for fun.
On 10/27/2012 04:26 PM, wiremat wrote:
> we’d still be hanging from trees peeling bananas and throwing
> our sh*t around for fun.
yes, but if i buy a Mercedes, a Volvo, and a Ford i won’t put a Toyota
transmission in all of them.
or, if i decide to do that, i won’t expect a lot of help from Mercedes,
Volvo, Ford and Toyota to fix the engineering problems i face because
of the switch.
Another possibility is to write a front-end which would call either zypper, yum, urpmi, apt-get, pacman or whatever with the appropriate options depending on the running OS. This is the approach I use when I need to install the “same” packages on different distros. It’s not dfficult. You just have to know a little bit the syntax of the different package management tools.
On 2012-10-28 10:06, please try again wrote:
> Another possibility is to write a front-end which would call either
> zypper, yum, urpmi, apt-get, pacman or whatever with the appropriate
> options depending on the running OS. This is the approach I use when I
> need to install the “same” packages on different distros. It’s not
> dfficult. You just have to know a little bit the syntax of the different
> package management tools.
Packagekit is suppossed to be such a frontend.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))
Thanks wiremat, that solution worked perfectly. Like most, I use zypper because I like it more than yum, but I support other operating systems that use yum - so it’s nice to have a working knowledge of both commands.