Can’t quite figure out what is going wrong. I’ve been using the same code for over a year now and suddenly this stopped working. I’m getting that irritating non-zero code error which I tried fixing by swapping
Oddly, this is also the same install code in the Datadog/Kerberos example repo which worked in the past as well.
FROM balenalib/%%BALENA_MACHINE_NAME%%-ubuntu WORKDIR /app RUN apt update && apt install -y nano wget curl sudo apt-transport-https sudo gnupg2 net-tools RUN sudo sh -c "echo 'deb https://apt.datadoghq.com/ stable 7' > /etc/apt/sources.list.d/datadog.list" RUN sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 A2923DFF56EDA6E76E55E492D3A80E30382E94DE RUN sudo apt-get update && sudo apt-get install datadog-iot-agent ...continued
[datadog-iot] The command '/bin/sh -c sudo apt-get update && sudo apt-get install datadog-iot-agent' returned a non-zero code: 1
I thought I read somewhere that it might be an issue with the CLI so I also tested running both 12.50.2 and 12.50.1. Using an M1 Macbook which has caused some strange behaviors in other apps before so perhaps that is related?