Error installing Agent on Ubuntu

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.

This is because you installed the Checkmk server side software package.

You get the agent package from within your Checkmk site: Monitoring Linux - The new agent for Linux in detail

1 Like

Hi Robert, thanks for your fast help.

I see on this page, that i have to download it from my checkmk Server self - i get the same waning, but now i see the daemon running and my checkmk find the Server.

Many thanks :).

Yes, that warning can be ignored.

1 Like

Thanks a lot, Robert :slight_smile: .

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.