无法在 Ubuntu Server 18.04 上找到软件包 phpmyadmin

new*_*oid 4 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
Run Code Online (Sandbox Code Playgroud)

我发现的大多数线程都建议使用 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.
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?

小智 7

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

$ sudo apt edit-sources
Run Code Online (Sandbox Code Playgroud)

您可以使用以下列表:

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
Run Code Online (Sandbox Code Playgroud)

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