Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: Deslack on July 16, 2021, 04:10:57 pm

Title: Zentyal 7.0 Install on a LXC Container
Post by: Deslack 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:


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...

 - Checking for broken packages...

 - Checking for available disk space...

 - 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.
Title: Re: Zentyal 7.0 Install on a LXC Container
Post by: Daniel Joven 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*
    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}

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.
Title: Re: Zentyal 7.0 Install on a LXC Container
Post by: Deslack 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?