@Hannibal said in Error while installing the triggercmdagent:
Notice: Download is performed unsandboxed as root as file '/home/hannibal/downloads/triggercmdagent_1.0.1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Copy/paste that into ChatGPT to know why, but you can safely ignore that "Notice". Basically it means the _apt user doesn't have access to your user's home directory where the .deb file is, so it's using root to access it instead.
It looks like the agent is installed now, so you can move on to the next step:
node /usr/lib/triggercmdagent/resources/app/src/agent.js --console
It should prompt you for a token which you can copy/paste from the Instructions page while logged in at https://www.triggercmd.com