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.
This is the list of duplicated packages (output of 'dnf repoquery
--duplicated'):
http://paste.fedoraproject.org/284073/95094514/
--
Germán A. Racca
Fedora Package Maintainer
https://fedoraproject.org/wiki/User:Skytux
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org