Error: Package: libselinux-devel-2.5-15.el7.x86_64 (/libselinux-devel-2.5-15.el7.x86_64) Requires: libselinux(x86-64) = 2.5-15.el7 Installed: libselinux-2.5-14.1.el7.x86_64 (@anaconda/7.6) libselinux(x86-64) = 2.5-14.1.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
时间: 2024-03-16 22:42:35 浏览: 169
libselinux-2.5-15.el7.x86_64.rpm
5星 · 资源好评率100%
As mentioned earlier, it seems that there is a version mismatch between the libselinux and libselinux-devel packages on your system.
If updating the libselinux package to the required version using the package manager did not work, you can try removing the currently installed version of the libselinux package and then installing the required version. Here's how you can do that:
1. Check if any other packages on your system depend on the currently installed version of libselinux by running the following command:
```
rpm -q --whatrequires libselinux-2.5-14.1.el7.x86_64
```
2. If there are no other packages that depend on the currently installed version of libselinux, you can remove it by running the following command:
```
sudo yum remove libselinux-2.5-14.1.el7.x86_64
```
3. Once the old version is removed, you can install the required version of libselinux by running the following command:
```
sudo yum install libselinux-2.5-15.el7.x86_64
```
4. Finally, you can try installing the libselinux-devel package again:
```
sudo yum install libselinux-devel-2.5-15.el7.x86_64
```
This should resolve the dependency issue and allow you to install the libselinux-devel package.
阅读全文