—> Package rsyslog.x86_64 0:8.24.0-52.el7_8.2 will be an update As others have suggested, most likely this is due to limitations in the way ls--and some other programs, including client and server software--handle weird filenames, such as those containing control characters, by default.Your success with JdeBP's answer strongly suggests this was the case, though it would've been a good bet … ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems). –> Running transaction check —> Package grub2-tools-minimal.x86_64 1:2.02-0.86.el7.centos will be an update —> Package systemd.x86_64 0:219-73.el7_8.9 will be an update You can use "yum check" to get yum show these errors. —> Package unbound-libs.x86_64 0:1.6.6-3.el7 will be updated –> Processing Dependency: kernel(napi_complete_done) = 0x905307be for package: kmod-forcedeth-0.65-1.sng7.x86_64 —> Package asterisk16-res_digium_phone.x86_64 0:3.5.5-1.sng7 will be an update I have an embedded system that boots and runs from an SD card. thank you that was the problem, which I missed, despite knowing that was a known problem. —> Package apcupsd.x86_64 0:3.14.14-5.el7 will be updated Why the hell is it trying to remove those? When trying to use yum history undo or yum history rollback a yum transaction which includes systemd, yum fails with: Error: Trying to remove "systemd", which is protected Environment. Error: Problem: The operation would result in removing the following protected packages: systemd, systemd-udev (try to add '--skip-broken' to skip uninstallable packages) > because it fixes the files that were conflicting between the two versions > of the package and would be missing if the duplicate package was just > removed. —> Package systemd-sysv.x86_64 0:219-73.el7_8.9 will be an update yum remove action unsuccessful with following message: Finished Dependency Resolution rhel-7-server-extras-rpms/x86_64 | 2.0 kB rhel-7-server-optional-rpms/x86_64 | 2.0 kB rhel-7-server-rh-common-rpms/x86_64 | 2.1 kB rhel-7-server-rpms/x86_64 | 2.0 kB rhel-7-server-satellite-tools-6.2-rpms/x86_64 | 2.1 kB rhel-server-rhscl-7-rpms/x86_64 | 2.0 kB Error: Trying to remove "yum", which is protected —> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.252.b09-2.el7_8 will be updated —> Package kernel-headers.x86_64 0:3.10.0-1127.19.1.el7 will be an update [root@freepbx ~]# yum update —> Package python-perf.x86_64 0:3.10.0-1127.19.1.el7 will be an update —> Package shim-x64.x86_64 0:15-8.el7 will be an update appreciate help/options. 执行以下命令时:yum -y remove libstdc++-4.4.7-11.el6.x86_64.rpm出现错误: Error: Trying to remove “yum”, which is protected问题分析: 应该是要卸载的依赖项包含yum或正在被yum使用,无法卸载。解决办法 : 只卸载libstdc++-4.4.7-11.el6.x86_64.rpm,忽略依赖项,使用 —> Package ntpdate.x86_64 0:4.2.6p5-29.el7.centos.2 will be an update Everything worked for some months until the other day. —> Package grub2-tools.x86_64 1:2.02-0.81.el7.centos will be updated [root@freepbx ~]# yum update kernel* Loaded plugins: fastestmirror, versionlock Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package kernel.x86_64 0:3.10.0-693.11.6.el7 will be installed ---> Package kernel-headers.x86_64 0:3.10.0-693.11.1.el7 will be updated ---> Package kernel-headers.x86_64 0:3.10.0-693.11.6.el7 will be an update --> Finished … When I run "dnf group remove 'KDE Plasma Workspaces'" I get the following message: "Error: The operation would result in removing the following protected packages: systemd, dnf." —> Package ca-certificates.noarch 0:2020.2.41-70.0.el7_8 will be an update –> Processing Dependency: kernel(skb_clone_tx_timestamp) = 0x83433c92 for package: kmod-forcedeth-0.65-1.sng7.x86_64 —> Package ntpdate.x86_64 0:4.2.6p5-29.el7.centos will be updated —> Package kmod-forcedeth.x86_64 0:0.65-1.sng7 will be erased ... EDIT: Found the issue (I think). —> Package yaml-cpp.x86_64 1:0.5.1-1.el7.2 will be updated —> Package kmod-via-velocity.x86_64 0:1.15-3.sng7 will be updated —> Package java-1.8.0-openjdk.x86_64 1:1.8.0.252.b09-2.el7_8 will be updated —> Package ffmpeg-libs.x86_64 0:3.1.1-2.sng7 will be updated —> Package kmod-via-rhine.x86_64 0:1.5.1-5.sng7 will be updated Red Hat Enterprise Linux (RHEL) 7; yum; systemd Description of problem: dnf fails to remove "protected" packages as an example systemd-0:231-10.fc25.x86_64 systemd-libs-0:231-10.fc25.x86_64 systemd-pam-0:231-10.fc25.x86_64 systemd-udev-0:231-10.fc25.x86_64 Version-Release number of selected component (if applicable): dnf.noarch 1.1.10-3.fc25 @anaconda dnf.noarch 1.1.10-6.fc25 @System How reproducible: each time Steps to … —> Package apcupsd.x86_64 0:3.14.14-18.el7 will be an update Ansible added support for downgrades in 2.4 - I'm running … Offline #4 2014-11-26 18:11:56. TL;DR: Run ls -1b, find the filename, copy the line on which it appears, and give that to rm. —> Package asterisk16-res_digium_phone.x86_64 0:3.5.3-2.sng7 will be updated —> Package ffmpeg.x86_64 0:3.1.1-2.sng7 will be updated * elrepo: dfw.mirror.rackspace.com * extras: repos.dfw.quadranet.com —> Package selinux-policy.noarch 0:3.13.1-266.el7 will be updated —> Package kernel.x86_64 0:3.10.0-1127.19.1.el7 will be installed Powered by Discourse, best viewed with JavaScript enabled, Error: Trying to remove “sangoma-pbx”, which is protected. —> Package openvpn.x86_64 0:2.4.7-1.el7 will be updated You cannot remove those critical system packages, so exclude python, binutils, and gawk from your list of … Steps to Reproduce: 1. dnf upgrade --refresh (and optionally reboot into a new installed kernel) 2. dnf install dnf-plugin-system-upgrade 3. dnf system-upgrade download --releasever=31 Actual results: dnf system-upgrade download --releasever=31 Problem: The operation would result in removing the following protected packages: kernel-core, systemd (try to add '--allowerasing' to command line to … Since it will experience sudden power loss, I want to protect the root file system. —> Package ntp.x86_64 0:4.2.6p5-29.el7.centos.2 will be an update —> Package asterisk-version-switch.noarch 0:6.1-2.sng7 will be an update —> Package kernel.x86_64 0:3.10.0-514.26.2.el7 will be erased —> Package tftp-server.x86_64 0:5.2-23.6.sng7 will be updated —> Package grub2-tools-extra.x86_64 1:2.02-0.86.el7.centos will be an update —> Package asterisk-version-switch.noarch 0:6.1-1.sng7 will be updated —> Package curl.x86_64 0:7.29.0-57.el7 will be updated —> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.262.b10-0.el7_8 will be an update —> Package dbus.x86_64 1:1.10.24-14.el7_8 will be an update —> Package tftp-server.x86_64 0:5.2-23.8.sng7 will be an update The following packages will be REMOVED: systemd-shim 0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade. Asking for help, clarification, or responding to other answers. Error: Trying to remove "systemd", which is protected Error: Trying to remove "yum", which is protected But those aren't packages I gave. ¯ä¸Š, 又是一年1024,去年的1025你是怎么过的?. –> Running transaction check —> Package ffmpeg-libs.x86_64 0:3.1.1-4.sng7 will be an update —> Package grub2-tools-minimal.x86_64 1:2.02-0.81.el7.centos will be updated Error: Trying to remove "systemd", which is protected Error: Trying to remove "yum", which is protected Why? How do I correctly use OverlayFS to protect my root filesystem? —> Package libavdevice.x86_64 0:3.1.1-4.sng7 will be an update The sheet is protected but allows users to select locked and unlocked cells. —> Package grub2.x86_64 1:2.02-0.86.el7.centos will be an update sng7 also explicitly blacklists elrepo, so you’ve screwed with your machine. —> Package dbus.x86_64 1:1.10.24-13.el7_6 will be updated —> Package nodejs.x86_64 2:8.11.3-1.7 will be updated This topic was automatically closed 7 days after the last reply. —> Package sangoma-pbx.noarch 0:2008-1.sng7 will be erased —> Package systemd-libs.x86_64 0:219-73.el7_8.6 will be updated Error: Trying to remove “sangoma-pbx”, which is protected. Loading mirror speeds from cached hostfile Feb 12 08:40:00 upbox systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state. Error: Trying to remove "yum", which is protected You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I've already tried with --skip-broken and I get this: Error: Trying to remove "yum", which is protected You could try running: rpm -Va --nofiles --nodigest —> Package unbound-libs.x86_64 0:1.6.6-5.el7_8 will be an update –> Finished Dependency Resolution Don’t go bananas trying to figure out why systemd has failed to reload your unit file, all is actually well. If you exclude the bad architecture ... you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to ... libgcc-4.4.7-11.el6.i686 != libgcc-4.8.2-8.el6.x86_64 Error: Protected multilib versions: libstdc++-4.4.7-11.el6.i686 != libstdc++ … Please be sure to answer the question.Provide details and share your research! —> Package grub2-tools.x86_64 1:2.02-0.86.el7.centos will be an update yum gropremove “Development Tools” throws: Error: Trying to remove "yum", which is protected => yum groupremove “Development Tools” throws: Error: Trying to remove "yum", which is protected 2015-01-02 20:37 toracat: Note Added: 0022067 2015-01-02 21:49 toracat: Note Added: 0022068 2015-01-05 21:50 ARolek: Note Added: 0022078 —> Package python-perf.x86_64 0:3.10.0-1127.10.1.el7 will be updated —> Package sysadmin.noarch 0:5.6-5.6.47.sng will be an update Error: Problem: The operation would result in removing the following protected packages: systemd (try to add '--skip-broken' to skip uninstallable packages) [root@LENOVA-WIRED ~]# It appears that it will not remove certain packages which are 'protected' systemd programs even though they are older versions which are just kicking around. —> Package selinux-policy-targeted.noarch 0:3.13.1-266.el7_8.1 will be an update Trilby Inspector Parrot Registered: 2011-11-29 Posts: 24,875 ... grep medium nov 26 18:07:13 linux systemd-udevd[160]: error: /dev/sdd: No medium found nov 26 18:07:13 linux systemd-udevd[160]: error: /dev/sde: No medium found nov 26 … —> Package curl.x86_64 0:7.29.0-57.el7_8.1 will be an update —> Package kmod-via-velocity.x86_64 0:1.15-4.sng7 will be an update ... '3.13.1', '102.el7_3.16') systemd-219-30.el7_3.6.x86_64 has missing requires of systemd-libs = ('0', '219', '30.el7_3.6') systemd-219-30.el7_3.8.x86_64 is a duplicate with systemd-219-30.el7_3.6.x86_64 systemd-219 … —> Package grub2-efi-x64.x86_64 1:2.02-0.81.el7.centos will be updated Error: Trying to remove "systemd", which is protected 1) # cp -p /etc/yum/protected.d/systemd.conf /etc/yum/protected.d/systemd.conf.bak 2) # rm /etc/yum/protected.d/systemd.conf Worked in downgrade from 7.6 to 7.5 Thanks!!! I cannot understand why, when I am trying to remove a desktop environment, dnf tries to gut my system and remove the package manager and init system. —> Package systemd-libs.x86_64 0:219-73.el7_8.9 will be an update –> Running transaction check PBX Distro:12.7.8-2008-1.sng7 When a new sheet is created and the user tries to fill in the unlocked cells, Excel responds as if they were locked! thanks A I managed to remove some duplicate packages but I am stuck with the last five. Error: Trying to remove “sangoma-pbx”, which is protected. —> Package java-1.8.0-openjdk.x86_64 1:1.8.0.262.b10-0.el7_8 will be an update 1 not fully installed or removed. Error: Package: systemd-libs-219-57.el7.i686 (base) Requires: liblz4.so.1 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest. Try to remove all the fancy g4m0rz stuff: the mouse, the headset, the LED (detaching the usb will do) and probably the keyboard (notably everything on the usb, could also be a webcam) Then boot the multi-user.target w/ nothing but a $5 wired keyboard and see what happens. ! If I removed it, those would be broken. Feb 12 08:40:00 upbox systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE Feb 12 08:40:00 upbox systemd[1]: Failed to start Create Volatile Files and Directories. —> Package asterisk16-flite.x86_64 0:2.4-6_2505af1.sng7 will be updated In the past days I was trying to make work the SD card reader but the card inside was not recognized, so I had to remove it. —> Package libavdevice.x86_64 0:3.1.1-2.sng7 will be updated You’ve added external repositories that are causing issues. (Using Registry Editor) If the issue still persists after using cmd, you can try to use the registry editor … –> Processing Dependency: kmod-forcedeth for package: sangoma-pbx-2008-1.sng7.noarch —> Package grub2-efi-x64.x86_64 1:2.02-0.86.el7.centos will be an update New replies are no longer allowed. My goal was to do a downgrade. yum downgrade kmod-via-rhine -y yum downgrade kmod-via-rhine -y yum downgrade kmod-via-velocity -y yum downgrade kmod-via-velocity -y yum upgrade -y. yum downgrade kmod-via-rhine yum downgrade kmod-via-rhine -y —> Package grub2-tools-extra.x86_64 1:2.02-0.81.el7.centos will be updated —> Package libcurl.x86_64 0:7.29.0-57.el7 will be updated Error: Trying to remove “sangoma-pbx”, which is protected, PBX Version: 15.0.16.75 ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems). —> Package systemd-sysv.x86_64 0:219-73.el7_8.6 will be updated Resolving Dependencies —> Package asterisk16-flite.x86_64 0:2.4-9_2505af1.sng7 will be an update —> Package yaml-cpp.x86_64 1:0.5.1-2.el7 will be an update —> Package grub2-pc.x86_64 1:2.02-0.81.el7.centos will be updated —> Package kernel-headers.x86_64 0:3.10.0-1127.10.1.el7 will be updated Asterisk Version:16.13.0, tried the solutions around the forums, but they do not work (no broken updates afaik), no repositories changed, ran out of options All of those packages it was trying to remove (100+) were dependent on openldap being installed. —> Package dbus-libs.x86_64 1:1.10.24-13.el7_6 will be updated –> Finished Dependency Resolution Loaded plugins: fastestmirror, versionlock —> Package mokutil.x86_64 0:15-2.el7.centos will be updated —> Package dbus-libs.x86_64 1:1.10.24-14.el7_8 will be an update Error: Trying to remove “sangoma-pbx”, which is protected General Help dobrosavljevic (Igor Dobrosavljevic) 2019-04-23 16:07:04 UTC #1 --> Finished Dependency Resolution Error: Trying to remove "systemd", which is protected Error: Trying to remove "yum", which is protected ** Found 394 pre-existing rpmdb problem(s), 'yum check' output follows: ModemManager-1.4.4-2.fc21.x86_64 is a duplicate with ModemManager-1.4.0-1.fc21.x86_64 —> Package grub2-common.noarch 1:2.02-0.81.el7.centos will be updated Beschermde multilib-versies: systemd-libs-219-30.el7_3.7. —> Package selinux-policy-targeted.noarch 0:3.13.1-266.el7 will be updated —> Package systemd.x86_64 0:219-73.el7_8.6 will be updated —> Package sysadmin.noarch 0:5.6-5.6.44.sng will be updated —> Package rsyslog.x86_64 0:8.24.0-52.el7 will be updated If the IBM Spectrum Protect server is stopped outside systemd service manager, for example from dsmadmc administrative command line, systemctl query service still shows service status in running state. PBX Version: 15.0.16.75 PBX Distro:12.7.8-2008-1.sng7 Asterisk Version:16.13.0. tried the solutions around the forums, but they do not work (no broken updates afaik) no repositories changed, ran out of options appreciate help/options. Thanks for contributing an answer to Unix & Linux Stack Exchange! —> Package kmod-via-rhine.x86_64 0:1.5.1-6.sng7 will be an update After this operation, 71.7 kB disk space will be freed. I finally noticed that during the attempts to update, a warning was issued during the first part of the procedure: —> Package selinux-policy.noarch 0:3.13.1-266.el7_8.1 will be an update —> Package grub2-common.noarch 1:2.02-0.86.el7.centos will be an update —> Package ca-certificates.noarch 0:2019.2.32-76.el7_7 will be updated —> Package grub2.x86_64 1:2.02-0.81.el7.centos will be updated —> Package nodejs.x86_64 2:8.16.0-1.11 will be an update You can see all is well by 1) noting that the timestamps on the errors are exactly the same as they previously were and 2) try starting the service. But avoid …. —> Package openvpn.x86_64 0:2.4.9-1.el7 will be an update —> Package grub2-pc-modules.noarch 1:2.02-0.86.el7.centos will be an update I am trying to remove duplicate packages (to solve problems when installing updates). —> Package libcurl.x86_64 0:7.29.0-57.el7_8.1 will be an update —> Package shim-x64.x86_64 0:15-2.el7.centos will be updated —> Package ntp.x86_64 0:4.2.6p5-29.el7.centos will be updated package-cleanup --cleandupes gives --> Finished Dependency Resolution Error: Trying to remove "systemd", which is protected Error: Trying to remove "yum", which is protected You could try using --skip-broken to work around the problem – teemoleen Nov 22 '16 at 1:04 —> Package grub2-pc.x86_64 1:2.02-0.86.el7.centos will be an update –> Running transaction check I tried -t to tolerate errors, and -x yum -x systemd to specifically exclude those two, but it still ... gawk: A ton of things depend on gawk, including both yum and systemd. Yum is trying to solve this by installing an older version of libgcc of the different architecture. yum-complete-transaction gives No unfinished transactions left. —> Package grub2-pc-modules.noarch 1:2.02-0.81.el7.centos will be updated —> Package ffmpeg.x86_64 0:3.1.1-4.sng7 will be an update —> Package mokutil.x86_64 0:15-8.el7 will be an update