在Ubuntu Server 18.04上找不到软件包phpmyadmin

时间:2018-08-05 08:11:21

标签: linux ubuntu phpmyadmin

每当我尝试在ubuntu服务器18.04上安装phpmyadmin时,都会出现以下错误

sudo apt install phpmyadmin php-mbstring php-gettext
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package phpmyadmin
E: Unable to locate package php-mbstring
E: Unable to locate package php-gettext

我发现大多数线程建议使用apt进行更新和升级,但这样做无济于事,我在第四行也得到了该错误

Err:5 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu bionic Release
  404  Not Found [IP: 91.189.95.83 80]
Hit:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:7 http://download.webmin.com/download/repository sarge Release
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu bionic Release' does not have a Release file.

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:3)

在Ubuntu Server 18.04上,apt来源列表很短而且很安全。如果要安装phpmyadmin或autossh或主要来源列表中不支持的其他软件包数量,则应调整来源列表。

$ sudo apt edit-sources

您可以使用以下列表:

deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

更多信息可以在这里找到: handyman.dulare.com/ubuntu-18-04-bionic-unable-to-locate-package...