He intentado actualizar la versión de PHP. pero solo obtengo errores.
Probé este 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-maxminddbpero me sale este error.
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 ...¿Como puedó resolver esté problema?
He probado mi tutorial. pero solo recibe el mismo error como este.
Pruebe apt full-upgrade y apt upgrade y el último comando apt get update pruebe estos tres comandos y reinicie la máquina que resolverá.
Como se indica en la descripción de ppa :
Solo se proporcionan versiones compatibles de PHP ( http://php.net/supported-versions.php ) para versiones compatibles de Ubuntu ( https://wiki.ubuntu.com/Releases ).
Ubuntu 16.04 ya no es compatible desde abril de 2021, por lo que creo que ya no hay una rama xenial de php 8.0. Sugeriría actualizar Ubuntu a la ver. 20.04 LTS para poder usar php 8.0