Troubleshoot agent on Ubuntu

Sudo requires a password

If the sudo command requires entering a password interactively you need to copy and paste the installer command snippet line by line. Otherwise the second line is entered as the password for the sudo command.

HTTPS repositories not supported

Problem: You might get the following error
1
E: The method driver /usr/lib/apt/methods/https could not be found.
2
N: Is the package apt-transport-https installed?
3
E: Failed to fetch https://repo.cloudradar.io/dists/all/InRelease
4
E: Some index files failed to download. They have been ignored, or old ones used instead.
Copied!
Solution: Install the missing package and start the installation of cagent agent
1
sudo apt-get install apt-transport-https
2
sudo apt-get update
3
sudo \
4
CAGENT_HUB_URL=https://hub.cloudradar.io/ctrapper/ \
5
CAGENT_HUB_USER=<YOUR-ID> \
6
CAGENT_HUB_PASSWORD=<YOUR-PASSWORD> \
7
apt-get install cagent
Copied!
Last modified 2yr ago