Author Topic: Zentyal 7.0 Install on a LXC Container  (Read 269 times)

Deslack

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +3/-0
    • View Profile
Zentyal 7.0 Install on a LXC Container
« on: July 16, 2021, 04:10:57 pm »

Hello guys,

Just installed Zentyal 7.0 on a Ubuntu 20.04 LTS using the install script as highlighted here:

https://doc.zentyal.org/en/installation.html#installation-on-top-of-ubuntu-20-04-lts-server-or-desktop

I tried it and got it running with a minor kink as follow

Code: [Select]
# ./zentyal_installer.sh
Do you want to install the Zentyal Graphical environment? (n|y) n

 - Checking Ubuntu version...
...OK

 - Checking for broken packages...
...OK

 - Checking for available disk space...
...OK

 - Checking if the system is up-to-date...
W: GPG error: http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D7F87B2966EB736F
E: The repository 'http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease' is not signed.

Which I remedied with:

Code: [Select]
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D7F87B2966EB736F
to add the suricata's pubkey to the repository. After that, ./zentyal-installer.sh ran fine.

Just a heads up for you guys.

Daniel Joven

  • Zentyal Staff
  • Zen Apprentice
  • *****
  • Posts: 31
  • Karma: +19/-0
    • View Profile
Re: Zentyal 7.0 Install on a LXC Container
« Reply #1 on: July 20, 2021, 04:48:34 pm »
Hi Deslack,

The command that you used to fix the Suricata public key is defined in the script:

Code: [Select]
## Adding Suricata repositorio for zentyal-ips module
if ! grep -qR 'http://ppa.launchpad.net/oisf/suricata-stable/ubuntu' /etc/apt/sources.list*
  then
    echo "deb http://ppa.launchpad.net/oisf/suricata-stable/ubuntu $(lsb_release -sc) main" >> /etc/apt/sources.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ${SURI_KEY}
fi

Is it possible that you already had that repository in your Ubuntu server? How many times times did you run the script?

Best regards, Daniel Joven.

Deslack

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +3/-0
    • View Profile
Re: Zentyal 7.0 Install on a LXC Container
« Reply #2 on: August 15, 2021, 12:29:22 pm »
Hello Daniel,

I apologize for reverting back after so long.

I used a Ubuntu LTS 20.04 LXC Container Template in Proxmox installation. I realize that after running the zentyal_installer.sh script, I haven't got gnupg2 installed, so I installed it afterwards, then re-ran the zentyal-installer.sh script. Since the script already found the line inside /etc/apt/sources.list, it won't proceed with the apt-key.

Maybe either check for gnupg2 before apt-key, or use another way to determine whether the key is already installed?