Hello everyone.
I have recently decided to start using C language. For this reason, I am trying to download and install a compiler for C, gcc is my first option.
When I use command sudo dnf install gcc it throws an error: Error in %preun scriptlet:Preformatted textkernel-core-0:6.17.10-100.fc41.x86_64 Scriptlet output: /bin/kernel-install: error while loading shared libraries: /usr/lib64/systemd/libsystemd-shared-258.3-2.fc43.so: file too short /bin/kernel-install: error while loading shared libraries: /usr/lib64/systemd/libsystemd-shared-258.3-2.fc43.so: file too short
[RPM] %preun(kernel-core-6.17.10-100.fc41.x86_64) scriptlet failed, exit status 127
Updating dnf throws the same error.
Please, I don’t know what to do.
Unsatisfied dependencies for systemd-shared-258.2-1.fc43.x86_64:
systemd-shared < 258.3-2.fc43 conflicts with (installed) systemd-libs-258.3-2.fc43.x86_64
Unsatisfied dependencies for systemd-shared-258.3-2.fc43.x86_64:
systemd-libs < 258.3-2.fc43 conflicts with (installed) systemd-shared-258.3-2.fc43.x86_64
S.5...... /usr/lib64/systemd/libsystemd-shared-258.3-2.fc43.so
Then I typed
sudo dnf reinstall systemd-share
And it gives this reply:
Repositories loaded.
Failed to resolve the transaction:
No match for argument: systemd-share
You can try to add to command line:
--skip-unavailable to skip unavailable packages
duplicate with "zlib-ng-0:2.3.2-2.fc43.x86_64"
zlib-ng-0:2.3.2-2.fc43.x86_64
duplicate with "zlib-ng-0:2.3.2-1.fc43.x86_64"
zlib-ng-compat-0:2.3.2-1.fc43.x86_64
installed conflict "zlib(x86-64)" from "zlib-ng-compat-0:2.3.2-2.fc43.x86_64"
duplicate with "zlib-ng-compat-0:2.3.2-2.fc43.x86_64"
zlib-ng-compat-0:2.3.2-2.fc43.x86_64
installed conflict "zlib(x86-64)" from "zlib-ng-compat-0:2.3.2-1.fc43.x86_64"
duplicate with "zlib-ng-compat-0:2.3.2-1.fc43.x86_64"
Check discovered 733 problem(s) in 691 package(s)
This could result from running out of space on storage device, an update that runs a longish background task that gets interrupted by a reboot or shutdown. I’ve had remote updates using cockpit that stalled until I visited the system and hit the return/enter key. The damage is rarely limited to a single file, so the dnf distro-sync … should be used.
Indeed, an update has been interrupted.
I ran the dnf distro-sync command with all the flags you mentioned. As the result now
dnf check says that instead of 700-ish problems there are only 234 left.
Should I be worried?
No worries, just that you have some work left to do. On misbehaving systems it is a good idea to specify the dnf version – on Fedora 43, use dnf5 rather than dnf. You should also read the man pages for commands so you understand what they are doing.
Here, dnf 5distro sync says "Nothing to do. " on 3 systems and upgrades one package on the 4th system. dnf5 check just returns to the prompt – in Linux “no news is good news”.
From man dnf5-check :
OPTIONS
--dependencies
Show missing dependencies and conflicts.
--duplicates
Show duplicated packages.
--obsoleted
Show obsoleted packages.
Run dnf5 check <option> separately for each option to see how many of each type of problem you have.
installed conflict "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-scdaemon-0:2.4.9-4.fc43.x86_64"
installed conflict "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-utils-0:2.4.9-4.fc43.x86_64"
installed conflict "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-verify-0:2.4.9-4.fc43.x86_64"
installed conflict "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-wks-0:2.4.9-4.fc43.x86_64"
obsoleted by "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-0:2.4.9-4.fc43.x86_64"
obsoleted by "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-g13-0:2.4.9-4.fc43.x86_64"
obsoleted by "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-scdaemon-0:2.4.9-4.fc43.x86_64"
obsoleted by "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-utils-0:2.4.9-4.fc43.x86_64"
obsoleted by "gnupg2 < 2.4.9-1.fc42.1" from "gnupg2-wks-0:2.4.9-4.fc43.x86_64"
duplicate with "gnupg2-0:2.4.9-4.fc43.x86_64"
gnupg2-0:2.4.9-4.fc43.x86_64
duplicate with "gnupg2-0:2.4.8-4.fc43.x86_64"
gnupg2-dirmngr-0:2.4.8-4.fc43.x86_64
duplicate with "gnupg2-dirmngr-0:2.4.9-4.fc43.x86_64"
gnupg2-dirmngr-0:2.4.9-4.fc43.x86_64
duplicate with "gnupg2-dirmngr-0:2.4.8-4.fc43.x86_64"
The /usr/bin/systemd-sysusers: error while loading shared libraries: libsystemd-<truncated name>
should have been corrected when reinstalling systemd-shared because /usr/bin/systemd-sysusers uses only that systemd library: