安装 openssl-devel 期间的依赖冲突

Dependency conflict during install of openssl-devel

我的 Fedora 内核版本 - 4.1.13-100.fc21.

我正在尝试通过输入命令为 OpenSSL 安装开发人员库:

sudo yum install openssl-devel

它给出输出:

Error: Packet: pcre-devel-8.35-14.fc21.x86_64 (updates)
          Requires: pcre(x86-64) = 8.35-14.fc21
          Installed: pcre-8.35-17.fc21.x86_64 (@updates-testing)
              pcre(x86-64) = 8.35-17.fc21
          Available: pcre-8.35-7.fc21.x86_64 (fedora)
              pcre(x86-64) = 8.35-7.fc21
          Available: pcre-8.35-14.fc21.x86_64 (updates)
              pcre(x86-64) = 8.35-14.fc21

下面的另一个选项是使用 --skip-broken 来解决这个问题。输入:

sudo yum install openssl-devel --skip-broken

提供由于依赖性问题而丢失数据包的输出:

krb5-devel-1.12.2-9.fc21.x86_64 from fedora
krb5-devel-1.12.2-19.fc21.x86_64 from updates
libselinux-devel-2.3-5.fc21.x86_64 from fedora
libselinux-devel-2.3-10.fc21.x86_64 from updates
1:openssl-devel-1.0.1k-12.fc21.x86_64 from updates
pcre-devel-8.35-7.fc21.x86_64 from fedora
pcre-devel-8.35-14.fc21.x86_64 from updates

我能做什么?这个问题的最开始是 Qt 中关于从 openssl 文件夹中丢失头文件的错误。

我自己找到了解决办法。首先我需要使用 dnf:

降级 prce
sudo dnf downgrade pcre-devel-8.35-7.fc21

然后我的电脑上有两个版本的pcre。 运行 这两条评论有帮助:

rpm --rebuilddb
dnf distro-sync

在最后一步中,我可以通过输入以下命令毫无问题地安装 openssl-devel 和所有依赖项:

sudo dnf install openssl-devel