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
답변1
타이거 라이트의암페타민업데이트를 포함하지만 dpkg
(아마도 좋은 이유가 있을 것임) 포함하지 않음기타 패키지업데이트가 dpkg
중단되었습니다. 손상된 패키지에는 다음이 포함됩니다 libapache2-mod-php5
.
따라서 이상적으로는 Tigerlite에게 PPA에 관련 업데이트 패키지를 추가하도록 요청해야 합니다.
또는 모험을 즐기고 싶다면 dpkg
Ubuntu 14.04로 다운그레이드해 보세요.
sudo apt-get install dpkg=1.17.5ubuntu5.6
아무것도 강요하지 않고 작동한다면 괜찮을 것입니다. 데비안 패키지는 공식적으로 다운그레이드를 지원하지 않으므로 전혀 테스트되지 않으며 dpkg
이에 대해 이야기하고 있으므로 패키지 관리가 완전히 중단될 수 있습니다.