VPS侦探论坛

 找回密码
 注册
查看: 1543|回复: 7

您好,Ubuntu 22.04安装PHP和LNMP失败

[复制链接]
发表于 2023-5-17 04:52:39 | 显示全部楼层 |阅读模式


已格式化并重装两次一直失败!烦请大佬帮忙看看,跪谢!

报错:


Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!


服务器系统及版本:

root@VM3364636A844F739:~/lnmp1.8# uname -a ; cat /etc/os-release
Linux VM3364636A844F739 5.15.0-30-generic #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy


日志链接:
https://t.wss.ink/f/b8638byenb7




美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-5-17 08:53:00 | 显示全部楼层


为啥不用最新版
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-5-17 12:20:24 | 显示全部楼层

你用的lnmp 1.8,lnmp 1.8发布时ubuntu 22.04都还没发布,ubuntu 22.04肯定无法支持
直接下载lnmp 2.0进行安装
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-5-17 13:59:31 | 显示全部楼层




嘿嘿 小白不太懂 感谢回复!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-5-17 14:03:33 | 显示全部楼层

licess 发表于 2023-5-17 12:20
你用的lnmp 1.8,lnmp 1.8发布时ubuntu 22.04都还没发布,ubuntu 22.04肯定无法支持
直接下载lnmp 2.0进行 ...

您好 我重新安装了lnmp2.0,还是不行诶,这次是:
Nginx: OK
Error: MySQL install failed.
PHP: OK
PHP-FPM: OK
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

日志链接:https://t.wss.ink/f/b8a27pfuidf

挠头

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2023-5-17 14:09:53 | 显示全部楼层

我再尝试下Generic Binaries安装哈 不好意思看漏了
 楼主| 发表于 2023-5-17 15:16:04 | 显示全部楼层

用Generic Binaries安装还是不行诶,这次是
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

日志链接:https://t.wss.ink/f/b8akwjj89mn
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-5-18 08:15:49 | 显示全部楼层

The following additional packages will be installed:
  libjpeg-turbo8 libjpeg-turbo8-dev libjpeg8 libjpeg8-dev
The following NEW packages will be installed:
  libjpeg-dev libjpeg-turbo8 libjpeg-turbo8-dev libjpeg8 libjpeg8-dev
0 upgraded, 5 newly installed, 0 to remove and 173 not upgraded.
Need to get 397 kB of archives.
After this operation, 1620 kB of additional disk space will be used.
Ign:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8 amd64 2.1.2-0ubuntu1
Ign:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8-dev amd64 2.1.2-0ubuntu1
Ign:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8 amd64 8c-2ubuntu10
Ign:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8-dev amd64 8c-2ubuntu10
Ign:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-dev amd64 8c-2ubuntu10
Ign:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8 amd64 2.1.2-0ubuntu1
Ign:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8-dev amd64 2.1.2-0ubuntu1
Ign:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8 amd64 8c-2ubuntu10
Ign:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8-dev amd64 8c-2ubuntu10
Ign:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-dev amd64 8c-2ubuntu10
Ign:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8 amd64 2.1.2-0ubuntu1
Ign:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8-dev amd64 2.1.2-0ubuntu1
Ign:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8 amd64 8c-2ubuntu10
Ign:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8-dev amd64 8c-2ubuntu10
Ign:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-dev amd64 8c-2ubuntu10
Err:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8 amd64 2.1.2-0ubuntu1
  Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.38), connection timed out
Err:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8-dev amd64 2.1.2-0ubuntu1
  Unable to connect to archive.ubuntu.com:http:
Err:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8 amd64 8c-2ubuntu10
  Unable to connect to archive.ubuntu.com:http:
Err:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8-dev amd64 8c-2ubuntu10
  Unable to connect to archive.ubuntu.com:http:
Err:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-dev amd64 8c-2ubuntu10
  Unable to connect to archive.ubuntu.com:http:
E: Failed to fetch http://archive.ubuntu.com/ubuntu ... -0ubuntu1_amd64.deb  Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.38), connection timed out
E: Failed to fetch http://archive.ubuntu.com/ubuntu ... -0ubuntu1_amd64.deb  Unable to connect to archive.ubuntu.com:http:
E: Failed to fetch http://archive.ubuntu.com/ubuntu ... 2ubuntu10_amd64.deb  Unable to connect to archive.ubuntu.com:http:
E: Failed to fetch http://archive.ubuntu.com/ubuntu ... 2ubuntu10_amd64.deb  Unable to connect to archive.ubuntu.com:http:
E: Failed to fetch http://archive.ubuntu.com/ubuntu ... 2ubuntu10_amd64.deb  Unable to connect to archive.ubuntu.com:http:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


可能网络环境有问题或你系统上的源目前有问题,依赖包装不上肯定就安装不了
ubuntu的官方源不行就换个其他源安装,更换正确的源后再进行安装
如果你网络有问题可能就得问你vps服务商
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-3 05:08 , Processed in 0.027746 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表