AlmaLinux 9.4 running as an OpenVZ container cannot update initscripts due to network-scripts Print

  • 1

Problem Description

When running system updates (dnf/yum), an error occurs as follows:

Error:
Problem: cannot install both initscripts-10.11.6-1.el9.x86_64 from baseos and initscripts-10.11.5-1.el9.x86_64 from @System
- package network-scripts-10.11.5-1.el9.x86_64 from @System requires initscripts(x86-64) = 10.11.5-1.el9, but none of the providers can be installed
- cannot install the best update candidate for package initscripts-10.11.5-1.el9.x86_64
- problem with installed package network-scripts-10.11.5-1.el9.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Problem Resolution

This issue occurs because the Virtuozzo/OpenVZ EZ Template for AlmaLinux 9 is built using the deprecated network-scripts package as a replacement for the supported and built in NetworkManager. The OpenVZ devs have done this because network-scripts is required to continue working smoothly with OpenVZ.

AlmaLinux developers have chosen to keep network-scripts packages strictly in the devel repo (rather than release/stable) because it is not longer a supported package.

You have two options to resolve this:

  1. Exclude the network-scripts and initscripts packages from the repository so they never get updated (instructions on how to do that in the OpenVZ forum here), or
  2. Manually update the network-scripts package from the AlmaLinux devel repo so that initscripts can update as normal

To complete option (2), run this on your container:

rpm -Uvh https://repo.almalinux.org/almalinux/9.4/devel/x86_64/os/Packages/network-scripts-10.11.6-1.el9.x86_64.rpm --nodeps

Note: if your error indicates a different version of network-scripts is required, you will need to find the correct version in the devel repo and install that instead.

You should now be able to complete your system updates normally.


Was this answer helpful?

← Back