Fedora Linux Support Community & Resources Center
  #1  
Old 1st July 2016, 05:34 PM
snoop20 Offline
Registered User
 
Join Date: Sep 2011
Posts: 18
linuxchrome
Fedora 24 Upgrade Borked - Now System Borked

Hi all,

Followed the official Fedora guide for dnf to upgrade, all went well but on reboot fsck failed and I ended up in emergency mode. Fixed that and on reboot the updater didn't run so I'm now left with most of the 24 packages installed and a broken dnf. I've tried reinstalling dnf and its requisites but to no avail.

Unsure how to get out of this mess!


[root@localhost Downloads]# dnf
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
ImportError: No module named 'dnf'


Cheers,

Andrew
Reply With Quote
  #2  
Old 1st July 2016, 08:07 PM
snoop20 Offline
Registered User
 
Join Date: Sep 2011
Posts: 18
linuxchrome
Re: Fedora 24 Upgrade Borked - Now System Borked

[root@localhost Downloads]# yum
/bin/bash: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory
[root@localhost Downloads]# dnf
bash: /usr/bin/dnf: /usr/bin/python3: bad interpreter: No such file or directory
[root@localhost Downloads]# yum-deprecated
Yum command has been deprecated, use dnf instead.
See 'man dnf' and 'man yum2dnf' for more information.

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

pycurl: libcurl link-time version (7.43.0) is older than compile-time version (7.47.1)

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.11 (default, Jun 21 2016, 09:15:12)
[GCC 6.1.1 20160510 (Red Hat 6.1.1-2)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq


[root@localhost Downloads]#
Reply With Quote
  #3  
Old 1st July 2016, 10:23 PM
srakitnican Offline
Registered User
 
Join Date: Oct 2011
Posts: 1,357
linuxfedorafirefox
Re: Fedora 24 Upgrade Borked - Now System Borked

How did you try to repair it? Is rpm still working?

Reinstall all packages from link: http://koji.fedoraproject.org/koji/b...buildID=768156
Reply With Quote
  #4  
Old 1st July 2016, 10:42 PM
SteveGYBE Offline
Registered User
 
Join Date: Jun 2007
Location: Lytham St Annes, Lancashire, UK
Posts: 675
linuxfedorafirefox
Re: Fedora 24 Upgrade Borked - Now System Borked

If you have no GUI but RPM is still working (as semiRocket asked) you can try the following at the command line...

Quote:
Originally Posted by snoop20 View Post
root@localhost Downloads]# dnf
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
ImportError: No module named 'dnf'
Verify whether you have the package python3-dnf (as name implies, contains the Python module "dnf") installed and verify it is not broken
Code:
rpm -V python3-dnf
No output means package installed and good. If not, download and use RPM to (re)install
Code:
wget -c http://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/p/python3-dnf-1.1.9-2.fc24.noarch.rpm
rpm -Ivh python3-dnf-1.1.9-2.fc24.noarch.rpm         # If package not installed, or
rpm --reinstall python3-dnf-1.1.9-2.fc24.noarch.rpm # If Verify listed files missing or with error codes
If the install fails missing dependencies, you will need to verify whether the following are installed and download the rpms missing from the same location as before
Code:
python3-hawkey-0.6.3-2.fc24.x86_64.rpm
python3-iniparse-0.4-19.fc24.noarch.rpm
python3-libcomps-0.1.7-4.fc24.x86_64.rpm
python3-librepo-1.7.18-2.fc24.x86_64.rpm
python3-pygpgme-0.3-15.fc24.x86_64.rpm
Note - you can install multiple RPMs at the same time using wildcards or simply listing the rpm files after the "rpm -Ivh ..." command.

Last edited by SteveGYBE; 1st July 2016 at 10:49 PM. Reason: Don't need to use mirrorservice.org, use dl.fedoraproject.org directly
Reply With Quote
  #5  
Old 1st July 2016, 10:50 PM
snoop20 Offline
Registered User
 
Join Date: Sep 2011
Posts: 18
linuxfedorafirefox
Re: Fedora 24 Upgrade Borked - Now System Borked

It was broke in a spectacular way, all (or most) of the FC24 packages were installed alongside the FC23. I tried removing all FC24 manually to get Yum/dnf to work but that left it in a worse state. I spent an hour trying to make python work, and ncurses but there were too many libraries then missing. Your ideas may have worked I hadn't tried those packages, but note Yum was broken as well (python3-dnf disappeared after removing FC24 packages but at that point I knew it wouldn't boot).

The key here is to fsck the hdd before doing an upgrade reboot!

I've kept my home partition and wiped the rest. Now doing the long reinstall of everything.
Reply With Quote
  #6  
Old 1st July 2016, 11:09 PM
SteveGYBE Offline
Registered User
 
Join Date: Jun 2007
Location: Lytham St Annes, Lancashire, UK
Posts: 675
linuxfedorafirefox
Re: Fedora 24 Upgrade Borked - Now System Borked

Do a "fsck" before an upgrade? Now that's a good idea

Good luck with the reinstall!
Reply With Quote
Reply

Tags
borked, fedora, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
updates borked system Greydog Using Fedora 1 31st July 2011 11:06 PM
Upgrade Borked video! maalamaal Using Fedora 1 20th January 2009 11:09 AM
Borked upgrade from fed 8 to fed 9! srdempster Alpha - Beta (Fedora 9 Only) 8 28th March 2008 10:46 AM
03/08 Yum Update Borked My System j_baer Fedora Core 5 - Dev 0 8th March 2006 11:25 PM
FC2 upgrade half-borked (from RH9) toddcurry EOL (End Of Life) Versions 1 31st December 2004 09:22 PM


Current GMT-time: 10:19 (Saturday, 24-06-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat