无法安装 PHPmyadmin(找不到包)

无法安装 PHPmyadmin(找不到包)

我使用 Ubuntu 16.04,在过去的一天中对系统进行了各种更改。我无法在此处准确展示所有这些过程,但我确实针对此特定问题寻求建议,以了解发生了什么:

执行时:

sudo apt-get install phpmyadmin

我得到:

E: Unable to locate package phpmyadmin

我在网上没有找到任何有用的解决方案。


更新 1 - Arduino Sentinel 更新:

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: php but it is not installable
              Depends: php-mbstring
              Depends: libjs-sphinxdoc (>= 1.0) but it is not installable
              Depends: dbconfig-mysql but it is not installable or
                       dbconfig-no-thanks but it is not installable or
                       dbconfig-common (< 2.0.0) but it is not installable
              Depends: php-php-gettext but it is not installable or
                       php-gettext (<= 1:7.0) but it is not installable
              Recommends: php-gd
              Recommends: php-bz2 but it is not installable
              Recommends: php-tcpdf but it is not installable
E: Unable to correct problems, you have held broken packages.

更新 2 - Arduino Sentinel 更新:

软件包 aptitude 不可用,但被另一个软件包引用。这可能意味着该软件包缺失、已过时或只能从其他来源获得

答案1

在安装之前phpmyadmin,您应该使用具有 sudo 权限的非 root 用户,如这里,你还应该安装完整的 LAMP(Linux、Apache、MySQL 和 PHP)。如果没有,那么你可以遵循本指南在 Ubuntu 上安装 LAMP

如果一切正常,添加这个 ppa

sudo add-apt-repository ppa:phpmyadmin/ppa
sudo apt-get update

然后安装 phpmyadmin

sudo apt-get install phpmyadmin

答案2

您需要安装 php、apache2、mysql-server

sudo apt-get install apache2 php mysql-server

然后你需要添加存储库

sudo add-apt-repository ppa:phpmyadmin/ppa

然后需要更新软件包列表:

sudo apt update

然后你可以安装:

sudo apt install phpmyadmin

相关内容