得到“ E:无法纠正问题,您拿着破损的包裹。”在Debian 9上使用apt-get

问题描述 投票:0回答:1
安装php 7.4时

我知道我不是第一个被apt-get告知的人,但是我认为我的口味很独特。无论如何,我的问题是:“如何使用apt-get解决此错误?”但它可能会更深入。

root@linode (mods-enabled ): apt-get install php7.4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 php7.4 : Depends: libapache2-mod-php7.4 but it is not going to be installed or
                   php7.4-fpm but it is not going to be installed or
                   php7.4-cgi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已经尝试过智能,但是似乎什么也没做:

root@linode (mods-enabled ): sudo aptitude install php7.4
The following NEW packages will be installed:
  libapache2-mod-php7.4{ab} libpcre2-8-0{a} php7.4 php7.4-cli{a} php7.4-json{a} php7.4-opcache{a} php7.4-readline{ab} 
0 packages upgraded, 7 newly installed, 0 to remove and 4 not upgraded.
Need to get 3,208 kB of archives. After unpacking 10.7 MB will be used.
The following packages have unmet dependencies:
 php7.4-readline : Depends: libncurses5 (>= 6) but 5.9+20140913-1+deb8u3 is installed.
                   Depends: libtinfo5 (>= 6) but 5.9+20140913-1+deb8u3 is installed.
 libapache2-mod-php7.4 : Depends: apache2-bin (>= 2.4.16) but 2.4.10-10+deb8u13 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libapache2-mod-php7.4 [Not Installed]              
2)     php7.4 [Not Installed]                             
3)     php7.4-cli [Not Installed]                         
4)     php7.4-readline [Not Installed]                    



Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
root@linode (mods-enabled ): echo $?
0

它从字面上就是出口。我也尝试过这些:

  apt upgrade
  apt update
  apt-get clean
  apt-get update
  apt-get install -f

似乎没有什么可以让我从小监狱中解脱出来。接下来我可以尝试什么?

php debian apt
1个回答
0
投票

我遇到相同的问题,您如何解决此问题?

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.