Error installing packages - ubuntu 20.04

Discussion in 'Installation/Configuration' started by mattdavison, Nov 3, 2022.

  1. mattdavison

    mattdavison New Member

    I have tried to install on ubuntu 20.04 only to be met with an error repeatedly
    Code:
    [ERROR] Exception occured: ISPConfigOSException -> Installing packages failed. (/ispconfig.ai.php:15)
    How can I overcome this error?

    Code:
    root@host:~# wget -O - https://get.ispconfig.org | sh -s -- --use-nginx  --use-php=7.4,8.0 --use-ftp-ports=40110-40210 --lang=en --unattended-upgrades
    --2022-11-03 12:16:28--  https://get.ispconfig.org/
    Resolving get.ispconfig.org (get.ispconfig.org)... 104.26.11.246, 172.67.75.112, 104.26.10.246, ...
    Connecting to get.ispconfig.org (get.ispconfig.org)|104.26.11.246|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2003 (2.0K) [application/octet-stream]
    Saving to: ‘STDOUT’
    
    -                             100%[=================================================>]   1.96K  --.-KB/s    in 0s
    
    2022-11-03 12:16:28 (74.5 MB/s) - written to stdout [2003/2003]
    
    WARNING! This script will reconfigure your complete server!
    It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!
    Type 'yes' if you really want to continue: yes
    [INFO] Starting perfect server setup for Ubuntu 20.04.5 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, software-properties-common, curl, ntp
    [ERROR] Exception occured: ISPConfigOSException -> Installing packages failed. (/ispconfig.ai.php:15)
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The error basically means that standard Ubuntu packages can not be installed on your server with apt. What happens if you run:

    Code:
    apt install ssh openssh-server nano vim-nox lsb-release apt-transport-https ca-certificates wget git gnupg software-properties-common curl ntp
     
  3. mattdavison

    mattdavison New Member

    Ran this and had this outcome...
    Code:
    root@host:~# apt install ssh openssh-server nano vim-nox lsb-release apt-transport-https ca-certificates wget git gnupg software-properties-common curl ntp
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'apt' instead of 'apt-transport-https'
    Package ssh is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      openssh-client openssh-server
    
    Package vim-nox is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'ssh' has no installation candidate
    E: Package 'vim-nox' has no installation candidate
    E: Unable to locate package ntp
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so the issue is in your base system, probably wrong sources.list content. Please post the content of /etc/apt/sources.list file. And youble check that your system is indeed an and or intel 64bit system (x86_64) and not an ARM cpu.
     
  5. mattdavison

    mattdavison New Member

    The CPU is an Ampere Arm-based processor - this is the content of the file:
    Code:
    # created by ISPConfig auto installer
    deb http://de.archive.ubuntu.com/ubuntu/ focal main restricted
    deb http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted
    deb http://de.archive.ubuntu.com/ubuntu/ focal universe
    deb http://de.archive.ubuntu.com/ubuntu/ focal-updates universe
    deb http://de.archive.ubuntu.com/ubuntu/ focal multiverse
    deb http://de.archive.ubuntu.com/ubuntu/ focal-updates multiverse
    deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu focal-security main restricted
    deb http://security.ubuntu.com/ubuntu focal-security universe
    deb http://security.ubuntu.com/ubuntu focal-security multiverse
    
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Then this can't work, the docs for the auto-installer clearly state that it is for x86_64 CPUs only. See:

    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/

     
  7. mattdavison

    mattdavison New Member

  8. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    follow the perfect server tutorial instead. there will be a couple of packages not available to arm systems, or with slightly different package names, which you can make adjustments for. you will still get a fully working ispconfig system.
    i've done it on aws graviton2 based systems. not sure just how different the ampere altra is to that, but they're both based on the arm neoverse n1, as far as i can tell it's just a different number of cores and a different clock speed. so i'd think the tutorials would still work for you.
     
  9. mattdavison

    mattdavison New Member

    Are you able to link this specific guide?
     
  10. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    hmm.. apparently not... it doesn't look like there's one for ubuntu 20.04 using nginx.
    there's this one for apache: https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/
    i would say just follow that one. but if you really want nginx instead, still follow the apache tutorial, but replace the apache specific parts with the nginx specific parts from the 18.04 nginx tutorial: https://www.howtoforge.com/tutorial...u-18-04-nginx-bind-dovecot-and-ispconfig-3/2/

    should just be a case of install nginx instead of apache, don't install a couple of apache related packages. and apply the nginx vhost configs for phpmyadmin and roundcube instead of the apache ones.
     

Share This Page