VPS侦探论坛

 找回密码
 注册
查看: 119|回复: 4

2.0安装 除了MySQL其它都失败了

[复制链接]
发表于 2023-9-6 15:22:35 | 显示全部楼层 |阅读模式

Debian 12 除了MySQL其它都失败了



  1. Press any key to install...or Press Ctrl+c to cancel

  2. You will install lnmp stack.
  3. nginx-1.24.0
  4. mysql-8.0.33
  5. php-8.2.6
  6. Enable InnoDB: y
  7. Print lnmp.conf infomation...
  8. Download Mirror: https://soft.vpser.net
  9. Nginx Additional Modules:
  10. PHP Additional Modules:
  11. Database Directory: /usr/local/mysql/var
  12. Default Website Directory: /home/wwwroot/default
  13. LNMP Version: 2.0
  14. Debian 12
  15. Debian GNU/Linux 12 \n \l

  16. PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
  17. NAME="Debian GNU/Linux"
  18. VERSION_ID="12"
  19. VERSION="12 (bookworm)"
  20. VERSION_CODENAME=bookworm
  21. ID=debian
  22. HOME_URL="https://www.debian.org/"
  23. SUPPORT_URL="https://www.debian.org/support"
  24. BUG_REPORT_URL="https://bugs.debian.org/"
  25. Linux debian 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-1 (2023-07-14) x86_64 GNU/Linux
  26. Memory is: 15941 MB
  27. Filesystem      Size  Used Avail Use% Mounted on
  28. udev            7.8G     0  7.8G   0% /dev
  29. tmpfs           1.6G  1.2M  1.6G   1% /run
  30. /dev/sdb2       273G  1.4G  257G   1% /
  31. tmpfs           7.8G     0  7.8G   0% /dev/shm
  32. tmpfs           5.0M     0  5.0M   0% /run/lock
  33. /dev/sdb1       511M   12M  500M   3% /boot/efi
  34. tmpfs           1.6G     0  1.6G   0% /run/user/0
  35. OpenSSL 3.0.9 30 May 2023 (Library: OpenSSL 3.0.9 30 May 2023)
  36. Server Location: CN
  37. Hosts: ok.
  38. PING lnmp.org (47.254.56.155) 56(84) bytes of data.

  39. --- lnmp.org ping statistics ---
  40. 1 packets transmitted, 0 received, 100% packet loss, time 0ms
  41. DNS...ok
  42. Try http://soft.vpser.net ...
  43. http://soft.vpser.net http code: 302
  44. PING in.vpser.net (81.70.180.148) 56(84) bytes of data.
  45. 64 bytes from 81.70.180.148 (81.70.180.148): icmp_seq=1 ttl=54 time=38.9 ms
  46. 64 bytes from 81.70.180.148 (81.70.180.148): icmp_seq=2 ttl=54 time=38.6 ms
  47. 64 bytes from 81.70.180.148 (81.70.180.148): icmp_seq=3 ttl=54 time=38.8 ms

  48. --- in.vpser.net ping statistics ---
  49. 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
  50. rtt min/avg/max/mdev = 38.565/38.746/38.858/0.129 ms
  51. Setting timezone...
  52. Hit:1 https://mirrors.aliyun.com/debian bullseye InRelease
  53. Hit:2 https://mirrors.aliyun.com/debian-security bullseye-security InRelease
  54. Hit:3 https://mirrors.aliyun.com/debian bullseye-updates InRelease
  55. Hit:4 https://mirrors.aliyun.com/debian bullseye-backports InRelease
  56. Reading package lists...
  57. [+] Installing ntp...
  58. Reading package lists...
  59. Building dependency tree...
  60. Reading state information...
  61. The following NEW packages will be installed:
  62.   ntpdate
  63. 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
  64. Need to get 156 kB of archives.
  65. After this operation, 245 kB of additional disk space will be used.
  66. Get:1 https://mirrors.aliyun.com/debian bullseye/main amd64 ntpdate amd64 1:4.2.8p15+dfsg-1 [156 kB]
  67. Fetched 156 kB in 1s (312 kB/s)
  68. Selecting previously unselected package ntpdate.
  69. (Reading database ...
  70. (Reading database ... 5%
  71. (Reading database ... 10%
  72. (Reading database ... 15%
  73. (Reading database ... 20%
  74. (Reading database ... 25%
  75. (Reading database ... 30%
  76. (Reading database ... 35%
  77. (Reading database ... 40%
  78. (Reading database ... 45%
  79. (Reading database ... 50%
  80. (Reading database ... 55%
  81. (Reading database ... 60%
  82. (Reading database ... 65%
  83. (Reading database ... 70%
  84. (Reading database ... 75%
  85. (Reading database ... 80%
  86. (Reading database ... 85%
  87. (Reading database ... 90%
  88. (Reading database ... 95%
  89. (Reading database ... 100%
  90. (Reading database ... 28935 files and directories currently installed.)
  91. Preparing to unpack .../ntpdate_1%3a4.2.8p15+dfsg-1_amd64.deb ...
  92. Unpacking ntpdate (1:4.2.8p15+dfsg-1) ...
  93. Setting up ntpdate (1:4.2.8p15+dfsg-1) ...
  94. Processing triggers for man-db (2.11.2-2) ...
  95. 6 Sep 14:48:50 ntpdate[2235]: adjust time server 119.28.183.184 offset -0.000976 sec
  96. Wed Sep  6 02:48:50 PM CST 2023
  97. [-] apt-get remove packages...
  98. Hit:1 https://mirrors.aliyun.com/debian bullseye InRelease
  99. Hit:2 https://mirrors.aliyun.com/debian-security bullseye-security InRelease
  100. Hit:3 https://mirrors.aliyun.com/debian bullseye-updates InRelease
  101. Hit:4 https://mirrors.aliyun.com/debian bullseye-backports InRelease
  102. Reading package lists...
  103. Reading package lists...
  104. Building dependency tree...
  105. Reading state information...
  106. Package 'apache2' is not installed, so not removed
  107. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  108. Reading package lists...
  109. Building dependency tree...
  110. Reading state information...
  111. Package 'apache2-doc' is not installed, so not removed
  112. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  113. Reading package lists...
  114. Building dependency tree...
  115. Reading state information...
  116. Package 'apache2-utils' is not installed, so not removed
  117. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  118. Reading package lists...
  119. Building dependency tree...
  120. Reading state information...
  121. Package 'apache2.2-common' is not installed, so not removed
  122. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  123. Reading package lists...
  124. Building dependency tree...
  125. Reading state information...
  126. Package 'apache2.2-bin' is not installed, so not removed
  127. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  128. Reading package lists...
  129. Building dependency tree...
  130. Reading state information...
  131. E: Unable to locate package apache2-mpm-prefork
  132. Reading package lists...
  133. Building dependency tree...
  134. Reading state information...
  135. Package 'apache2-doc' is not installed, so not removed
  136. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  137. Reading package lists...
  138. Building dependency tree...
  139. Reading state information...
  140. E: Unable to locate package apache2-mpm-worker
  141. Reading package lists...
  142. Building dependency tree...
  143. Reading state information...
  144. Package 'php5' is not installed, so not removed
  145. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  146. Reading package lists...
  147. Building dependency tree...
  148. Reading state information...
  149. E: Unable to locate package php5-common
  150. Reading package lists...
  151. Building dependency tree...
  152. Reading state information...
  153. E: Unable to locate package php5-cgi
  154. Reading package lists...
  155. Building dependency tree...
  156. Reading state information...
  157. Package 'php5-cli' is not installed, so not removed
  158. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  159. Reading package lists...
  160. Building dependency tree...
  161. Reading state information...
  162. Package 'php5-mysql' is not installed, so not removed
  163. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  164. Reading package lists...
  165. ============================== Check install ==============================
  166. Checking ...
  167. Error: Nginx install failed.
  168. MySQL: OK
  169. Error: PHP install failed.
  170. Sorry, Failed to install LNMP!
  171. Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
  172. You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.[0
复制代码


https://t.wss.ink/f/c49l10o80ar 复制链接到浏览器打开
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-9-6 15:50:29 | 显示全部楼层


https://t.wss.ink/f/c49l10o80ar  日志文件
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-9-6 20:33:09 | 显示全部楼层

Debian 12的系统设置Debian 11的源怎么可能会安装成功
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-9-7 08:00:34 | 显示全部楼层



licess 发表于 2023-9-6 20:33
Debian 12的系统设置Debian 11的源怎么可能会安装成功

阿里云没看到有12的源呀,怎么设置12的源
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-9-7 08:54:05 | 显示全部楼层

确实源的问题,记录一下方法

我用的是清华源:https://mirror.tuna.tsinghua.edu.cn/help/debian/
工具自己的版本现在源,我用的是 12

  1. # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
  2. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
  3. # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware

  4. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
  5. # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware

  6. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
  7. # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware

  8. # deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
  9. # # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware

  10. deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  11. # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
复制代码


编辑 /etc/apt/sources.list 文件,把上面的源地址添加到文件中
  1. vi /etc/apt/sources.list
复制代码


保存退出然后更新一下:
  1. apt-get update
复制代码


美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2023-9-24 15:48 , Processed in 0.026878 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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