MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 . . .
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.