由于缺少 phpMyAdmin PPA,无法将 Ubuntu 服务器 16.04 更新至 18.04

由于缺少 phpMyAdmin PPA,无法将 Ubuntu 服务器 16.04 更新至 18.04

我正在尝试安装 16.04 的最新更新,以便升级到 18.04。我遇到了 phpMyAdmin PPA 错误,我理解这是由于原软件包维护者(nijel)已删除 PPA

Ign:20 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main all Packages
Ign:14 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en_US
Ign:21 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Err:16 http://ppa.launchpad.net/phpmyadmin/ppa/ubuntu xenial/main amd64 Packages
  404  Not Found [IP: 91.189.95.83 80]
Ign:17 http://ppa.launchpad.net/phpmyadmin/ppa/ubuntu xenial/main all Packages
Ign:18 http://ppa.launchpad.net/phpmyadmin/ppa/ubuntu xenial/main Translation-en_US
Ign:19 http://ppa.launchpad.net/phpmyadmin/ppa/ubuntu xenial/main Translation-en
Err:20 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
  403  Forbidden [IP: 91.189.95.83 80]
Ign:21 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Fetched 2,313 kB in 4s (486 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/phpmyadmin/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/phpmyadmin/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found [IP: 91.189.95.83 80]
E: Failed to fetch http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden [IP: 91.189.95.83 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

因此我尝试删除 PPA:

sudo add-apt-repository --remove ppa:nijel/phpmyadmin

但这不起作用:

Cannot add PPA: 'ppa:~nijel/ubuntu/phpmyadmin'.
The user named '~nijel' has no PPA named 'ubuntu/phpmyadmin'
Please choose from the following available PPAs:

我也尝试过这个:

sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.
sudo apt install phpmyadmin

但我明白:

Reading package lists... Done
Building dependency tree
Reading state information... Done
phpmyadmin is already the newest version (4:4.6.6-1+deb.cihar.com~xenial.2).

我该如何解决这个问题以便可以升级到 18.04?

答案1

你必须通过以下方式从系统中删除 PPA

sudo mv /etc/apt/sources.list.d/*nijel*.list ~/
sudo add-apt-repository -r ppa:phpmyadmin/ppa

然后将phpmyadmin包还原为来自官方存储库的版本

sudo apt-get install --reinstall phpmyadmin=4:4.5.4.1-2ubuntu2.1

然后运行sudo apt-get update以确保错误消失并再次运行sudo do-release-upgrade

相关内容