无法在Linux Mint 17.3(libapache2-mod-php)中安装Apache2和PHP

圣诞节

正确安装了Apache2和PHP,但libapache2-mod-php出现了问题。

我尝试安装它,apt-get并得到以下信息:

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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gnupg : Depends: libreadline6 (>= 6.0) but it is not going to be installed
 libapache2-mod-php5 : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
                       Depends: apache2-api-20120211
                       Depends: apache2 (>= 2.4) but it is not going to be installed
                       Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.17) but it is not going to be installed
                       Depends: ucf but it is not going to be installed
                       Depends: tzdata but it is not going to be installed
 libuuid1 : Depends: passwd
 libuuid1:i386 : Depends: passwd:i386
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我尝试安装每个软件包,但说它们已经安装。

我也尝试使用aptitude安装模块,为此我得到以下输出:

The following NEW packages will be installed:
  libapache2-mod-php5
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.212 kB of archives. After unpacking 9.897 kB will be used.
The following packages have unmet dependencies:
 dpkg : Breaks: libapache2-mod-php5 (< 5.6.4+dfsg-3~) but 5.5.9+dfsg-1ubuntu4.17 is to be installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libapache2-mod-php5 [Not Installed]                



Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

我选择是,但未安装任何内容。重新启动Apache之后,我的phpinfo页面无法正常工作。

这是的输出uname -a,如果有用的话:

Linux julen-Surface-Pro-3 4.4.6-3-surface #tigerite ZEN SMP Tue May 24 13:22:59 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

编辑:输出apt-cache policy dpkg

dpkg:
  Installed: 1.17.25ubuntu1.2
  Candidate: 1.17.25ubuntu1.2
  Version table:
 *** 1.17.25ubuntu1.2 0
        500 http://ppa.launchpad.net/tigerite/mint-xorg-update/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     1.17.5ubuntu5.6 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.17.5ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
斯蒂芬·基特

Tigerlite的PPA包含更新dpkg(大概出于正当理由),但不包括对其他更新了dpkg休息时间的软件包的更新这些破损的包裹包括libapache2-mod-php5...

因此,理想情况下,您应该要求Tigerlite将相关的更新软件包添加到他的PPA中。

另外,如果您喜欢冒险,可以尝试降级dpkg到Ubuntu 14.04版本:

sudo apt-get install dpkg=1.17.5ubuntu5.6

如果在不强制执行任何操作的情况下工作,则应该可以。不过,Debian软件包中并不正式支持降级,因此根本不会进行测试。既然是dpkg我们正在谈论的内容,那么它很可能会完全破坏您的包裹管理。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章