Error while installing ops agent on Google VM

I'm trying to install a Ops agent on a Google VM and some index files failed to download (error 404)

Command i used following documentation :

curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh

sudo bash add-google-cloud-ops-agent-repo.sh --also-install

And i got error on those packages :

https://packages.cloud.google.com/apt google-cloud-ops-agent--all/main amd64 Packages http://ppa.launchpad.net/deadsnakes/ppa/ubuntu impish/main amd64 Packages

Include in the error message i also got this : https://packages.cloud.google.com/apt google-cloud-ops-agent--all Release' does not have a Release file

Does someone got the same issue recently ?

Here is the Log i got :

W: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu impish Release' does not have a Release file.

N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

N: See apt-secure(8) manpage for repository creation and user configuration details.

W: The repository 'https://packages.cloud.google.com/apt google-cloud-ops-agent--all Release' does not have a Release file.

N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

N: See apt-secure(8) manpage for repository creation and user configuration details.

E: Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/impish/main/binary-amd64/Packages 404 Not Found

E: Failed to fetch https://packages.cloud.google.com/apt/dists/google-cloud-ops-agent--all/main/binary-amd64/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

[.....]

add-google-cloud-ops-agent-repo.sh: line 202: lsb_release: command not found

[....]

W: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu impish Release' does not have a Release file.

N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

N: See apt-secure(8) manpage for repository creation and user configuration details.

W: The repository 'https://packages.cloud.google.com/apt google-cloud-ops-agent--all Release' does not have a Release file.

N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

N: See apt-secure(8) manpage for repository creation and user configuration details.

E: Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/impish/main/binary-amd64/Packages 404 Not Found

E: Failed to fetch https://packages.cloud.google.com/apt/dists/google-cloud-ops-agent--all/main/binary-amd64/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.


Solution 1:

This error likely indicates you're installing the agent on an unsupported OS. Please check that your OS is in the list here:

https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent#supported_vms