使用 apt-get 安装 phpMyAdmin 时终端显示“软件包损坏”

使用 apt-get 安装 phpMyAdmin 时终端显示“软件包损坏”

我尝试使用sudo apt-get 安装 phpmyadmin命令> 终端说有“可卸载”的依赖项,因此包已损坏。也许从终端复制粘贴以下内容可以解释完整的视图:

sudo apt-get install phpmyadmin
[sudo] password for sam: 
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:
 phpmyadmin : Depends: php5-mysql but it is not going to be installed or
                       php5-mysqli but it is not installable
              Recommends: php5-gd but it is not going to be installed
E: Broken packages

您对这个问题有何建议?

答案1

仅适用于该应用程序,还是仅适用于您尝试安装的所有内容?

你可以试试:

sudo apt-get -f install

答案2

谢谢大家。我成功安装了该软件包及其所有依赖项。问题是我有一段时间没有更新存储库了。

相关内容