Can't install hestia in ubuntu

I just adquired an Ubuntu 24.04.2 LTS server and when i try to install Hestia this is what i got:

[ * ] Configuring system settings...
useradd: user 'hestiaweb' already exists
useradd: user 'hestiamail' already exists
info: The user `hestiamail' is already a member of `hestia-users'.
cp: cannot stat '/usr/local/hestia/install/deb/logrotate/httpd-prerotate/*': No such file or directory
[ * ] Configuring Hestia Control Panel...
cp: cannot stat '/usr/local/hestia/install/common/sudo/hestiaweb': No such file or directory
chmod: cannot access '/etc/sudoers.d/hestiaweb': No such file or directory
cp: cannot stat '/usr/local/hestia/install/deb/logrotate/hestia': No such file or directory
rm: cannot remove '/var/log/hestia': Is a directory
ln: failed to create symbolic link '/usr/local/hestia/log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/system.log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/nginx-error.log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/auth.log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/backup.log': No such file or directory
chmod: cannot access '/usr/local/hestia/log': No such file or directory
chmod: cannot access '/var/log/hestia/*': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/packages': No such file or directory
sed: can't read /usr/local/hestia/data/packages/*.pkg: No such file or directory
cp: cannot stat '/usr/local/hestia/install/deb/templates': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/web/': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/dns/': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/web/unassigned/index.html': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/web/skel/document_errors/*': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/firewall': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/api': No such file or directory
[ * ] Configuring OpenSSL to improve TLS performance...
[ * ] Generating default self-signed SSL certificate...
hst-install-ubuntu.sh: line 1527: /usr/local/hestia/bin/v-generate-ssl-cert: No such file or directory
[ * ] Adding SSL certificate to Hestia Control Panel...
sed: -e expression #1, char 3: unexpected `,'
sed: -e expression #1, char 1: unknown command: `,'
cp: cannot stat '/usr/local/hestia/install/deb/ssl/dhparam.pem': No such file or directory
[ * ] Enabling SFTP jail...
Error: can't enable sftp jail

Already looked throught the forum for similar errors but no one was helpful

What I am doing wrong here? Is a fresh install

Use allready exists …

Did it had allready hestia installed?

I tried before, and deleted the folder /usr/local/hestia to try again, but it is still the same problem

It still creates all the user if the past .. So deleting r /usr/local/hestia isn’t enough

Do server reinstall first

Will do and report back, thank you

still same errors

[ * ] Configuring system settings...
info: Adding user `hestiamail' to group `hestia-users' ...
cp: cannot stat '/usr/local/hestia/install/deb/logrotate/httpd-prerotate/*': No such file or directory
[ * ] Configuring Hestia Control Panel...
cp: cannot stat '/usr/local/hestia/install/common/sudo/hestiaweb': No such file or directory
chmod: cannot access '/etc/sudoers.d/hestiaweb': No such file or directory
cp: cannot stat '/usr/local/hestia/install/deb/logrotate/hestia': No such file or directory
ln: failed to create symbolic link '/usr/local/hestia/log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/system.log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/nginx-error.log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/auth.log': No such file or directory
touch: cannot touch '/usr/local/hestia/log/backup.log': No such file or directory
chmod: cannot access '/usr/local/hestia/log': No such file or directory
chmod: cannot access '/var/log/hestia/*': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/packages': No such file or directory
sed: can't read /usr/local/hestia/data/packages/*.pkg: No such file or directory
cp: cannot stat '/usr/local/hestia/install/deb/templates': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/web/': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/dns/': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/web/unassigned/index.html': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/templates/web/skel/document_errors/*': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/firewall': No such file or directory
cp: cannot stat '/usr/local/hestia/install/common/api': No such file or directory
[ * ] Configuring OpenSSL to improve TLS performance...
[ * ] Generating default self-signed SSL certificate...
hst-install-ubuntu.sh: line 1527: /usr/local/hestia/bin/v-generate-ssl-cert: No such file or directory
[ * ] Adding SSL certificate to Hestia Control Panel...
sed: -e expression #1, char 3: unexpected `,'
sed: -e expression #1, char 1: unknown command: `,'
cp: cannot stat '/usr/local/hestia/install/deb/ssl/dhparam.pem': No such file or directory
[ * ] Enabling SFTP jail...
Error: can't enable sftp jail

Okay got those too and i think the problem is that it isn’t downloading the installers

The installer is now downloading and installing all required packages.
NOTE: This process may take 10 to 15 minutes to complete, please wait...
E: Unable to locate package hestia
E: Unable to locate package hestia-nginx
E: Unable to locate package hestia-php

Okay, I searched for the packages and couldn’t find them on the Ubuntu packages website

HestiaCP packages aren’t in the Ubuntu repos, so you won’t find them in an Ubuntu package web search. The installer should add the necessary repos to the system.

3 Likes

What is your server ip. It might be blocked by Cloudflare

Just sent you a dm, thank you!

Still same errors, what i noticed is this:

Err:2 https://dlm.mariadb.com/repo/mariadb-server/11.4/repo/ubuntu noble InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F1656F24C74CD1D8
Err:6 https://nginx.org/packages/mainline/ubuntu noble InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
Err:7 https://apt.hestiacp.com noble InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A189E93654F0B0E5

don’t know why the pubkeys aren’t available, already did what this thread said:

Hi, I do a lot of testing and encountered the same errors, on one VDS hosting there is no access to Hestia downloads via CF, but it’s worth changing the DNS in resolv. conf everything loads fine. On another VDS hosting, everything loads fine without changing resolv. conf. I wrote off with hosting support, this happens after the last global failure of Google, Amazon, etc., in my opinion they are stirring up something there). Conclusion change DNS in resolv. conf. I also didn’t load Nextcloud

I also encountered a similar error on Ubuntu 20.04, I tried changing the DNS resolve but could not fix it, it seems my ipv4 server was blocked by Cloudflare

But other keys have not been downloaded as wel. That is the strange part

I am trying to reload OS to 22.04

DM your ip adress and I will check it out

Thank you so much, when i change OS to 22.04 install sucessfully

I tried installing on Digital and Aws EC2 with ubuntu 20.04 and encountered the same sftp jaik error, you should check the bash script installation with ubuntu 20.04, currently I had to use the ubuntu 22.4 version, although I don’t like it