[solved] Error when using autoinstaller

Discussion in 'Installation/Configuration' started by Krikey, Apr 21, 2021.

  1. Krikey

    Krikey New Member

    Returning to ISPConfig after a long while and following the https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ howto on a Ubuntu 20.04 container.

    However I'm getting an error after running the command
    Code:
     wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=40110-40210 --unattended-upgrades
    Code:
    [INFO] Starting perfect server setup for Ubuntu 20.04.2 LTS
    [INFO] Checking hostname.
    [INFO] Configuring apt repositories.
    [INFO] Updating packages
    [INFO] Updated packages
    [INFO] Installing packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, ntp
    [INFO] Installed packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, ntp
    [INFO] Activating rspamd repository.
    [INFO] Activating sury php repository.
    sh: 1: add-apt-repository: not found
    [ERROR] Exception occured: ISPConfigOSException -> Command add-apt-repository -y ppa:ondrej/php failed. (/ispconfig.ai.php:15)
    


    This is from the setup-20210421093252.log file

    Code:
    21.04.2021-09:32:56 - /lib/os/class.ISPConfigUbuntu2004OS.inc.php:68: [INFO] Activating sury php repository.
    21.04.2021-09:32:56 - /lib/os/class.ISPConfigBaseOS.inc.php:90: [DEBUG] CMD: add-apt-repository -y ppa:ondrej/php returned code 127
    21.04.2021-09:32:56 - /lib/class.ISPConfig.inc.php:117: [DEBUG] Trying to autoload class file "/tmp/ispconfig-ai/lib/exceptions/class.ISPConfigException.inc.php" for class "ISPConfigOSException"
    21.04.2021-09:32:56 - /ispconfig.ai.php:15: [ERROR] Exception occured: ISPConfigOSException -> Command add-apt-repository -y ppa:ondrej/php failed.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run:

    sudo apt install software-properties-common

    and then run the auto installer again. Normally, this package is installed on a default Debian and Ubuntu system.
     
    Krikey likes this.
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    How did you install Ubuntu 20.04?
    Run
    Code:
    apt update && apt install software-properties-common
    to resolve this issue and then run the installer again.
     
    Krikey likes this.
  4. Krikey

    Krikey New Member

    I actually used a pre-defined container image for Proxmox 6 so I didn't actually install Ubuntu, so presumably there was something different about this template.

    After running the command above, the installer continued but errored out again:

    Code:
    [ERROR] Exception occured: ISPConfigOSException -> Command mount -o remount / 2>&1 && quotaoff -avug 2>&1 && quotacheck -avugm 2>&1 && quotaon -avug 2>&1 failed. (/ispconfig.ai.php:15)
    
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Do a clean install of Ubuntu, this should work.
     
  6. Krikey

    Krikey New Member

    If I need to do a clean install that would mean not using LXC containers wouldn't it? Should I be using a QEMU VM instead and install using an ISO image?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Depending on your proxmox VM type, you might not be able to use quota if the underlying VM does not support quota. LXC containers do not support Linux quota. Use the --no-quota option of the installer to install your system without quota support or switch to a KVM-based (Qemu) VM in Proxmox.
     
    Krikey and Th0m like this.
  8. Krikey

    Krikey New Member

    Thanks, the --no-quota option helped.
     

Share This Page