英文:
php8.2 in ubuntu 18.04 : E: Unable to locate package php8.2
问题
以下是翻译好的内容:
需要一些帮助,我无法在Ubuntu 18中安装php8.2-fpm,以下是我的命令:
sudo apt install lsb-release apt-transport-https ca-certificates software-properties-common -y
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2
以下是响应:
$ sudo apt-get install php8.2 php8.2-fpm
读取包列表... 完成
正在构建依赖关系树
正在读取状态信息... 完成
E: 无法定位软件包 php8.2
E: 找不到任何与 glob 'php8.2' 匹配的软件包
E: 找不到任何与 regex 'php8.2' 匹配的软件包
E: 无法定位软件包 php8.2-fpm
E: 找不到任何与 glob 'php8.2-fpm' 匹配的软件包
E: 找不到任何与 regex 'php8.2-fpm' 匹配的软件包
<details>
<summary>英文:</summary>
Need some help, I cant install php8.2-fpm in ubuntu 18, heres my commands
sudo apt install lsb-release apt-transport-https ca-certificates software-properties-common -y
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2
here is the response
$ sudo apt-get install php8.2 php8.2-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php8.2
E: Couldn't find any package by glob 'php8.2'
E: Couldn't find any package by regex 'php8.2'
E: Unable to locate package php8.2-fpm
E: Couldn't find any package by glob 'php8.2-fpm'
E: Couldn't find any package by regex 'php8.2-fpm'
</details>
# 答案1
**得分**: 3
Ubuntu 18.04(Bionic Beaver)现在[不再支持免费提供的扩展支持计划之外](https://ubuntu.com/18-04)。Ondřej Surý's的PHP软件包仅适用于受支持的Ubuntu版本,因此[不再适用于Ubuntu 18.04](https://github.com/oerdnj/deb.sury.org/issues/1922)。
这也在[该存储库的常见问题解答中进行了讨论](https://github.com/oerdnj/deb.sury.org/wiki/Frequently-Asked-Questions#supported-distributions),详细说明了为什么这些文件立即不可用:
> **但这只是一个文件...**
>
> 不,它从来都不只是一个文件。这是一个安全风险。PHP发布版本经常发现安全问题,任何一个“只是一个文件”的东西都可能累积大量安全问题。这没问题,每个软件都有漏洞,因此需要定期更新。
>
> 提供未维护的软件包只是为了“方便”,这是不负责任的。这也会给该存储库的维护者增加额外负担,因为这不仅会产生“为什么软件包不可用”的问题,还会产生“为什么软件包没有更新”的问题。
>
> 这不仅仅是“只是一个文件”。
您必须要么[支付扩展支持费用](https://php.freexian.com/),要么升级到新版本的Ubuntu。
<details>
<summary>英文:</summary>
Ubuntu 18.04 (Bionic Beaver) is now [no longer supported outside of paid extended support plans](https://ubuntu.com/18-04). Ondřej Surý's PHP packages are only available for supported versions of Ubuntu, so [are no longer available for Ubuntu 18.04](https://github.com/oerdnj/deb.sury.org/issues/1922).
This is also [discussed in the FAQ for that repository](https://github.com/oerdnj/deb.sury.org/wiki/Frequently-Asked-Questions#supported-distributions), with details of why the files are immediately unavailable:
> **But it's "just a file"...**
>
> No, it's never "just a file". It's a security risk. Security issues are regularly found in PHP releases and any "just a file" might accumulate a wealth of them. That's OK, every software has bugs, and henceforth needs to be update on regular basis.
>
> It would be irresponsible to provide unmaintained packages just for "convenience". It would also create additional burden on the maintainer of this repository because instead of "why the packages are not available" this would just generate questions like "why the package are not updated".
>
> It's not "just a file".
You will have to either [pay for extended support](https://php.freexian.com/), or update to a newer version of Ubuntu.
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论