php - 得到“E:无法纠正问题,你拿着破损的包裹。” 使用 apt-get 在 Debian 9 上安装 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.
我试过 aptitude,这似乎什么也没做:
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
似乎没有什么能让我从我的小监狱中解脱出来。接下来我可以尝试什么?
解决方案
推荐阅读
- c++ - ˋtypedefˋ 中的异常规范完全禁止还是仅在顶层?
- c# - appconfig 中的 C# 嵌套字符串数组
- bash - 在 Bash/Shell 中使用带有“- - -”的“粘贴”
- php - 多个嵌套依赖项的工厂模式?
- python - 导入街机模块时无法导入号码库错误
- c# - Web API 2 获取 ZIP 文件返回奇怪的符号
- python-3.x - 在 Boto 3 中将安全组与其实例匹配的最简单方法是什么?
- r - 如何沿倾斜值分割多边形和填充区域?
- c - C程序中的环形缓冲区接收信号SIGSEGV,分段错误
- django - 如何在域名内打开 Django 应用页面,而不是 domain/app_page_url?