VPS侦探论坛

 找回密码
 注册
查看: 2991|回复: 5

WSL安装lnmp1.6怎么都装不上PHP,其他都可以,求大神帮忙看看

[复制链接]
发表于 2020-5-15 21:26:20 | 显示全部楼层 |阅读模式

本帖最后由 lansh2012 于 2020-5-15 21:29 编辑

链接: https://pan.baidu.com/s/12d2463xdEXOtHmnRXLVO7w 提取码: m3mh
环境是win10下的wslUbuntu 20.04 LTS
.sleep: cannot read realtime clock: Invalid argument
.sleep: cannot read realtime clock: Invalid argument
*
Add php-fpm service at system startup...
update-rc.d: error: unable to read /etc/init.d/php-fpm
include/end.sh: line 56: /etc/init.d/php-fpm: No such file or directory
============================== Check install ==============================
Checking ...
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.

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


ubuntu 20.04等1.6版本后发布的linux版本都需要使用1.7进行安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-5-16 15:26:48 | 显示全部楼层

licess 发表于 2020-5-16 09:17
ubuntu 20.04等1.6版本后发布的linux版本都需要使用1.7进行安装

用了1.7beta安装也是装不上PHP
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-5-16 17:45:59 | 显示全部楼层



lansh2012 发表于 2020-5-16 15:26
用了1.7beta安装也是装不上PHP

你选的什么php版本?如果是php 7.1以下的版本的话新linux发行版肯定都是装不了的 https://lnmp.org/install.html
2020年左右发行的linux版本都只能选php 7.1或更高版本
还是安装错误需要按反馈必读要求上传日志,百度盘下不动
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-5-18 09:33:00 | 显示全部楼层

本帖最后由 lansh2012 于 2020-5-18 09:35 编辑
licess 发表于 2020-5-16 17:45
你选的什么php版本?如果是php 7.1以下的版本的话新linux发行版肯定都是装不了的 https://lnmp.org/insta ...

谢谢管理,根据你的提示。我后来又下载了LNMP1.7的beta,装了7.1.33,还是装不上。压缩后的文件还是超过了论坛的限制,所以我传了推荐的网盘,麻烦管理大大帮忙看看。下面是网盘的地址http://tmp.link/f/5ec1e59257c73

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

发表于 2020-5-18 14:17:30 | 显示全部楼层

Ign:1 http://mirrors.163.com/ubuntu hardy InRelease
Ign:2 http://opensource.wandisco.com/ubuntu focal InRelease
Err:3 http://mirrors.163.com/ubuntu hardy Release
  404  Not Found [IP: 59.111.0.251 80]
Err:4 http://opensource.wandisco.com/ubuntu focal Release
  404  Not Found [IP: 54.248.108.17 80]
Ign:5 http://mirror.lzu.edu.cn/ubuntu precise InRelease
Get:6 http://mirror.lzu.edu.cn/ubuntu precise-security InRelease [55.7 kB]
Ign:7 http://tw.archive.ubuntu.com/ubuntu hardy InRelease
Get:8 http://mirror.lzu.edu.cn/ubuntu precise-updates InRelease [55.7 kB]
Err:9 http://tw.archive.ubuntu.com/ubuntu hardy Release
  404  Not Found [IP: 140.110.240.80 80]
Get:10 http://mirror.lzu.edu.cn/ubuntu precise-proposed InRelease [55.7 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:12 http://mirror.lzu.edu.cn/ubuntu precise-backports InRelease [55.7 kB]
Hit:13 http://archive.ubuntu.com/ubuntu focal InRelease
Get:14 http://mirror.lzu.edu.cn/ubuntu precise Release [49.6 kB]
Ign:15 http://ppa.launchpad.net/dominik-stadler/subversion-1.8/ubuntu focal InRelease
Get:16 http://mirror.lzu.edu.cn/ubuntu precise Release.gpg [198 B]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Err:6 http://mirror.lzu.edu.cn/ubuntu precise-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
Err:18 http://ppa.launchpad.net/dominik-stadler/subversion-1.8/ubuntu focal Release
  404  Not Found [IP: 91.189.95.83 80]
Err:8 http://mirror.lzu.edu.cn/ubuntu precise-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
Get:19 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Err:10 http://mirror.lzu.edu.cn/ubuntu precise-proposed InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
Err:12 http://mirror.lzu.edu.cn/ubuntu precise-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
Ign:16 http://mirror.lzu.edu.cn/ubuntu precise Release.gpg
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [94.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [30.5 kB]

你系统是Ubuntu 20.04,codename是focal,而你系统源设置居然还有hardy、precise,hardy是十几年前的ubuntu 8.04,precise是Ubuntu 12.04
你这系统让你这么设置源依赖关系肯定是全出问题了,建议重装,要不就修正好源然后aptitude慢慢修复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-21 17:58 , Processed in 0.027185 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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