yfz30286 发表于 2023-5-17 04:52:39

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


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

报错:


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



hutaoseven 发表于 2023-5-17 08:53:00

为啥不用最新版

licess 发表于 2023-5-17 12:20:24

你用的lnmp 1.8,lnmp 1.8发布时ubuntu 22.04都还没发布,ubuntu 22.04肯定无法支持
直接下载lnmp 2.0进行安装

yfz30286 发表于 2023-5-17 13:59:31

hutaoseven 发表于 2023-5-17 08:53
为啥不用最新版

嘿嘿 小白不太懂 感谢回复!

yfz30286 发表于 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

挠头

yfz30286 发表于 2023-5-17 14:09:53

我再尝试下Generic Binaries安装哈 不好意思看漏了

yfz30286 发表于 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

licess 发表于 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/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.1.2-0ubuntu1_amd64.debCould 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/pool/main/libj/libjpeg-turbo/libjpeg-turbo8-dev_2.1.2-0ubuntu1_amd64.debUnable to connect to archive.ubuntu.com:http:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg8-empty/libjpeg8_8c-2ubuntu10_amd64.debUnable to connect to archive.ubuntu.com:http:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg8-empty/libjpeg8-dev_8c-2ubuntu10_amd64.debUnable to connect to archive.ubuntu.com:http:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg8-empty/libjpeg-dev_8c-2ubuntu10_amd64.debUnable 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服务商
页: [1]
查看完整版本: 您好,Ubuntu 22.04安装PHP和LNMP失败