Ask Your Question

Best way to proceed after interrupted fedora-upgrade

asked 2016-02-08 11:15:48 -0500

jdub1234 gravatar image

Background: Novice. I am using Fedora 20 and have been experiencing issues with the User Interface (login screen did not accept password consistently, icons on the window manager disappearing, problems with unlocking screen, etc.). While I could work around these, I was inconvenienced and concerned about security so I decided to upgrade with fedora-upgrade to Fedora 21 (and I do realize this is not the official/QA way to upgrade, my zeroth mistake). During the rather lengthy upgrade process, I was checking my email and I received the dreaded "Oh No! Something has gone wrong" UI and the machine appeared to lock up. I rebooted the machine (probably my first mistake).

So now my machine has partial updates for Fedora 21 and partial Fedora 20 (I.e., it is a tangled mess). Panic ensued (my second mistake), and I tried a variety of measures with yum-complete-transaction, yum --releasever=20 distro-resync and package-cleanup --problems etc. to try and repair. it is still broken. In short, it's a mess and it is broken.

BTW, I must boot level 3 because the UI no longer works.

Question:: When I do a screenfetch, the OS portion appears to think I have Fedora 21, with a Fedora 20 kernel (mtaches uname -r). I have many applications installed on this disk and the time to identify and restore them is not trivial (my single largest concern) since my personal data is backed up). What is the best strategy to proceed?

Thanks, Frazzled

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-08 13:24:27 -0500

sideburns gravatar image

updated 2016-02-08 13:25:51 -0500

Welcome to ask.fedora. Using fedora-upgrade isn't a problem; I've had better results with it on my desktop than with fedup. I've also had hung upgrades, all with fedup. One of the issues you have here is that you probably have a large number of duplicate packages in your yum database. Log in as root, and run this command:

package-cleanup --dupes | grep fc20 > dupes.text

This will give you a list of all duplicated packages, listing only the older version. (You'll get both versions from package-cleanup, and the grep will get rid of the fc21 versions.) Then, use yum to remove them, a few at a time. Every now and then, re-run that command to get a new list. Once you get down to under a hundred packages, you can use package-cleanup --cleandupes to get rid of the rest, all at once. When that's done, do another distro-sync with --releasever=21 and that should do it. It's a lot of work, but if you've installed enough things, it may be easier in the long run than a reinstall.

Good luck, and keep us informed.

edit flag offensive delete link more

Question Tools


Asked: 2016-02-08 11:15:48 -0500

Seen: 1,032 times

Last updated: Feb 08 '16