简体   繁体   English

无法在 Ubuntu 21.04 上安装 PHP8.0 和 php8.0-pgsql

[英]Unable to Install PHP8.0 and php8.0-pgsql on Ubuntu 21.04

I am trying to install php8.0-pgsql on my local system, but failed to install as version is not available on ubuntu release hairsuite.我正在尝试在我的本地系统上安装 php8.0-pgsql,但由于版本在 ubuntu 发布的 hairsuite 上不可用,所以安装失败。 So for this I have remove my PHP version from my local system and try to re-install the PHP8.0 on my local system but failed to install as I have implemented different solutions like PPA and certificates but no success.为此,我从本地系统中删除了 PHP 版本,并尝试在本地系统上重新安装 PHP8.0,但安装失败,因为我已经实施了不同的解决方案,如 PPA 和证书,但没有成功。 Now when run following commands to install PHP8.0 to system facing following error现在当运行以下命令将 PHP8.0 安装到系统时面临以下错误

installation commands安装命令

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php8.0
sudo apt install php8.0-common php8.0-cli

Error错误

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php8.0
E: Couldn't find any package by glob 'php8.0'

I don't know what is root cause of this issue as I have spent a lot of time in searching the errors but failed.我不知道这个问题的根本原因是什么,因为我花了很多时间来搜索错误但失败了。 Anyone suggest helpfull solution that how I can install php on my system with PHP8.0-pgsql too.任何人都建议我如何在我的系统上使用 PHP8.0-pgsql 安装 php 的有用解决方案。

Ubuntu 21.04 has reached its end of life in January 2022, and ondrej/php does not support any EOL version. Ubuntu 21.04 已到 2022 年 1 月生命周期结束, ondrej/php不支持任何 EOL 版本。 You need to upgrade your Ubuntu version first to be able to use this repository again您需要先升级您的 Ubuntu 版本才能再次使用此存储库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM