Re: F22: Interrupted system update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux