我的 Raspberry pi 上运行着 Ubuntu 22.04 服务器,试图安装 Apache2 但出现以下错误。
ubuntu@ubuntu:~/pendrive$ sudo apt-get install apache2
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:
apache2 : Depends: apache2-data (= 2.4.52-1ubuntu4.5) but 2.4.57-1+ubuntu22.04.1+deb.sury.org+1 is to be installed
Recommends: ssl-cert but it is not going to be installed
这是我尝试过的。
我卸载/清除了系统中现有的 Apache 版本(如果有)。发出 get update 和 upgrade 命令,然后尝试再次安装 Apache,但没有任何效果