安装php7.3-common 一些问题

root@debian:~# apt install  php7.3-common
Reading package lists... Done
Building dependency tree... Done
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:
 php-common : Breaks: php7.3-common but 7.3.31-1~deb10u1 is to be installed
E: Unable to correct problems, you have held broken packages.

请问下 7.3.31-1~deb10u1 是什么软件包? apt install 7.3.31-1~deb10u1 反馈找不到该包

这里的 7.3.31-1~deb10u1php7.3-common 软件包的版本字符串,不是软件包名称。

apt install  php7.3-common 7.3.31-1~deb10u1   

这样安装么?加版本字符串

From apt(8) — apt — Debian bullseye — Debian Manpages

apt [-h ] [-o= config_string ] [-c= config_file ] [-t= target_release ] [-a= architecture ] {list | search | show | update | install pkg [{=pkg_version_number | /target_release }]… | remove pkg … | upgrade | full-upgrade | edit-sources | {-v | --version} | {-h | --help}}

因此,如果你要指定特定的版本字符串,应该执行命令apt install php7.3-common=7.3.31-1~deb10u1

但我认为,这不会是你所面临的问题的解决方案。

该输出已经警告了你:在当前你运行的 Debian 版本上不支持 PHP 7.3,确实存在一些办法来安装 PHP 7.3 并使之工作,但这样做会无端增加系统的维护成本。

建议:除非你有必须使用 PHP 7.3 版本的特定理由,直接安装 php 软件包是最容易工作的。