FedoraForum.org - Fedora Support Forums and Community
Page 2 of 2 FirstFirst 1 2
Results 16 to 28 of 28
  1. #16
    Join Date
    Nov 2006
    Posts
    111

    Re: f25 to f26 almost (blocked by protected packages)

    yep, tried that as well still no joy.

  2. #17
    Join Date
    Nov 2006
    Posts
    111

    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

  3. #18
    Join Date
    Aug 2017
    Location
    Greece
    Posts
    72

    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

  4. #19
    Join Date
    Oct 2011
    Posts
    1,614

    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

  5. #20
    Join Date
    Nov 2006
    Posts
    111

    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

  6. #21
    Join Date
    Nov 2006
    Posts
    111

    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?

  7. #22
    Join Date
    Oct 2011
    Posts
    1,614

    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)

  8. #23
    Join Date
    Nov 2006
    Posts
    111

    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

  9. #24
    Join Date
    Oct 2011
    Posts
    1,614

    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.

  10. #25
    Join Date
    Nov 2006
    Posts
    111

    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

  11. #26
    Join Date
    Oct 2011
    Posts
    1,614

    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)

  12. #27
    Join Date
    Nov 2006
    Posts
    111

    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

  13. #28
    Join Date
    Aug 2017
    Location
    Greece
    Posts
    72

    Re: f25 to f26 almost (blocked by protected packages)

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

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Protected RPM package
    By COKEDUDE in forum Using Fedora
    Replies: 3
    Last Post: 20th February 2014, 08:33 PM
  2. USB write protected
    By abijithkp in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 24th January 2013, 01:12 PM
  3. .dev.sr0 is write protected
    By Quickdn2k in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 19th January 2013, 05:01 PM
  4. Replies: 3
    Last Post: 8th April 2009, 09:39 PM
  5. Is Fedora protected??
    By mickeyboy in forum Using Fedora
    Replies: 5
    Last Post: 10th November 2006, 11:41 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •