can't use yum or preupgrade
[root@MPressPhotoDT edwin]# preupgrade-cli
Traceback (most recent call last): File "/usr/share/preupgrade/preupgrade-cli.py", line 34, in <module> from cli import * File "/usr/share/yum-cli/cli.py", line 29, in <module> import rpm File "/usr/lib64/python2.7/site-packages/rpm/__init__.py", line 9, in <module> from rpm._rpm import * ImportError: /usr/lib64/librpm.so.2: file too short [root@MPressPhotoDT edwin]# preupgrade-cli Traceback (most recent call last): File "/usr/share/preupgrade/preupgrade-cli.py", line 34, in <module> from cli import * File "/usr/share/yum-cli/cli.py", line 29, in <module> import rpm File "/usr/lib64/python2.7/site-packages/rpm/__init__.py", line 9, in <module> from rpm._rpm import * ImportError: /usr/lib64/librpm.so.2: file too short [root@MPressPhotoDT edwin]# rm -f /var/lib/rpm/__db* [root@MPressPhotoDT edwin]# rpm –rebuilddb rpm: error while loading shared libraries: /usr/lib64/librpm.so.2: file too short [root@MPressPhotoDT edwin]# yum clean all There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: /usr/lib64/librpm.so.2: file too short Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.1 (r271:86832, Apr 12 2011, 16:15:16) [GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq |
What exactly are you trying to do here?
Are you trying to upgrade fedora from one major release to another ? e.g. Fedora 15 to 16 |
Trying to upgrade to F16 from to F15
|
??? upgrade form 16 to the older 15 ????
or is that a typo ? If 15 to 16 it looks like you change the version of python yum REQUIRES the SPECIFIC version that is in the fedora updates repo however seeing as SO MANY things have changed in 16 a fresh clean install is recomended reformat to ext4 and install 16 on a clean drive . for every fedora upgrade PREPARE for a new clean install try the preuprgaed ( it is getting better) but expect to do a clean install . |
I had the same problem. I had to use a new disc and do a fresh install.
|
Even If you are trying to downgrade your operating system for some reason(which has to be pretty good) , you should go for a fresh install as suggested by John.
|
Trying to upgrade to F16 from to F15[/QUOTE]
I decided to order f16 x64 disc. thank u |
I decided to get a F16 x64 disc
|
All times are GMT -5. The time now is 04:29 PM. |