我使用这些命令在 Ubuntu Server 18.04 上安装 PHP 5.6
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php5.6
安装 PHP5.6 后 apt-get update 不起作用
错误:
Err:8 packages.sury.org/php bionic Release 404 Not Found [IP: 2001:1488:ac15:ff90::150 443] Reading package lists... Done
E: The repository 'packages.sury.org/php bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
请帮我!
答案1
打开“软件和更新”并查找“其他软件”选项卡。取消选中“packages.sury.org/php”网址并再次尝试“apt update”。