【问题标题】:Unable to locate package phpmyadmin on Ubuntu Server 18.04无法在 Ubuntu Server 18.04 上找到包 phpmyadmin
【发布时间】:2019-01-12 12:35:35
【问题描述】:

每当我尝试在我的 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.

有人可以帮忙吗?

【问题讨论】:

标签: linux ubuntu phpmyadmin


【解决方案1】:

在 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...

【讨论】:

    猜你喜欢
    • 2019-08-20
    • 2020-06-29
    • 2019-01-17
    • 2020-01-02
    • 2019-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多