debian 9、apt-get install php7.3、破損したパッケージはありますか?

debian 9、apt-get install php7.3、破損したパッケージはありますか?

Debian 9にphp7.3とnginxをインストールしようとしています。

「破損したパッケージを持っています」とは何を意味し、どのように解決しますか?

これが私が見たものです(以降sudo su -

root@vps149861:/etc/apt# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://deb.debian.org/debian stretch-updates InRelease  
Hit:3 http://deb.debian.org/debian stretch Release                       
Hit:4 http://security.debian.org stretch/updates InRelease               
Hit:5 https://deb.nodesource.com/node_8.x stretch InRelease
Hit:7 https://packages.sury.org/php stretch InRelease
Reading package lists... Done

root@vps149861:/etc/apt# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@vps149861:/etc/apt# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@vps149861:/etc/apt# apt-get install php7.3
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.3 : Depends: libapache2-mod-php7.3 but it is not going to be installed or
                   php7.3-fpm but it is not going to be installed or
                   php7.3-cgi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

私はそれを使用したことがないか、apt-markこの状況で役に立つかもしれませんが、私は次のように言います。

E: No packages found
root@vps149861:/etc/apt# apt-mark showhold
root@vps149861:/etc/apt# 

また、リクエストに応じて:

root@vps149861:/etc/apt# dpkg -l | grep ^h
root@vps149861:/etc/apt# 

そして、この-fオプションは私にとっても役に立ちません...

root@vps149861:/etc/apt# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ベストアンサー1

これが私がすることであり、それは私にとって非常に効果的です。

sudo apt-get install aptitude

sudo aptitude install php7.3

おすすめ記事