Ask Your Question
1

Upgrading to 22 interrupted. yum-complete-transaction does not work

asked 2015-06-20 08:57:48 -0500

Samurai gravatar image

updated 2015-06-20 13:40:34 -0500

I was trying to upgrade from 21 to 22, about 2G downloaded and then over 4k transactions, but a system shut down in the middle of process and it kinda got messed up.

The most recent boot seems to be the same 21 as before upgrade, but there are changes: significant changes in UI, yum commands get a deprecated warning and that they're replaced with dnf, etc and /etc/issue now shows Fedora 22.

Tried running yum-complete-transaction but get the following:

There are 1 outstanding transactions to complete. Finishing the most recent one The remaining transaction had 2814 elements left to run
--> Running transaction check
---> a long list of packages

But it doesn't run the rest of transactions, instead I got this:

Dependencies Resolved

Transaction size changed - this means we are not doing the
same transaction as we were before. Aborting and disabling
this transaction.

You could try running: package-cleanup --problems
                       package-cleanup --dupes
                       rpm -Va --nofiles --nodigest

Transaction files renamed to:
  /var/lib/yum/transaction-all.2015-06-20.06:02.49.disabled
  /var/lib/yum/transaction-done.2015-06-20.06:02.49.disabled

Would appreciated any help.

EDIT:

I did a yum upgrade:

# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-22-$(uname -i)
# yum update yum
# yum clean all
# yum --releasever=22 distro-sync

I just don't want to end up with a broken system, if cannot complete the upgrade a way to push the transactions back to before upgrade would be fine.

EDIT 2:

# package-cleanup --problems

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


Loaded plugins: langpacks, remove-with-leaves
Package compat-libcdio15-0.92-1.fc21.x86_64 has installed conflicts libcdio < ('0', '0.93', None): libcdio-0.92-4.fc21.x86_64
Package dnf-yum-1.0.0-1.fc22.noarch has installed conflicts yum < ('0', '3.4.3', '505'): yum-3.4.3-153.fc21.noarch
Package fedora-release-workstation-21-2.noarch has installed conflicts fedora-release-nonproduct: fedora-release-22-1.noarch
Package kernel-core-4.0.4-303.fc22.x86_64 has installed conflicts xorg-x11-drv-vmmouse < ('0', '13.0.99', None): xorg-x11-drv-vmmouse-13.0.0-13.fc21.x86_64
Package libreswan-3.13-1.fc22.x86_64 has installed conflicts openswan < ('0', '3.13', '1.fc22'): libreswan-3.13-1.fc21.x86_64
Package mutter-3.16.2-1.fc22.x86_64 has installed conflicts gnome-shell < ('0', '3.16.1', None): gnome-shell-3.14.4-2.fc21.x86_64
Package python-dnf-plugins-core-0.1.8-1.fc22.noarch has installed conflicts dnf-plugins-core <= ('0', '0.1.5', None): dnf-plugins-core-0.1.5-2.fc21.noarch

package-cleanup --dupes gives me a very long list, here's a few lines randomly taken:

# package-cleanup --dupes

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


Loaded plugins: langpacks, remove-with-leaves
libhbalinux-1.0.16-5.fc21.x86_64
libhbalinux-1.0.16-5.fc22.x86_64
cups-client-1.7.5-15.fc21.x86_64
cups-client-2.0.2-5.fc22.x86_64
efivar-libs-0.20-1.fc22.x86_64
efivar-libs-0.13-1.fc21.x86_64
librsync-1.0.0-1.fc21.x86_64
librsync-1.0.0-1.fc22.x86_64
gedit-plugin-multiedit-3.14.1-1.fc21.x86_64
gedit-plugin-multiedit-3.16.0-1.fc22.x86_64
rpm-plugin-selinux-4.12.0.1-9.fc22.x86_64
rpm-plugin-selinux-4.12.0.1-6.fc21.x86_64
abrt-2.5.1-3.fc22.x86_64
abrt-2.3.0-4.fc21.x86_64
libmediaart-0.7.0-1.fc21.x86_64
libmediaart-1.9.0-1.fc22.x86_64 ...
(more)
edit retag flag offensive close merge delete

Comments

So did you try running package-cleanup as recommended and if not, why not?

sideburns gravatar imagesideburns ( 2015-06-20 13:20:13 -0500 )edit

No, wasn't sure how to go about it, added the output for package-cleanup --problems and --dupes

Samurai gravatar imageSamurai ( 2015-06-20 13:47:37 -0500 )edit

Good. Now run package-cleanup --cleandupes and go off and do something else for a while because it can take a long time. It may not be all that's needed, but it will help. (BTW, it's not as bad as it seems, because it lists every dupe twice; once for F21 and once for F22.)

sideburns gravatar imagesideburns ( 2015-06-20 14:19:30 -0500 )edit

Alright did a --cleandupes, now --problems only shows the kernel: Package kernel-core-4.0.4-303.fc22.x86_64 has installed conflicts xorg-x11-drv-vmmouse < ('0', '13.0.99', None): xorg-x11-drv-vmmouse-13.0.0-13.fc21.x86_64

Samurai gravatar imageSamurai ( 2015-06-20 15:37:41 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-06-21 15:55:25 -0500

Samurai gravatar image
  1. As was suggested by @sideburns did a package-cleanup --cleandupes to get rid of the fc21 duplicates.
  2. Ran dnf --releasever=22 distro-sync to install the few hundred packages which were left out of the upgrade transaction.
  3. System was still booting with the last fc21 installed kernel, so updated grub and everything seemed to work fine:
    grub2-mkconfig -o /boot/grub2/grub.cfg
edit flag offensive delete link more
0

answered 2015-06-20 10:26:56 -0500

espasmo gravatar image

fedup It stopped working ?

edit flag offensive delete link more

Comments

I didn't do a fedup upgrade, but a yum upgrade from here

Samurai gravatar imageSamurai ( 2015-06-20 13:09:31 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-20 08:57:48 -0500

Seen: 2,149 times

Last updated: Jun 21 '15