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

    f25 to f26 almost (blocked by protected packages)

    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'
    Code:
    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
    Code:
    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?

  2. #2
    Join Date
    Aug 2017
    Location
    Greece
    Posts
    72

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

    Did you try https://fedoraproject.org/wiki/DNF_s...p_old_packages ?
    or try to remove the fc25
    Code:
    dnf remove systemd-231-17.fc25.x86_64 systemd-udev-233-6.fc26.x86_64
    but read what other files will remove.
    Last edited by AlexTheoto; 30th August 2017 at 01:56 PM. Reason: typo

  3. #3
    Join Date
    Nov 2006
    Posts
    111

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

    AlexTheoto, thanks for the reply. The link you posted was the first resource i tried to resolve my issue
    Code:
    rpm --rebuilddb, dnf distro-sync, etc.
    unfortunately the guide doesn't work for this situation
    I'm still looking for an answer

  4. #4
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    155

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

    I suppose you (carefully) tried this already:


    Quote Originally Posted by https://fedoraproject.org/wiki/DNF_system_upgrade#Clean_up_old_packages
    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

  5. #5
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    155

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

    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.

  6. #6
    Join Date
    Aug 2017
    Location
    Greece
    Posts
    72

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

    What's the output of
    Code:
    dnf repolist
    cat /etc/*release

  7. #7
    Join Date
    Nov 2006
    Posts
    111

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

    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
    Code:
    # 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)

  8. #8
    Join Date
    Aug 2017
    Location
    Greece
    Posts
    72

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

    Your repositories are stuck on version 25. That's the problem.
    I don't know how to change the version but try:
    Code:
    dnf clean all
    dnf upgrade --releasever=26
    and then again check if your repo are updated with
    Code:
    dnf repolist

  9. #9
    Join Date
    Nov 2006
    Posts
    111

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

    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

    Code:
    # 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

  10. #10
    Join Date
    Nov 2006
    Posts
    111

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

    I might be getting closer now
    i found this https://ask.fedoraproject.org/en/que...ository-files/
    in this link there are references to
    Code:
    # yum reinstall fedora-release
    and this
    Code:
    # dnf -y reinstall fedora-repos-*.noarch.rpm
    so i thought why not
    first off i tried
    Code:
    # 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
    Code:
    # 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
    Code:
    # 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.
    Code:
    # 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

  11. #11
    Join Date
    Nov 2006
    Posts
    111

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

    part 2

    almost there i thought, 'dnf upgrade' no longer complains however 'dnf distro-sync' still has a moan with 'protected packages:'
    Code:
    # 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?

  12. #12
    Join Date
    Aug 2017
    Location
    Greece
    Posts
    72

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

    I've made a nspawn container with version 25 and I was able to upgrade the distro. Try
    Code:
    dnf clean all
    dnf --releasever=26 distro-sync
    There is no 'fedora-release' on dnf man page.

    EDIT: There is another dirty workaround here. but you have to apply in all repositories.
    Last edited by AlexTheoto; 1st September 2017 at 09:01 AM.

  13. #13
    Join Date
    Nov 2006
    Posts
    111

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

    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
    Code:
    # 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

  14. #14
    Join Date
    Nov 2006
    Posts
    111

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

    here we go
    originally the metalink was used, so i modified the baseurl with release version and base architecture
    Code:
    # 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
    Code:
    # 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?

  15. #15
    Join Date
    Aug 2017
    Location
    Greece
    Posts
    72

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

    Maybe you are right. Maybe selinux block you.
    Try as root
    Code:
    touch /.autorelabel
    reboot

Page 1 of 2 1 2 LastLast

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
  •