F22: Interrupted system update
Germán A. Racca
german.racca at gmail.com
Tue Oct 27 13:10:24 UTC 2015
On 10/27/2015 09:28 AM, Sam Varshavchik wrote:
> 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.
>
Hi Sam, thanks for your message. After fsck and reboot, I did:
# rpm --rebuilddb
which finished without errors. Then I verified the versions of dnf:
# rpm -q dnf
dnf-1.1.1-2.fc22.noarch
dnf-1.1.3-1.fc22.noarch
and verified the newer version of the package:
# rpm -V dnf-1.1.3-1.fc22.noarch
so I removed the older version:
# rpm -e --nodeps dnf-1.1.1-2.fc22.noarch
The problem is with systemd, which is NOT duplicated:
# rpm -q systemd
systemd-219-24.fc22.x86_64
# rpm -V systemd
S.5....T. c /etc/sysctl.conf
.M....... /var/log/journal
Then again:
# rpm --rebuilddb
and I tried to remove duplicated packages:
# dnf remove $(dnf repoquery --duplicated --latest-limit -1 -q)
Dependencies resolved.
Error: The operation would result in removing the following protected
packages: systemd, dnf.
but it insists in removing systemd and dnf again.
How can I proceed next?
Many thanks,
German.
--
Germán A. Racca
Fedora Package Maintainer
https://fedoraproject.org/wiki/User:Skytux
More information about the users
mailing list