php8.2在Ubuntu 18.04中:E: 无法找到软件包php8.2

huangapple go评论199阅读模式
英文:

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&#253;&#39;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),详细说明了为什么这些文件立即不可用:

&gt; **但这只是一个文件...**
&gt;
&gt; 不,它从来都不只是一个文件。这是一个安全风险。PHP发布版本经常发现安全问题,任何一个“只是一个文件”的东西都可能累积大量安全问题。这没问题,每个软件都有漏洞,因此需要定期更新。
&gt;
&gt; 提供未维护的软件包只是为了“方便”,这是不负责任的。这也会给该存储库的维护者增加额外负担,因为这不仅会产生“为什么软件包不可用”的问题,还会产生“为什么软件包没有更新”的问题。
&gt;
&gt; 这不仅仅是“只是一个文件”。

您必须要么[支付扩展支持费用](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&#253;&#39;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:

&gt; **But it&#39;s &quot;just a file&quot;...**
&gt;
&gt; No, it&#39;s never &quot;just a file&quot;. It&#39;s a security risk. Security issues are regularly found in PHP releases and any &quot;just a file&quot; might accumulate a wealth of them. That&#39;s OK, every software has bugs, and henceforth needs to be update on regular basis.
&gt; 
&gt; It would be irresponsible to provide unmaintained packages just for &quot;convenience&quot;. It would also create additional burden on the maintainer of this repository because instead of &quot;why the packages are not available&quot; this would just generate questions like &quot;why the package are not updated&quot;.
&gt;
&gt; It&#39;s not &quot;just a file&quot;.

You will have to either [pay for extended support](https://php.freexian.com/), or update to a newer version of Ubuntu.



</details>



huangapple
  • 本文由 发表于 2023年8月9日 11:22:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76864353-2.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定