Fedora Linux Support Community & Resources Center
  #16  
Old 1st September 2017, 08:19 PM
lambcutlet Offline
Registered User
 
Join Date: Nov 2006
Posts: 111
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

yep, tried that as well still no joy.
Reply With Quote
  #17  
Old 1st September 2017, 08:24 PM
lambcutlet Offline
Registered User
 
Join Date: Nov 2006
Posts: 111
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

its not selinux, i have it disabled
Code:
# 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
Reply With Quote
  #18  
Old 2nd September 2017, 06:26 AM
AlexTheoto Offline
Registered User
 
Join Date: Aug 2017
Location: Greece
Posts: 50
linuxfedorafirefox
Re: f25 to f26 almost (blocked by protected packages)

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.
Code:
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
Reply With Quote
  #19  
Old 2nd September 2017, 08:05 AM
srakitnican Offline
Registered User
 
Join Date: Oct 2011
Posts: 1,540
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

Hi,

Please output of commands
Code:
$ sudo dnf repoquery --duplicated
$ rpm -qV dnf dnf-conf dnf-plugins-core python2-dnf python3-dnf
Reply With Quote
  #20  
Old 2nd September 2017, 09:13 AM
lambcutlet Offline
Registered User
 
Join Date: Nov 2006
Posts: 111
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

AlexTheoto,
Code:
# 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
Code:
# 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
Code:
# 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
Reply With Quote
  #21  
Old 2nd September 2017, 09:22 AM
lambcutlet Offline
Registered User
 
Join Date: Nov 2006
Posts: 111
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

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
Code:
# 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?
Reply With Quote
  #22  
Old 2nd September 2017, 10:06 AM
srakitnican Offline
Registered User
 
Join Date: Oct 2011
Posts: 1,540
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

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.
Code:
$ sudo dnf --disableplugin=protected_packages remove $(sudo dnf repoquery --duplicated --latest-limit 1 -q | grep -v i686)
Reply With Quote
  #23  
Old 2nd September 2017, 10:19 AM
lambcutlet Offline
Registered User
 
Join Date: Nov 2006
Posts: 111
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

backup already performed
Code:
# 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
Reply With Quote
  #24  
Old 2nd September 2017, 10:25 AM
srakitnican Offline
Registered User
 
Join Date: Oct 2011
Posts: 1,540
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

Hmm seems like you have dnf 2 installed. Try the following, same as before don't accept.

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

EDIT: You can also try the following

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

Last edited by srakitnican; 2nd September 2017 at 10:39 AM.
Reply With Quote
  #25  
Old 2nd September 2017, 10:53 AM
lambcutlet Offline
Registered User
 
Join Date: Nov 2006
Posts: 111
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

Code:
# 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
Reply With Quote
  #26  
Old 2nd September 2017, 11:18 AM
srakitnican Offline
Registered User
 
Join Date: Oct 2011
Posts: 1,540
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

Try the second command but with "--setopt=protected_packages=" option added. Or else try with

Code:
$ sudo dnf --setopt=protected_packages= remove $(dnf repoquery --duplicated --latest-limit=-1 -q)
Reply With Quote
  #27  
Old 2nd September 2017, 12:13 PM
lambcutlet Offline
Registered User
 
Join Date: Nov 2006
Posts: 111
linuxchrome
Re: f25 to f26 almost (blocked by protected packages)

Code:
# 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
thankyou all for your help
Reply With Quote
  #28  
Old 2nd September 2017, 07:01 PM
AlexTheoto Offline
Registered User
 
Join Date: Aug 2017
Location: Greece
Posts: 50
linuxfedorafirefox
Re: f25 to f26 almost (blocked by protected packages)

If your problem is solved please mark your thread from 'Thread tools'
Reply With Quote
Reply

Tags
blocked, f25, f26, packages, protected

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Protected RPM package COKEDUDE Using Fedora 3 20th February 2014 08:33 PM
USB write protected abijithkp Installation, Upgrades and Live Media 1 24th January 2013 01:12 PM
.dev.sr0 is write protected Quickdn2k Installation, Upgrades and Live Media 6 19th January 2013 05:01 PM
How do you tell yum-protected-packages to lock down a package? bjrosen Using Fedora 3 8th April 2009 09:39 PM
Is Fedora protected?? mickeyboy Using Fedora 5 10th November 2006 11:41 AM


Current GMT-time: 09:52 (Monday, 25-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat