Problem installing on Scaleway Server

On a fresh Ubuntu 18.04 Server on Scalway the installation fails, it stops after

Updating system packages...
Installing system packages...
Initializing system random number generator...
Firewall is active and enabled on system startup
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...
Installing SpamAssassin..

So I debugged the issue. It fails on the following line in setup/spamassassin.sh file:

sudo -u spampd /usr/bin/sa-learn --sync 2>/dev/null

It can be fixed by adding the following line. Edit using visudo

root    ALL=(ALL)      ALL

Just posting it here in case anyone faces the same issue.
This is probably linked to

Scaleway might be using their own repos in their system image, please try replacing them in /etc/apt/sources.list with the default ubuntu ones.

Thanks! On my scaleway instance sudo wasnt even installed but an (empty) sudoers file was present. Doing an apt install sudo and accepting the package maintainer’s version of the sudoers file fixed it for me.

This topic was automatically closed after 61 days. New replies are no longer allowed.