无法安装 phpmyadmin Ubuntu 12.04 LTS

无法安装 phpmyadmin Ubuntu 12.04 LTS

我正在运行 Ubuntu 12.04 LTS。我正在尝试安装phpmyadmin。但是我收到以下错误消息:

The following packages have unmet dependencies:

 - phpmyadmin : Depends: php but it is not installable 
Depends: php-cli but it is not installable 
Depends: php-mysql but it is not installable 
Depends: php-json but it is not installable 
Depends: php-mbstring but it is not installable 
Depends: php-xml but it is not installable 
Recommends: php-curl but it is not installable   
Recommends: php-gd but it is not installable 
Recommends: php-bz2 but it is not installable
Recommends: php-zip but it is not installable
Recommends: php-tcpdf but it is not installable

当前安装...

  • Apache/2.2.22(Ubuntu)
  • MYSQL 5.5.53
  • PHP 版本 5.3.10-1ubuntu3.25

有人可以帮我吗?

答案1

你应该尝试从 ondrej repo 安装 php

sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5.6

否则使用aptitude自动安装任何缺失的依赖项

sudo apt-get install aptitude通过然后执行安装sudo aptitude phpmyadmin,然后它会显示存在的任何冲突以及修复它们的选项

相关内容