我使用 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
答案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