Error trying to install ISP3 on ubuntu 20.04 using the perfect server guide for ubuntu 20.04

Discussion in 'Installation/Configuration' started by tegazinho, Aug 1, 2022.

  1. tegazinho

    tegazinho Member

    Hello,
    I'm trying to install on a new fresh installed server and I'm getting errors with installing the packages.
    The command I'm running:
    Code:
    wget -O - https://get.ispconfig.org | sh -s -- --use-amavis --use-php=5.6,7.0,7.4,8.1 --use-certbot --no-dns --no-firewall --no-quota --no-ntp
    The error:
    Code:
    [INFO] Installing packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, software-properties-common
    [ERROR] Exception occured: ISPConfigOSException -> Installing packages failed. (/ispconfig.ai.php:15)
    Tried to installed them individually to see what's hanging, so for SSH:
    Code:
    root@redacted:~# apt install ssh
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    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
    
    E: Package 'ssh' has no installation candidate 
    For vim-nox
    Code:
    root@redacted:~# apt install vim-nox
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    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 'vim-nox' has no installation candidate
    And the rest of the packages install fine or they are already installed.
    I have the default repos on /etc/apt/sources.list and also installed build-essential before.

    So any ideas?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    cat /etc/os-release
     
  3. tegazinho

    tegazinho Member

    Sorry forgot to mention that is Arm64.
    Code:
    root@redacted:~# cat /etc/os-release
    NAME="Ubuntu"
    VERSION="20.04.4 LTS (Focal Fossa)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 20.04.4 LTS"
    VERSION_ID="20.04"
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    VERSION_CODENAME=focal
    UBUNTU_CODENAME=focal
    root@redacted:~#
    
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    While I have not used Ubuntu on ARM64, I have used Debian 11, and there the usual packages are available.
    How was this Ubuntu 20.04 installed? I would expect the usual packates like ssh and vim to be available form the usual repositories. Can you show /etc/apt/sources.list and contents of files in /etc/apt/sources.list.d/ -directory?
    What is shown when you run command
    Code:
    apt update
     
  5. tegazinho

    tegazinho Member

    sources.list
    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
    
    the apt update actually show a few repos that are not reachable, but the repos on the sources.list were generated by the ispconfig auto installer script
    Code:
    Err:2 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
      404  Not Found [IP: 185.125.190.36 80]
    Err:17 http://de.archive.ubuntu.com/ubuntu focal-updates/main arm64 Packages
      404  Not Found [IP: 141.30.62.25 80]
    Err:35 http://de.archive.ubuntu.com/ubuntu focal-backports/main arm64 Packages
      404  Not Found [IP: 141.30.62.25 80]
    Reading package lists... Done
    E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages  404  Not Found [IP: 185.125.190.36 80]
    E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages  404  Not Found [IP: 141.30.62.25 80]
    E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-arm64/Packages  404  Not Found [IP: 141.30.62.25 80]
    E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages  404  Not Found [IP: 141.30.62.25 80]
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    It's an ubuntu image available on oracle cloud.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    First, please take care that your system is up to date with "apt-get update && apt-get upgrade". I'm not sure if there are fewer updates for Ubuntu on arm, but on AMD64 we are already at Ubuntu 20.04.4, so two point releases after you system.

    Then this can't work, from the perfect server auto-installer guide you used:

    ".... it currently supports only the x86_64 (also known as AMD64) CPU architecture while ARM is not supported."

    There are not all packages available on ARM systems, resulting in errors when the installer tries to install them. You can use ISPConfig on ARM systems, while some features might not be available then, but you can't use the auto-installer to install it. Instead you can e.g. use the manual instructions and skip packages that produce errors:

    https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The script is for AMD64 (x86_64) only as stated in the guide, running it on a ARM system must break the system and also the installer can not work. that#s why it is mentioned in the guide.
     
  8. tegazinho

    tegazinho Member

    You are right, I appologize, I've not read the introduction, I just followed the commands, and I actually remember after doing a quicksearch before trying to install it on arm64 that I read a reply from you on a post where a guy was complaining about errors installing on a raspberry pi which is also arm64 and you told him to use the oficial script using the perfect server guide ( https://forum.howtoforge.com/threads/ispconfig-with-rpi4-install-script.82999/#post-394490 ). Since that was 3 years ago, I thought it was already a straight deal. (and yes I now know that I've should read the introduction)
     
  9. tegazinho

    tegazinho Member

    No worries I will see if I can manually install all I need to have it running, if not I will check for other solutions.
     
    till likes this.
  10. tegazinho

    tegazinho Member

    Just a side note, if it's not compatible with arm64, I think the script should stop before changing the repos on the source.list file, I have to restore the original ones now if I don't wanna stay stuck with a bunch of repos that don't work.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    May you please run this command on your system and post the result:

    uname -m

    as I don't have any ARM-based system here to get the exact result.
     
  12. tegazinho

    tegazinho Member

    Code:
    Linux myhostname 5.15.0-1013-oracle #17~20.04.1-Ubuntu SMP Mon Jul 4 05:29:46 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
    EDIT: Sorry, I just did uname -a (so used to do it), but -m just show the architecture, so I think you still get the info.
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

  14. tegazinho

    tegazinho Member

    Thank you! :)
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Uname -m is a bit different as it#a easier to compare, for x86_64 I get just:

    [root@localhost ~]# uname -m
    x86_64

    For arm, it's probably "armv7l" but I'm not 100% sure. But I can simply stop when it's not x86_64 which should be fine as well.
     
  16. tegazinho

    tegazinho Member

    Ah ok, no, it actually shows aarch64.
    Sorry.
    Code:
    root@hostname:~# uname -m
    aarch64
    root@hostname:~#
    
    Also, I was looking for the packages and I can't find any that do not exist on arm64, and since arm64 servers are becoming pretty common these days, I think that could be a good addition to ISPconfig by the community.

    As for the server, you can always get a 24GB ram, 4 cores and 45 GB disk on the "always-free-tier" on the oracle cloud, to help you and the community on the compatibility with arm64 :)
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    There are a few that are used in the autoinstaller, but the system will mostly work without them, one is probably rar, so rar as a backup option won't work and another one might be goaccess. Regarding rar, it might be an option to simply remove rar support for backups as it probably not commonly used anyway, most user will probably use zip or tar.* formats.
     
  18. tegazinho

    tegazinho Member

    yeah, rar I'm not sure, unrar it's available (https://packages.ubuntu.com/focal/arm64/unrar/download).
    And also on the arm thing, I just tested on my old raspberry pi which armv7 so it's 32bit, the command uname -m shows "armv7l" and the 64bit shows: "aarch64" so you might want to include both on the instruction to abort the installation using the auto installer script
     
  19. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    ssh is architecture all, so it should be available. My guess is it is in
    Err:2 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
    404 Not Found [IP: 185.125.190.36 80]
    or one of the other repositories that your host could not reach. They seem to work from here, you should check why your host can not reach them.
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess and @tegazinho mentioned it too that the most likely problem is that the Installer replaces the arm64 repositories with ones for x86_64 and this then results to no arm packages being found.
     

Share This Page