LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-10-2009, 07:52 PM   #1
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smart rpm errors, not gzip file...?


Hi, I usually use smart rpm package manager to check my install and do the normal stuff with adding and removing packages, but lately, since 2009.1, I have been getting an error each and nearly every time I call it.

The error is the same for any smart call, like smart check, smart fix, smart update... etc.

I have tried to re-install python-5.2.5.2 and libs, with or with out scripts with urpmi, to no avail.

I have also tried 2009.0 and 2009.10 versions of smart and smart-gui,

Here is the output....
Code:
glenn@GamesBox:~$ smart check                                                            (11-06 10:43)
Traceback (most recent call last):                                                              (  0%)
  File "/usr/bin/smart", line 195, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 168, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib64/python2.6/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib64/python2.6/site-packages/smart/commands/check.py", line 72, in main
    ctrl.reloadChannels()
  File "/usr/lib64/python2.6/site-packages/smart/control.py", line 383, in reloadChannels
    self._cache.load()
  File "/usr/lib64/python2.6/site-packages/smart/backends/rpm/synthesis.py", line 94, in getLoadSteps
    for line in indexfile:
  File "/usr/lib64/python2.6/gzip.py", line 438, in next
    line = self.readline()
  File "/usr/lib64/python2.6/gzip.py", line 393, in readline
    c = self.read(readsize)
  File "/usr/lib64/python2.6/gzip.py", line 219, in read
    self._read(readsize)
  File "/usr/lib64/python2.6/gzip.py", line 255, in _read
    self._read_gzip_header()
  File "/usr/lib64/python2.6/gzip.py", line 156, in _read_gzip_header
    raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file
Any advise greatly appreciated.

Regards Glenn
 
Old 06-11-2009, 04:16 AM   #2
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
Looks like this:

https://qa.mandriva.com/show_bug.cgi?id=51326

Jim
 
Old 06-11-2009, 04:34 AM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654

Original Poster
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi Jim, That looks like it, but I leave urpmi alone,

I still use it (urpmi), and update it as usual. even Just to keep it current.

I setup the smart repo database with the same repos as urpmi,

but with the smart commands.

for example...
Code:
smart channel -y --add '2009.1-fis.unb.br_Contrib' type=urpmi baseurl='http://mirror.fis.unb.br/pub/linux/MandrivaLinux/official/2009.1/x86_64/media/contrib/release' hdlurl=media_info/hdlist.cz
for all the usual channels/repos...you get the idea.

I think I remember smart complaining that the channel/repo names were already in use

when I upgraded to Mandriva 2009.1(spring) And I've had this problem ever since.

I thought it may have been a python conflict, but...

"smart update" gives the same error.

I looked for the bug, but I may have to redress my search approach.

I did not find anything, last time I looked anyway.

Thanks for the info, I'll keep an eye on the bug-report and see what eventuates.

I have even tried to install smart from 2008.0 and 2008.1, but

too many dependants, and it breaks the system.(eventually, using force or nodeps)

regards Glenn
 
Old 06-11-2009, 06:11 AM   #4
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
If you got an error that the repo name was already in use, try changing the names you use for the smart repos (e.g.: If you have a urpmi repo names main, rename the smart repo to prime). Choose names that make sense to you, but you get the idea. See if that helps . . .
 
Old 06-11-2009, 08:45 AM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654

Original Poster
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi Ernie, Thanks for the tip.

But I knew that, I was referring to "something has changed" with the install

and/or the way smart works now when I wrote that.

It's a bit weird, because it has worked a few times and then stopped with that error(above). I have uninstalled and wipe all reference of smart from the system a few times, but can't recall what I actually did that made it work again.

I have a feeling that either of a few things have occurred.

1) smart looks at urpmi.cfg when installed and configures it's self to mirror those repos.
2) smart has a dep or two missing from it's install script.

3) python2.6 has changed so as not to include the gzip function in the same way it used to.

I also have a problem with python/twisted/spread/pb.py at line 30, md5 sum depreciated, use hashlib instead (at boot and shutdown) May not be related.

That's all I have for now, I really liked the way smart gave info on deps and files.

and the way you could easily reinstall a package, check a system for broken installs and fix the system install, quickly.

cheers and regards Glenn, I'm still looking....

<edit>for smart 1.2.8 x86_64
from what I have found so far,
python-base(2.6) is not available for x86_64. and
python-psyco is not available for x86_64.

also, there is a way to --replacepkgs --replacefiles --noscripts and --allow-suggests with urpmi, but not rpmdrake.
</edit>

Last edited by GlennsPref; 06-11-2009 at 09:04 AM. Reason: I have found so far
 
Old 06-11-2009, 07:39 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654

Original Poster
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, I need to correct some errors I have made here.

Sorry for the confusion.

When I mentioned the lib64python(2.6) I erred in saying that the older version was 5.2.5.2, It was 2.5.2.5.

When I mentioned the smart version it was 1.2.7, not 1.2.8, which I have just downloaded and installed, and will check soon.

Na! the error persists.

I have filed a bug-report.
Bug 51576 @ qa.mandriva.com

Last edited by GlennsPref; 06-11-2009 at 07:57 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open gzip file? I have gzip installed mhg Linux - Newbie 3 10-24-2008 02:18 AM
interpreting smart errors sathiyamoorthy Linux - Newbie 1 04-07-2008 05:19 PM
[gzip] appears in process table after gzip command completes redmanDBA Linux - General 0 02-26-2008 06:12 AM
strange SMART errors sensovision Linux - Hardware 2 03-02-2005 05:43 PM
gzip errors Chester Linux - Newbie 4 10-06-2001 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration