我需要重新编译 php,为了做到这一点,我需要,openssl-devel
但是当我尝试安装它时,出现以下错误:
# apt-get install openssl-devel
Reading Package Lists...
Building Dependency Tree...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
openssl-devel: Depends: openssl (= 0.9.7a-43.17.mOS1.2) but 0.9.7a-43.17.mOS1.6 is to be installed
E: Broken packages
当然,我尝试安装,openssl
但它已经存在了
# apt-get install openssl
Reading Package Lists...
Building Dependency Tree...
openssl is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 1 not upgraded.
我甚至尝试过apt-get reinstall openssl
,但没有任何变化。我需要这样做openssl-devel
,因为我还需要安装依赖于它的其他软件包。
我也尝试过apt-get update
,但apt-get upgrade
没有任何帮助。
我可以从源代码安装 openssl-devel 吗?我尝试安装 rpm,但不起作用,因为每个 rpm 版本都需要一个匹配的 openssl 版本,而我找不到与我已经安装在该机器上的 openssl-devel 匹配的版本!!
我需要尽快得到帮助。
答案1
可能是多架构系统中存在冲突
尝试强制使用较低版本:
apt-get install openssl=0.9.7a-43.17.mOS1.2
或者验证是否已启用第三个存储库或禁用官方存储库(检查两个 arch)
apt-cache policy openssl openssl-devel openssl:i386