The operation would result in removing the following protected packages: systemd, systemd-udev | installation package "alien"

,

Hi to all. I’m sorry if it’s a dumb question.
I’m a Philosophy teacher in High School, and the school decided to adopt books in digital format. We have to use the app “Pearson Reader+” to have access to the books, but unfortunately the app is available only in .deb. I need to convert it in .rpm, but when I try to install alien I get this error message:

Errore: 
 Problema: The operation would result in removing the following protected packages: systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

Adding --skip-broken doesn’t help.

I desperately need the app to use the books in school. How can I solve this tedious problem?

Thanks in advance to all!

Welcome to ask.:fedora:edora @rrr0bb

Could you please give us more info’s as :

inxi -Fzx in terminal and post the output as </> Preformatted text here.

I installed alien without any troubles now.
How did you install it ?

Thank you for your kind answer.

Here is the output of inxi -Fzx

System:
  Kernel: 5.16.11-200.fc35.x86_64 x86_64 bits: 64 compiler: gcc
    v: 2.37-10.fc35 Desktop: KDE Plasma 5.24.2
    Distro: Fedora release 35 (Thirty Five)
Machine:
  Type: Laptop System: Acer product: Swift SF114-32 v: V1.12
    serial: <superuser required>
  Mobo: GLK model: Sapporo_GL_S v: V1.12 serial: <superuser required>
    UEFI: Insyde v: 1.12 date: 03/20/2020
Battery:
  ID-1: BAT0 charge: 18.5 Wh (67.3%) condition: 27.5/54.2 Wh (50.7%)
    volts: 12.5 min: 11.6 model: PANASONIC AP15O5L status: Charging
CPU:
  Info: quad core model: Intel Pentium Silver N5000 bits: 64 type: MCP
    arch: Goldmont Plus rev: 1 cache: L1: 224 KiB L2: 4 MiB
  Speed (MHz): avg: 755 high: 796 min/max: 800/2700 cores: 1: 796 2: 796
    3: 796 4: 634 bogomips: 8755
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel GeminiLake [UHD Graphics 605] vendor: Acer Incorporated ALI
    driver: i915 v: kernel bus-ID: 00:02.0
  Device-2: Sunplus Innovation HD User Facing type: USB driver: uvcvideo
    bus-ID: 1-7:3
  Display: x11 server: X.Org 1.20.14 driver: loaded: modesetting
    unloaded: fbdev,vesa resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 605 (GLK 3) v: 4.6 Mesa 21.3.6
    direct render: Yes
Audio:
  Device-1: Intel Celeron/Pentium Silver Processor High Definition Audio
    vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel
    bus-ID: 00:0e.0
  Sound Server-1: ALSA v: k5.16.11-200.fc35.x86_64 running: yes
  Sound Server-2: PipeWire v: 0.3.47 running: yes
Network:
  Device-1: Intel Gemini Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:0c.0
  IF: wlp0s12f0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-9:4
  Report: rfkill ID: hci0 rfk-id: 15 state: up address: see --recommends
Drives:
  Local Storage: total: 232.89 GiB used: 33.74 GiB (14.5%)
  ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO M.2 250GB
    size: 232.89 GiB temp: 29 C
Partition:
  ID-1: / size: 231.3 GiB used: 33.48 GiB (14.5%) fs: btrfs dev: /dev/sda3
  ID-2: /boot size: 973.4 MiB used: 250.1 MiB (25.7%) fs: ext4
    dev: /dev/sda2
  ID-3: /boot/efi size: 598.8 MiB used: 13.9 MiB (2.3%) fs: vfat
    dev: /dev/sda1
  ID-4: /home size: 231.3 GiB used: 33.48 GiB (14.5%) fs: btrfs
    dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 3.63 GiB used: 2.04 GiB (56.3%)
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 43.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 295 Uptime: 2d 20h 40m Memory: 3.63 GiB used: 2.55 GiB (70.3%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.2.1 Packages: 32
  note: see --pkg Shell: Bash v: 5.1.8 inxi: 3.3.12

I tried to install alien with the command sudo dnf install alien

Yes, that’s how i installed it.
Did you make an upgrade before ? sudo dnf upgrade

Mine is the following systemd version:
sudo dnf info systemd

Name         : systemd
Version      : 249.9
Release      : 1.fc35
Architecture : x86_64
Size         : 13 M
Source       : systemd-249.9-1.fc35.src.rpm
Repository   : @System
From repo    : updates
Summary      : System and Service Manager
URL          : https://www.freedesktop.org/wiki/Software/systemd
License      : LGPLv2+ and MIT and GPLv2+

Installed Packages
Name         : systemd-udev
Version      : 249.9
Release      : 1.fc35
Architecture : x86_64
Size         : 9.8 M
Source       : systemd-249.9-1.fc35.src.rpm
Repository   : @System
From repo    : updates
Summary      : Rule-based device node and kernel event manager
URL          : https://www.freedesktop.org/wiki/Software/systemd
License      : LGPLv2+


Yes, I tried to uprgade before installing it.

I have more packages systemd installed, from different repositories. Maybe could it be the problem?

Name         : systemd
Version      : 249.4
Rilascio     : 2.fc35
Architecture : x86_64
Size         : 13 M
Sorgente     : systemd-249.4-2.fc35.src.rpm
Repository   : @System
Dal repo     : anaconda
Summary      : System and Service Manager
URL          : https://www.freedesktop.org/wiki/Software/systemd
Licenza      : LGPLv2+ and MIT and GPLv2+
Description  : systemd is a system and service manager that runs as PID 1 and starts
             : the rest of the system. It provides aggressive parallelization
             : capabilities, uses socket and D-Bus activation for starting services,
             : offers on-demand starting of daemons, keeps track of processes using
             : Linux control groups, maintains mount and automount points, and
             : implements an elaborate transactional dependency-based service
             : control logic. systemd supports SysV and LSB init scripts and works
             : as a replacement for sysvinit. Other parts of this package are a
             : logging daemon, utilities to control basic system configuration like
             : the hostname, date, locale, maintain a list of logged-in users,
             : system accounts, runtime directories and settings, and daemons to
             : manage simple network configuration, network time synchronization,
             : log forwarding, and name resolution.
             : 
             : This package was built from the 249.4-stable branch of systemd.

Name         : systemd
Version      : 249.9
Rilascio     : 1.fc35
Architecture : x86_64
Size         : 13 M
Sorgente     : systemd-249.9-1.fc35.src.rpm
Repository   : @System
Dal repo     : updates
Summary      : System and Service Manager
URL          : https://www.freedesktop.org/wiki/Software/systemd
Licenza      : LGPLv2+ and MIT and GPLv2+
Description  : systemd is a system and service manager that runs as PID 1 and starts
             : the rest of the system. It provides aggressive parallelization
             : capabilities, uses socket and D-Bus activation for starting services,
             : offers on-demand starting of daemons, keeps track of processes using
             : Linux control groups, maintains mount and automount points, and
             : implements an elaborate transactional dependency-based service
             : control logic. systemd supports SysV and LSB init scripts and works
             : as a replacement for sysvinit. Other parts of this package are a
             : logging daemon, utilities to control basic system configuration like
             : the hostname, date, locale, maintain a list of logged-in users,
             : system accounts, runtime directories and settings, and daemons to
             : manage simple network configuration, network time synchronization,
             : log forwarding, and name resolution.
             : 
             : This package was built from the 249.9-stable branch of systemd.

Pacchetti disponibili
Name         : systemd
Version      : 249.9
Rilascio     : 1.fc35
Architecture : i686
Size         : 4.1 M
Sorgente     : systemd-249.9-1.fc35.src.rpm
Repository   : updates
Summary      : System and Service Manager
URL          : https://www.freedesktop.org/wiki/Software/systemd
Licenza      : LGPLv2+ and MIT and GPLv2+
Description  : systemd is a system and service manager that runs as PID 1 and starts
             : the rest of the system. It provides aggressive parallelization
             : capabilities, uses socket and D-Bus activation for starting services,
             : offers on-demand starting of daemons, keeps track of processes using
             : Linux control groups, maintains mount and automount points, and
             : implements an elaborate transactional dependency-based service
             : control logic. systemd supports SysV and LSB init scripts and works
             : as a replacement for sysvinit. Other parts of this package are a
             : logging daemon, utilities to control basic system configuration like
             : the hostname, date, locale, maintain a list of logged-in users,
             : system accounts, runtime directories and settings, and daemons to
             : manage simple network configuration, network time synchronization,
             : log forwarding, and name resolution.
             : 
             : This package was built from the 249.9-stable branch of systemd.

I think anaconda repository is not used anymore.

Check if it is still in use with sudo dnf repolist . If yes deactivate it, but first give a look which systemd is in use: systemctl --version

Afterwards you have to remove it using the correct version sudo dnf remove systemd-249.4-2.fc35

Pacchetti disponibili

This one is not installed … it is just there for the i686 architecture. You can ignore.

Thank you for your very kind answer.

I checked if the repo is used and it’s not, so I don’t have to deactivate it.
The output of systemctl --version is:

systemd 249 (v249.9-1.fc35)
+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified

I think it’s the correct version. It is right?

can you post:
sudo dnf list installed | grep -i systemd

and
sudo dnf repolist

Thanks

From your dnf info systemd look like there are two different version of systemd package installed:

  1. systemd-249.4-2.fc35 from anaconda repo
  2. systemd-249.9-1.fc35 from updates repo

That is why @ilikelinux suggested to remove the first one from anaconda repo systemd-249.4-2.fc35. But to making sure, you could check it by following what @grumpey suggested above.

Update:

Just in case alien package already successfully installed.

I tried to convert the deb package to rpm and found an error as bellow:

[testcase@fedora Downloads]$ alien -r desktop-readerplus_4.1.0_amd64.deb
Warning: Skipping conversion of scripts in package desktop-readerplus: postinst postrm preinst
Warning: Use the --scripts parameter to include the scripts.
Package build failed. Here's the log of the command (cd desktop-readerplus-4.1.0; rpmbuild --buildroot='/home/testcase/Downloads/desktop-readerplus-4.1.0' -bb --target x86_64 'desktop-readerplus-4.1.0-2.spec'):
error: line 5: Empty tag: Summary:             <---here the error
Building target platforms: x86_64
Building for target x86_64

You could follow bellow steps to fix it:

# Generate the build tree only and not build the `rpm`. No need sudo
alien -rg desktop-readerplus_4.1.0_amd64.deb

# It will create folder `desktop-readerplus-4.1.0`, go to the newly created directory.
cd desktop-readerplus-4.1.0

# You'll find `desktop-readerplus-4.1.0-2.spec` file, open it.
gedit desktop-readerplus-4.1.0-2.spec

# Find part `Summary:` on line 5.
...
Summary: 
...

# Add any summary to this line, for example as below then save it.
...
Summary: Reader
...

# Build the `rpm` package (still in the same directory).
rpmbuild --buildroot=$PWD -bb --target x86_64 'desktop-readerplus-4.1.0-2.spec'

# Go to upper directory and check the `rpm` and you'll get the the package.
cd ..
ls

I successfully installed it but since I don’t have the account, I can’t check if it really works (but I think it should work since look like there no specific dependencies needed).

I’m very sorry if I answer late, but I work a lot and I’m moving to another city. By the way, thank you for your kind answer.

That’s the output of sudo dnf list installed | grep -i systemd

libreport-plugin-systemd-journal.x86_64          2.15.2-7.fc35                          @updates                  
python-systemd-doc.x86_64                        234-19.fc35                            @anaconda                 
python3-systemd.x86_64                           234-19.fc35                            @anaconda                 
rpm-plugin-systemd-inhibit.x86_64                4.17.0-4.fc35                          @updates                  
systemd.x86_64                                   249.4-2.fc35                           @anaconda                 
systemd.x86_64                                   249.9-1.fc35                           @updates                  
systemd-libs.x86_64                              249.4-2.fc35                           @anaconda                 
systemd-libs.x86_64                              249.9-1.fc35                           @updates                  
systemd-networkd.x86_64                          249.4-2.fc35                           @anaconda                 
systemd-networkd.x86_64                          249.9-1.fc35                           @updates                  
systemd-oomd-defaults.noarch                     249.9-1.fc35                           @updates                  
systemd-pam.x86_64                               249.4-2.fc35                           @anaconda                 
systemd-pam.x86_64                               249.9-1.fc35                           @updates                  
systemd-resolved.x86_64                          249.4-2.fc35                           @anaconda                 
systemd-resolved.x86_64                          249.9-1.fc35                           @updates                  
systemd-udev.x86_64                              249.4-2.fc35                           @anaconda                 
systemd-udev.x86_64                              249.9-1.fc35                           @updates      

And here’s the output of sudo dnf repolist:

id repo                          nome repo
fedora                           Fedora 35 - x86_64
fedora-cisco-openh264            Fedora 35 openh264 (From Cisco) - x86_64
fedora-modular                   Fedora Modular 35 - x86_64
rpmfusion-free                   RPM Fusion for Fedora 35 - Free
rpmfusion-free-updates           RPM Fusion for Fedora 35 - Free - Updates
rpmfusion-nonfree                RPM Fusion for Fedora 35 - Nonfree
rpmfusion-nonfree-updates        RPM Fusion for Fedora 35 - Nonfree - Updates
updates                          Fedora 35 - x86_64 - Updates
updates-modular                  Fedora Modular 35 - x86_64 - Updates

Thanks very much.
I cannot uninstall the duplicate systemd, when I give the command sudo dnf remove systemd-249.4-2.fc35 I obtain the following error:

Errore: 
 Problema: The operation would result in removing the following protected packages: systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

Try this way:

https://discussion.fedoraproject.org/t/file-conflicts-from-package/74756/7

The following packages (just command by command to see what happens) :

sudo rpm -e --nodeps systemd-249.4-2.fc35.x86_64
sudo rpm -e --nodeps systemd-libs-249.4-2.fc35.x86_64
sudo rpm -e --nodeps systemd-networkd-249.4-2.fc35.x86_64
sudo rpm -e --nodeps systemd-pam-249.4-2.fc35.x86_64
sudo rpm -e --nodeps systemd-resolved-249.4-2.fc35.x86_64
sudo rpm -e --nodeps systemd-udev-249.4-2.fc35.x86_64
2 Likes

Thanks a lot! That seems to resolve the problem! I can install the packages I wasn’t able to install, like alien and wine (when trying to install it I had the same problem).

Can I ask how it was possible to have multiple versions of the same package installed? It seems that I don’t even have anaconda repo activated.

Unfortunately it is possible. If you work with wine you can get multiple versions with different architecture i686 & x86_64 because of the 32bit part of it.

I just can imagine that this was an over-left from the installation. Anaconda is the installer on the iso’s and live images. Did your installation interrupt ? Or an update from systemd got interrupted ?

But to investigate this further you better make a new request.

Ok, thanks very much everyone for your kind help : )

worked for me as well, but also had to do the same with p11 packages - by the way, this happened right after I got a power outage during an update.

sudo dnf list installed | grep -i p11

and removing the duplicates:

# check for displayed version on previous command
sudo rpm -e --nodeps p11-kit-0.25.0-1.fc38.x86_64
sudo rpm -e --nodeps p11-kit-trust-0.25.0-1.fc38.x86_64

many thanks @ilikelinux !!

1 Like