ziyouhua
V2EX  ›  服务器

请问宝塔国际版为什么安装不了 Nginx 或 Apache?

  •  
  •   ziyouhua · Oct 8, 2023 via Android · 1828 views
    This topic created in 953 days ago, the information mentioned may be changed or developed.
    代码最后报错是

    www/server/panel/install/public.sh: line 126: cmake: command not found
    Ubuntu 22.04.3 LTS
    \l
    Bit:64 Mem:957M Core:1 gcc:11.4.0 cmake:
    Linux 6.4.11-x64v3-xanmod1 x86_64
    ERROR: nginx-1.19.8 installation failed.
    cat: /etc/redhat-release: No such file or directory
    安装失败,请截图以上报错信息发帖至论坛 www.bt.cn/bbs 求助

    换了安装 Apache ,也类似的报错代码。
    7 replies    2023-10-09 20:56:20 +08:00
    ysc3839
        1
    ysc3839  
       Oct 8, 2023 via Android
    sudo apt install cmake
    ziyouhua
        2
    ziyouhua  
    OP
       Oct 8, 2023 via Android
    依然如此,sudo apt install cmake 后代码报错:After this operation, 33.5 MB of additional disk space will be used.
    E: You don't have enough free space in /var/cache/apt/archives/.
    sunorg
        3
    sunorg  
       Oct 8, 2023 via Android
    空间不够。
    OBNtHBZY3N3lxGVT
        4
    OBNtHBZY3N3lxGVT  
       Oct 9, 2023
    为啥不直接 sudo apt install nginx 和 apache ?
    JensenQian
        5
    JensenQian  
       Oct 9, 2023 via Android
    换 caddy 试下
    missuo
        6
    missuo  
       Oct 9, 2023 via iPhone
    你安装的 Ubuntu 22 镜像应该有问题,建议换 Debian 11/12
    julyclyde
        7
    julyclyde  
       Oct 9, 2023
    从错误信息来看,选择的是编译安装这种错误做法,以及有假设在 redhat 系 linux 发行版上工作
    而这俩条件你都不具备
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4843 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 09:41 · PVG 17:41 · LAX 02:41 · JFK 05:41
    ♥ Do have faith in what you're doing.