PDA

View Full Version : [SOLVED] f25 to f26 almost (blocked by protected packages)



lambcutlet
26th August 2017, 11:22 AM
Hi, need some help to resolve an issue that occurred during upgrade from 25 to 26.
the upgrade was almost successful but it seems to be stuck between the two versions preventing the desktop from running.
in an attempt to correct by running various dnf commands i am always hampered by this 'protected packages: systemd, systemd-udev'

dnf distro-sync
Last metadata expiration check: 0:08:16 ago on Sat 26 Aug 2017 10:57:20 BST.
Error:
Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
Segmentation fault (core dumped)

both f25 & f26 versions are installed on the system

rpm -qa systemd-udev
systemd-udev-233-6.fc26.x86_64
systemd-udev-231-17.fc25.x86_64
rpm -qa systemd
systemd-231-17.fc25.x86_64
systemd-233-6.fc26.x86_64

however the operating system seems to be using the fc25 version
how do i change 'systemd' & 'systemd-udev' to run the fc26 version?

AlexTheoto
28th August 2017, 09:57 AM
Did you try https://fedoraproject.org/wiki/DNF_system_upgrade#Clean_up_old_packages ?
or try to remove the fc25

dnf remove systemd-231-17.fc25.x86_64 systemd-udev-233-6.fc26.x86_64
but read what other files will remove.

lambcutlet
29th August 2017, 07:46 PM
AlexTheoto, thanks for the reply. The link you posted was the first resource i tried to resolve my issue

rpm --rebuilddb, dnf distro-sync, etc.
unfortunately the guide doesn't work for this situation
I'm still looking for an answer

donatom
29th August 2017, 09:38 PM
I suppose you (carefully) tried this already:



A stronger variant also allows to remove package for which package dependencies can't be satisfied. Always carefully review which packages are going to be removed before confirming this:

$ sudo dnf distro-sync --allowerasing

donatom
29th August 2017, 09:56 PM
By the way, I had the exact same problem and rebuilding the rpm data base seemed to do the trick. But after "resolving" the problem, I noticed that my system was still in Fedora 25, not Fedora 26. I ended up doing a clean install of Fedora 26. Hopefully you fare better.

AlexTheoto
30th August 2017, 02:01 PM
What's the output of

dnf repolist
cat /etc/*release

lambcutlet
30th August 2017, 09:56 PM
AlexTheoto, this is getting weirder, whilst trying 'dnf upgrade' today i see Fedora 25 but i have seen Fedora 26 as the repo source on previous occasions. Thinking about it that was when i was trying 'dnf --releasever=26 upgrade', an attempt to force the update to f26.
anyway here you go

# dnf repolist
Last metadata expiration check: 1 day, 1:51:55 ago on Tue 29 Aug 2017 19:37:06 BST.
repo id repo name status
adobe-linux-x86_64 Adobe Systems Incorporated 3
*fedora Fedora 25 - x86_64 51,669
*rpmfusion-free RPM Fusion for Fedora 25 - Free 541
*rpmfusion-free-updates RPM Fusion for Fedora 25 - Free - Updates 232
*rpmfusion-nonfree RPM Fusion for Fedora 25 - Nonfree 169
*rpmfusion-nonfree-updates RPM Fusion for Fedora 25 - Nonfree - Updates 56
*updates Fedora 25 - x86_64 - Updates 21,210


# cat /etc/*release
Fedora release 26 (Twenty Six)
NAME=Fedora
VERSION="26 (Workstation Edition)"
ID=fedora
VERSION_ID=26
PRETTY_NAME="Fedora 26 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:26"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=26
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=26
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Fedora release 26 (Twenty Six)
Fedora release 26 (Twenty Six)

AlexTheoto
31st August 2017, 09:10 AM
Your repositories are stuck on version 25. That's the problem.
I don't know how to change the version but try:

dnf clean all
dnf upgrade --releasever=26

and then again check if your repo are updated with

dnf repolist

lambcutlet
31st August 2017, 09:06 PM
AlexTheoto, its not good repolist resorts to f25
the weekend is nearing so i may give in and install from scratch unless you have any more suggestions i could try.
With all my searching oddly i haven't found anyone with a similar story


# dnf clean all
82 files removed

# dnf upgrade --releasever=26
Adobe Systems Incorporated 15 kB/s | 1.9 kB 00:00
Fedora 26 - x86_64 - Updates 1.6 MB/s | 11 MB 00:07
Fedora 26 - x86_64 1.5 MB/s | 53 MB 00:36
RPM Fusion for Fedora 26 - Free - Updates 610 kB/s | 207 kB 00:00
RPM Fusion for Fedora 26 - Free 924 kB/s | 519 kB 00:00
RPM Fusion for Fedora 26 - Nonfree - Updates 32 kB/s | 5.2 kB 00:00
RPM Fusion for Fedora 26 - Nonfree 480 kB/s | 158 kB 00:00
Last metadata expiration check: 0:00:00 ago on Thu 31 Aug 2017 20:56:21 BST.
Dependencies resolved.
Nothing to do.
Complete!

# dnf repolist
Fedora 25 - x86_64 - Updates 1.5 MB/s | 25 MB 00:16
Fedora 25 - x86_64 1.5 MB/s | 50 MB 00:33
RPM Fusion for Fedora 25 - Free - Updates 743 kB/s | 356 kB 00:00
RPM Fusion for Fedora 25 - Free 805 kB/s | 515 kB 00:00
RPM Fusion for Fedora 25 - Nonfree - Updates 191 kB/s | 41 kB 00:00
RPM Fusion for Fedora 25 - Nonfree 459 kB/s | 144 kB 00:00
Last metadata expiration check: 0:00:00 ago on Thu 31 Aug 2017 20:58:24 BST.
repo id repo name status
adobe-linux-x86_64 Adobe Systems Incorporated 3
*fedora Fedora 25 - x86_64 51,669
*rpmfusion-free RPM Fusion for Fedora 25 - Free 541
*rpmfusion-free-updates RPM Fusion for Fedora 25 - Free - Updates 232
*rpmfusion-nonfree RPM Fusion for Fedora 25 - Nonfree 169
*rpmfusion-nonfree-updates RPM Fusion for Fedora 25 - Nonfree - Updates 56
*updates Fedora 25 - x86_64 - Updates 21,225

lambcutlet
31st August 2017, 10:22 PM
I might be getting closer now
i found this https://ask.fedoraproject.org/en/question/35074/restore-fedora-official-repository-files/
in this link there are references to
# yum reinstall fedora-release and this
# dnf -y reinstall fedora-repos-*.noarch.rpm
so i thought why not
first off i tried
# dnf reinstall fedora-release --releasever=26
Last metadata expiration check: 0:00:00 ago on Thu 31 Aug 2017 21:52:27 BST.
Dependencies resolved.
================================================== ================================================== =====
Package Arch Version Repository Size
================================================== ================================================== =====
Reinstalling:
fedora-release noarch 26-1 fedora 26 k
replacing fedora-release.noarch 25-2
Removing depended packages:
fedora-repos noarch 25-4 @updates 96 k
rpmfusion-free-release noarch 25-2 @rpmfusion-free-updates 13 k
rpmfusion-nonfree-release noarch 25-2 @rpmfusion-nonfree-updates 13 k

Transaction Summary
================================================== ================================================== =====

Total download size: 26 k
Is this ok [y/N]: y
Downloading Packages:
fedora-release-26-1.noarch.rpm 125 kB/s | 26 kB 00:00
---------------------------------------------------------------------------------------------------------
Total 25 kB/s | 26 kB 00:01
Running transaction check
Error: transaction check vs depsolve:
fedora-repos(25) is needed by (installed) fedora-release-25-2.noarch
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

then
# dnf reinstall fedora-release fedora-repos --releasever=26
Last metadata expiration check: 0:02:49 ago on Thu 31 Aug 2017 21:52:27 BST.
Dependencies resolved.
================================================== ================================================== =====
Package Arch Version Repository Size
================================================== ================================================== =====
Reinstalling:
fedora-release noarch 26-1 fedora 26 k
replacing fedora-release.noarch 25-2
fedora-repos noarch 26-1 fedora 93 k
replacing fedora-repos.noarch 25-4
Removing depended packages:
rpmfusion-free-release noarch 25-2 @rpmfusion-free-updates 13 k
rpmfusion-nonfree-release noarch 25-2 @rpmfusion-nonfree-updates 13 k

Transaction Summary
================================================== ================================================== =====

Total size: 119 k
Total download size: 93 k
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] fedora-release-26-1.noarch.rpm: Already downloaded
(2/2): fedora-repos-26-1.noarch.rpm 165 kB/s | 93 kB 00:00
---------------------------------------------------------------------------------------------------------
Total 59 kB/s | 93 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /etc/yum.repos.d/fedora-cisco-openh264.repo from install of fedora-repos-26-1.noarch conflicts with file from package fedora-repos-25-4.noarch
file /etc/yum.repos.d/fedora-updates.repo from install of fedora-repos-26-1.noarch conflicts with file from package fedora-repos-25-4.noarch
file /etc/yum.repos.d/fedora.repo from install of fedora-repos-26-1.noarch conflicts with file from package fedora-repos-25-4.noarch
file /etc/fedora-release from install of fedora-release-26-1.noarch conflicts with file from package fedora-release-25-2.noarch
file /etc/system-release-cpe from install of fedora-release-26-1.noarch conflicts with file from package fedora-release-25-2.noarch
file /usr/lib/os.release.d/os-release-fedora from install of fedora-release-26-1.noarch conflicts with file from package fedora-release-25-2.noarch
file /usr/lib/rpm/macros.d/macros.dist from install of fedora-release-26-1.noarch conflicts with file from package fedora-release-25-2.noarch
file /usr/lib/systemd/system-preset/90-default.preset from install of fedora-release-26-1.noarch conflicts with file from package fedora-release-25-2.noarch
file /usr/share/licenses/fedora-release/Fedora-Legal-README.txt from install of fedora-release-26-1.noarch conflicts with file from package fedora-release-25-2.noarch

Error Summary
-------------


As both f25 & f26 repos were installed i decided to erase the f25 ones

# dnf erase fedora-release-25-2 fedora-repos-25-4
Dependencies resolved.
================================================== ================================================== =====
Package Arch Version Repository Size
================================================== ================================================== =====
Removing:
fedora-release noarch 25-2 @updates 10 k
fedora-repos noarch 25-4 @updates 96 k
Removing depended packages:
rpmfusion-free-release noarch 25-2 @rpmfusion-free-updates 13 k
rpmfusion-nonfree-release noarch 25-2 @rpmfusion-nonfree-updates 13 k

Transaction Summary
================================================== ================================================== =====
Remove 2 Packages

Freed space: 132 k
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Running scriptlet: None 1/1
Preparing : 1/1
Erasing : rpmfusion-nonfree-release-25-2.noarch 1/4
Erasing : rpmfusion-free-release-25-2.noarch 2/4
Erasing : fedora-repos-25-4.noarch 3/4
Erasing : fedora-release-25-2.noarch 4/4
Running scriptlet: fedora-release-25-2.noarch 4/4
Verifying : fedora-repos-25-4.noarch 1/4
Verifying : fedora-release-25-2.noarch 2/4
Verifying : rpmfusion-nonfree-release-25-2.noarch 3/4
Verifying : rpmfusion-free-release-25-2.noarch 4/4

Removed:
fedora-release.noarch 25-2 fedora-repos.noarch 25-4 rpmfusion-free-release.noarch 25-2
rpmfusion-nonfree-release.noarch 25-2

Complete!

so now when i perform 'dnf repolist' Fedora 26 repos are used.

# dnf repolist
Last metadata expiration check: 0:06:01 ago on Thu 31 Aug 2017 21:52:27 BST.
repo id repo name status
adobe-linux-x86_64 Adobe Systems Incorporated 3
*fedora Fedora 26 - x86_64 53,912
*rpmfusion-free RPM Fusion for Fedora 26 - Free 536
*rpmfusion-free-updates RPM Fusion for Fedora 26 - Free - Updates 92
*rpmfusion-nonfree RPM Fusion for Fedora 26 - Nonfree 202
*rpmfusion-nonfree-updates RPM Fusion for Fedora 26 - Nonfree - Updates 9
*updates Fedora 26 - x86_64 - Updates 7,156
*updates-testing Fedora 26 - x86_64 - Test Updates 1,764

lambcutlet
31st August 2017, 10:29 PM
part 2

almost there i thought, 'dnf upgrade' no longer complains however 'dnf distro-sync' still has a moan with 'protected packages:'
# dnf distro-sync
Adobe Systems Incorporated 15 kB/s | 1.9 kB 00:00
Fedora 26 - x86_64 - Test Updates 1.4 MB/s | 4.1 MB 00:02
Fedora 26 - x86_64 - Updates 1.1 MB/s | 11 MB 00:10
Fedora 26 - x86_64 987 kB/s | 53 MB 00:55
RPM Fusion for Fedora 26 - Free - Updates 618 kB/s | 207 kB 00:00
RPM Fusion for Fedora 26 - Free 960 kB/s | 519 kB 00:00
RPM Fusion for Fedora 26 - Nonfree - Updates 34 kB/s | 5.2 kB 00:00
RPM Fusion for Fedora 26 - Nonfree 535 kB/s | 158 kB 00:00
Last metadata expiration check: 0:00:00 ago on Thu 31 Aug 2017 22:17:19 BST.
Error:
Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
Segmentation fault (core dumped)

How to resolve the protected packages: systemd & systemd-udev?

AlexTheoto
1st September 2017, 07:29 AM
I've made a nspawn container with version 25 and I was able to upgrade the distro. Try

dnf clean all
dnf --releasever=26 distro-sync

There is no 'fedora-release' on dnf man page.

EDIT: There is another dirty workaround here. (https://forums.fedoraforum.org/showpost.php?p=1793724&postcount=8) but you have to apply in all repositories.

lambcutlet
1st September 2017, 09:45 AM
AlexTheoto,

as my initial post shows systemd packages are protected and continue to be.
previous to this pc i had successfully upgraded another pc and laptop from f25 to f26, so i didn't anticipate any issues.
just for fun i'm going to try the dirty fix

# dnf clean all
66 files removed
[root@mythtvserver ~] # dnf --releasever=26 distro-sync
Adobe Systems Incorporated 15 kB/s | 1.9 kB 00:00
Fedora 26 - x86_64 - Test Updates 1.6 MB/s | 4.1 MB 00:02
Fedora 26 - x86_64 - Updates 1.2 MB/s | 12 MB 00:09
Fedora 26 - x86_64 1.7 MB/s | 53 MB 00:30
RPM Fusion for Fedora 26 - Free - Updates 643 kB/s | 207 kB 00:00
RPM Fusion for Fedora 26 - Free 1.0 MB/s | 519 kB 00:00
RPM Fusion for Fedora 26 - Nonfree - Updates 35 kB/s | 5.2 kB 00:00
RPM Fusion for Fedora 26 - Nonfree 556 kB/s | 158 kB 00:00
Last metadata expiration check: 0:00:00 ago on Fri 01 Sep 2017 09:38:47 BST.
Error:
Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
Segmentation fault (core dumped)
[root@mythtvserver ~] # rpm -qa | grep systemd
rpm-plugin-systemd-inhibit-4.13.0.1-7.fc26.x86_64
systemd-pam-231-17.fc25.x86_64
systemd-231-17.fc25.x86_64
systemd-udev-231-17.fc25.x86_64
libreport-plugin-systemd-journal-2.9.1-2.fc26.x86_64
systemd-container-233-6.fc26.x86_64
systemd-pam-233-6.fc26.x86_64
systemd-bootchart-231-3.fc26.x86_64
python-systemd-doc-232-1.fc25.x86_64
systemd-libs-233-6.fc26.x86_64
systemd-udev-233-6.fc26.x86_64
python2-systemd-234-1.fc26.x86_64
python3-systemd-234-1.fc26.x86_64
systemd-233-6.fc26.x86_64
python-systemd-doc-234-1.fc26.x86_64
systemd-libs-231-17.fc25.x86_64

lambcutlet
1st September 2017, 09:57 AM
here we go
originally the metalink was used, so i modified the baseurl with release version and base architecture

# nano /etc/yum.repos.d/fedora-updates.repo

baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/26/x86_64/
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch

the result, packages protected

# dnf clean all
60 files removed
# dnf --releasever=26 distro-sync
Adobe Systems Incorporated 14 kB/s | 1.9 kB 00:00
Fedora 26 - x86_64 - Test Updates 1.6 MB/s | 4.1 MB 00:02
Fedora 26 - x86_64 - Updates 1.6 MB/s | 12 MB 00:07
Fedora 26 - x86_64 1.7 MB/s | 53 MB 00:30
RPM Fusion for Fedora 26 - Free - Updates 645 kB/s | 207 kB 00:00
RPM Fusion for Fedora 26 - Free 1.0 MB/s | 519 kB 00:00
RPM Fusion for Fedora 26 - Nonfree - Updates 34 kB/s | 5.2 kB 00:00
RPM Fusion for Fedora 26 - Nonfree 528 kB/s | 158 kB 00:00
Last metadata expiration check: 0:00:00 ago on Fri 01 Sep 2017 09:50:40 BST.
Error:
Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
Segmentation fault (core dumped)

what protects these packages? is it selinux?

AlexTheoto
1st September 2017, 05:10 PM
Maybe you are right. Maybe selinux block you.
Try as root

touch /.autorelabel
reboot

lambcutlet
1st September 2017, 08:19 PM
yep, tried that as well still no joy.

lambcutlet
1st September 2017, 08:24 PM
its not selinux, i have it disabled

# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

AlexTheoto
2nd September 2017, 06:26 AM
I'm out of ideas. I'm sorry. One last suggestion is to check systemd* permissions. I'll show you mine to see if there is any difference.

ls -lZ /usr/bin/system*
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 15560 Jun 16 12:41 system-config-abrt
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 69 Feb 12 2017 system-config-keyboard
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 87 Jul 1 20:31 system-config-language
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 81 Feb 12 2017 system-config-users
-rwxr-xr-x. 1 root root system_u:object_r:systemd_systemctl_exec_t:s0 188936 Jun 28 00:49 systemctl
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 1096488 Jun 28 00:49 systemd-analyze
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 11608 Jun 28 00:49 systemd-ask-password
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 11592 Jun 28 00:49 systemd-cat
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 15712 Jun 28 00:49 systemd-cgls
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 32216 Jun 28 00:49 systemd-cgtop
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 23928 Jun 28 00:49 systemd-delta
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 11400 Jun 28 00:49 systemd-detect-virt
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 15696 Jun 28 00:49 systemd-escape
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 32248 Jun 28 00:49 systemd-firstboot
-rwxr-xr-x. 1 root root system_u:object_r:systemd_hwdb_exec_t:s0 86880 Jun 28 00:49 systemd-hwdb
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 15704 Jun 28 00:49 systemd-inhibit
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 19856 Jun 28 00:49 systemd-machine-id-setup
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 36320 Jun 28 00:49 systemd-mount
-rwxr-xr-x. 1 root root system_u:object_r:systemd_notify_exec_t:s0 15696 Jun 28 00:49 systemd-notify
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 193256 Jun 28 00:49 systemd-nspawn
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 15680 Jun 28 00:49 systemd-path
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 85800 Jun 28 00:49 systemd-resolve
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 44584 Jun 28 00:49 systemd-run
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 23936 Jun 28 00:49 systemd-socket-activate
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 15696 Jun 28 00:49 systemd-stdio-bridge
-rwxr-xr-x. 1 root root system_u:object_r:bin_t:s0 44720 Jun 28 00:49 systemd-sysusers
-rwxr-xr-x. 1 root root system_u:object_r:systemd_tmpfiles_exec_t:s0 61136 Jun 28 00:49 systemd-tmpfiles
-rwxr-xr-x. 1 root root system_u:object_r:systemd_passwd_agent_exec_t:s0 32176 Jun 28 00:49 systemd-tty-ask-password-agent
lrwxrwxrwx. 1 root root system_u:object_r:bin_t:s0 13 Jun 28 00:48 systemd-umount -> systemd-mount

srakitnican
2nd September 2017, 08:05 AM
Hi,

Please output of commands

$ sudo dnf repoquery --duplicated
$ rpm -qV dnf dnf-conf dnf-plugins-core python2-dnf python3-dnf

lambcutlet
2nd September 2017, 09:13 AM
AlexTheoto,
# ls -lZ /usr/bin/system*
-rwxr-xr-x 1 root root ? 15560 Jun 16 10:41 /usr/bin/system-config-abrt
-rwxr-xr-x 1 root root ? 69 Feb 12 2017 /usr/bin/system-config-keyboard
-rwxr-xr-x 1 root root ? 87 Jul 1 18:31 /usr/bin/system-config-language
-rwxr-xr-x 1 root root ? 81 Feb 12 2017 /usr/bin/system-config-users
-rwxr-xr-x 1 root root ? 188936 Jun 27 22:49 /usr/bin/systemctl
-rwxr-xr-x 1 root root ? 1096488 Jun 27 22:49 /usr/bin/systemd-analyze
-rwxr-xr-x 1 root root ? 11608 Jun 27 22:49 /usr/bin/systemd-ask-password
-rwxr-xr-x 1 root root ? 11592 Jun 27 22:49 /usr/bin/systemd-cat
-rwxr-xr-x 1 root root ? 15712 Jun 27 22:49 /usr/bin/systemd-cgls
-rwxr-xr-x 1 root root ? 32216 Jun 27 22:49 /usr/bin/systemd-cgtop
-rwxr-xr-x 1 root root ? 23928 Jun 27 22:49 /usr/bin/systemd-delta
-rwxr-xr-x 1 root root ? 11400 Jun 27 22:49 /usr/bin/systemd-detect-virt
-rwxr-xr-x 1 root root ? 15696 Jun 27 22:49 /usr/bin/systemd-escape
-rwxr-xr-x 1 root root ? 32248 Jun 27 22:49 /usr/bin/systemd-firstboot
-rwxr-xr-x 1 root root ? 86880 Jun 27 22:49 /usr/bin/systemd-hwdb
-rwxr-xr-x 1 root root ? 15704 Jun 27 22:49 /usr/bin/systemd-inhibit
-rwxr-xr-x 1 root root ? 19856 Jun 27 22:49 /usr/bin/systemd-machine-id-setup
-rwxr-xr-x 1 root root ? 36320 Jun 27 22:49 /usr/bin/systemd-mount
-rwxr-xr-x 1 root root ? 15696 Jun 27 22:49 /usr/bin/systemd-notify
-rwxr-xr-x 1 root root ? 193256 Jun 27 22:49 /usr/bin/systemd-nspawn
-rwxr-xr-x 1 root root ? 15680 Jun 27 22:49 /usr/bin/systemd-path
-rwxr-xr-x 1 root root ? 85800 Jun 27 22:49 /usr/bin/systemd-resolve
-rwxr-xr-x 1 root root ? 44584 Jun 27 22:49 /usr/bin/systemd-run
-rwxr-xr-x 1 root root ? 23936 Jun 27 22:49 /usr/bin/systemd-socket-activate
-rwxr-xr-x 1 root root ? 15696 Jun 27 22:49 /usr/bin/systemd-stdio-bridge
-rwxr-xr-x 1 root root ? 44720 Jun 27 22:49 /usr/bin/systemd-sysusers
-rwxr-xr-x 1 root root ? 61136 Jun 27 22:49 /usr/bin/systemd-tmpfiles
-rwxr-xr-x 1 root root ? 32176 Jun 27 22:49 /usr/bin/systemd-tty-ask-password-agent
lrwxrwxrwx 1 root root ? 13 Jun 27 22:48 /usr/bin/systemd-umount -> systemd-mount
-rwxr-xr-x 1 root root ? 124184 Aug 24 21:58 /usr/bin/systemsettings5

Ah there is a difference here I have a '?' whereas you have 'system_u:object_r:bin_t:s0'
I'm not sure how to deal with that?

As an extra I have noticed this
# systemctl --version
systemd 233
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN default-hierarchy=hybrid

it appears to be running the correct version of systemd '233' however the previous version '231' remains pervasive

# rpm -qa | grep 233
systemd-container-233-6.fc26.x86_64
systemd-libs-233-6.fc26.x86_64
systemd-pam-233-6.fc26.x86_64
systemd-udev-233-6.fc26.x86_64
systemd-233-6.fc26.x86_64

# rpm -qa | grep 231
systemd-udev-231-17.fc25.x86_64
systemd-bootchart-231-3.fc26.x86_64
gpg-pubkey-9690e4af-582f231f
systemd-libs-231-17.fc25.x86_64
systemd-231-17.fc25.x86_64
systemd-pam-231-17.fc25.x86_64

lambcutlet
2nd September 2017, 09:22 AM
srakitnican,
here's a pastebin link to the duplicates, preview post complained about too many characters (42977 vs 10000 limit)
https://pastebin.com/ayhnv2kU
and

# rpm -qV dnf dnf-conf dnf-plugins-core python2-dnf python3-dnf
S.5...... c /etc/dnf/dnf.conf
S.5...... c /etc/dnf/dnf.conf
S.5...... d /usr/share/doc/dnf/AUTHORS
..5...... d /usr/share/doc/dnf/README.rst
S.5...... d /usr/share/man/man5/dnf.conf.5.gz

not sure where you are going with this information?

srakitnican
2nd September 2017, 10:06 AM
So what happened is that package manager is left in an unfinished state when it was interrupted. Duplicate packages you see should not be present, only one version of the same package and architecture is allowed to be installed at a time.
You might wanna do a backup of important stuff to you before we proceed because system might not be accessible in a convenient way, only through mounting from rescue system etc.


Please post output of following command, don't accept it yet if you are not sure that it will not break the system.

$ sudo dnf --disableplugin=protected_packages remove $(sudo dnf repoquery --duplicated --latest-limit 1 -q | grep -v i686)

lambcutlet
2nd September 2017, 10:19 AM
backup already performed

# dnf --disableplugin=protected_packages remove $(sudo dnf repoquery --duplicated --latest-limit 1 -q | grep -v i686)
Error:
Problem 1: The operation would result in removing the following protected packages: dnf, sudo
Problem 2: The operation would result in removing the following protected packages: dnf, sudo

srakitnican
2nd September 2017, 10:25 AM
Hmm seems like you have dnf 2 installed. Try the following, same as before don't accept.


$ sudo dnf --setopt=protected_packages= remove $(sudo dnf repoquery --duplicated --latest-limit 1 -q | grep -v i686)


EDIT: You can also try the following


$ sudo dnf remove --duplicates
And then post output of both commands.

lambcutlet
2nd September 2017, 10:53 AM
# dnf --setopt=protected_packages= remove $(dnf repoquery --duplicated --latest-limit 1 -q | grep -v i686)
Error:
Problem: The operation would result in removing the following protected packages: kernel-core

# dnf remove --duplicates
Error:
Problem: The operation would result in removing the following protected packages: systemd, systemd-udev

srakitnican
2nd September 2017, 11:18 AM
Try the second command but with "--setopt=protected_packages=" option added. Or else try with


$ sudo dnf --setopt=protected_packages= remove $(dnf repoquery --duplicated --latest-limit=-1 -q)

lambcutlet
2nd September 2017, 12:13 PM
# dnf --setopt=protected_packages= remove $(dnf repoquery --duplicated --latest-limit=-1 -q)interesting its asking to remove 576 packages
and off we go, it reported back 'Complete!'

reboot -> login -> dnf clean all -> dnf distro-sync

and no complaints about protected packages

fantastic :D
thankyou all for your help

AlexTheoto
2nd September 2017, 07:01 PM
If your problem is solved please mark your thread from 'Thread tools'