Hi, i have some Linux Servers (Ubuntu 20.04 and 22.04) and want to install the Check MK Agents, but i get an Error at the installation.
I download the Agent (wget https://download.checkmk.com/checkmk/2.3.0p10/check-mk-raw-2.3.0p10_0.focal_amd64.deb - tried also lower Versions, every time the same error) in my homefolder (/home/username).
Then i start “sudo install /home/username/wget https://download.checkmk.com/checkmk/2.3.0p10/check-mk-raw-2.3.0p10_0.focal_amd64.deb” (depend on Server OS and Version of the Agent). The installation runs fine - but on the end, i get this error:
Download is performed unsandboxed as root as file ‘/home/pleibling/check-mk-raw-2.3.0p10_0.jammy_amd64.deb’ couldn’t be accessed by user ‘_apt’. - pkgAcquire::Run (13: Permission denied)
I read in the web, that is only a warning - but after the installation, there is an folder /opt/omd - but there are no Services registeres (like check-mk-agent) and the checkmk mk agent ctl has no path.
So, i think the setup was interrupted and could not do Post-Setup routines, like registering and starting the Agent Service.
I went back to an Snapshot before the installation and try to change permissions like:
$ sudo chown -R _apt:root /var/cache/apt/archives/partial/
$ sudo chmod -R 700 /var/cache/apt/archives/partial/
$ sudo chmod 777 /home/username/checkmk/2.3.0p10/check-mk-raw-2.3.0p10_0.focal_amd64.deb
Everytime the same error.
How can i solve the problem? Or is it possible to start the Post-Installation Tasks manually?
Thanks a lot for your help.