【发布时间】:2023-04-01 10:07:01
【问题描述】:
我已尝试升级 PHP 版本。但我只是得到错误。
我试过这个tutorial。
apt update
apt upgrade
apt install software-properties-common
add-apt-repository ppa:ondrej/nginx
apt update
apt upgrade
apt install php8.0 php8.0-cli php8.0-fpm php8.0-apcu php8.0-opcache
php8.0-common php8.0-pear php8.0-curl php8.0-zip php8.0-mcrypt php8.0-mysql
php8.0-mbstring php8.0-xml php8.0-gd php8.0-gmagick php8.0-imagick
php8.0-xmlrpc php7.3-maxminddb
但我收到此错误。
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php8.0
E: Couldn't find any package by glob 'php8.0'
E: Couldn't find any package by regex 'php8.0'
E: Unable to locate package php8.0-cli
E: Couldn't find any package by glob 'php8.0-cli'
E: Couldn't find any package by regex 'php8.0-cli'
E: Unable to locate package php8.0-fpm
E: Couldn't find any package by glob 'php8.0-fpm'
E: Couldn't find any package by regex 'php8.0-fpm'
E: Unable to locate package php8.0-apcu
E: Couldn't find any package by glob 'php8.0-apcu'
E: Couldn't find any package by regex 'php8.0-apcu'
E: Unable to locate package php8.0-opcache
...
我该如何解决这个问题?
我已经尝试过我的教程。但只是得到同样的错误。
【问题讨论】:
-
“如果您的服务器运行在过时的 Ubuntu 16 版本(或更低版本)上,您将无法再学习本教程!”
-
感谢您的建议。如何安装最新的 PHP 版本?
-
没有那个就没有办法了吗?
-
什么意思?请让我更详细地知道。 :)