F22: Interrupted system update

Sam Varshavchik mrsam at courier-mta.com
Tue Oct 27 12:28:45 UTC 2015


Germán A. Racca writes:

> Hi guys, I have this situation: I was updating my Fedora 22 at the  
> university, but there was a power outage and the update didn't finish.  
> Hopefully, I was able to boot the machine and even to login into Gnome, but  
> now it is impossible to continue with the update using dnf upgrade.
>
> I tried package-cleanup --cleandupes, but it didn't work because it wanted  
> to remove systemd and dnf, which are protected packages and are duplicated.
>
> Running dnf remove $(dnf repoquery --duplicated --latest-limit -1 -q) also  
> gives the same result: "Error: The operation would result in removing the  
> following protected packages: systemd, dnf".
>
> My question is: can I safely remove the lower versions of systemd and dnf  
> with rpm -e and then proceed with cleaning duplicates and continue to update  
> in the usual way, or how should I proceed?

Before you can even think of repairing the software package set, you need to  
verify the integrity of your filesystem and the RPM database.

touch /forcefsck

then reboot. The reboot will fsck all your partitions. Trying to fix your  
software packages is a wasted effort, if you discover later that your  
filesystem is corrupt.

After the reboot, run

rpm --rebuilddb

to rebuild the rpm database. Afterwards, run rpm -V against the NEWER  
version of systemd and dnf packages. Only if rpm -V gives a clean bill of  
health would it be safe to forcefully remove the older versions from systemd  
and dnf.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20151027/713f500d/attachment.sig>


More information about the users mailing list