Describe the bug
Following the instructions in https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest on a fresh travis build agent the installation fails if -allow-unauthenticated
is not specified.
To Reproduce
git clone --depth=50 --branch=master https://github.com/jsacapdev/k8s-routing-slip.git jsacapdev/k8s-routing-slip
Cloning into 'jsacapdev/k8s-routing-slip'...
remote: Counting objects: 57, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 57 (delta 13), reused 50 (delta 8), pack-reused 0
Unpacking objects: 100% (57/57), done.
$ cd jsacapdev/k8s-routing-slip
$ git checkout -qf cdeae2bc90067ff0e662125a62bbacae41642564
services
0.02s$ sudo service docker start
start: Job is already running: docker
$ bash -c 'echo $BASH_VERSION'
4.3.11(1)-release
before_install.1
0.01s$ echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main
before_install.2
1.02s$ sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893
Executing: /tmp/tmp.uEQPwVlUCD/gpg.1.sh --keyserver
packages.microsoft.com
--recv-keys
52E16F86FEE04B979B07E28DB02C46DF417A0893
gpg: requesting key 417A0893 from hkp server packages.microsoft.com
gpg: key 417A0893: public key "MS Open Tech <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
before_install.3
3.27s$ sudo apt-get -qq update
W: GPG error: https://packages.microsoft.com/repos/azure-cli wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
W: The repository 'https://packages.microsoft.com/repos/azure-cli wheezy InRelease' is not signed.
W: There is no public key available for the following key IDs:
EB3E94ADBE1229CF
before_install.4
0.82s$ sudo apt-get install -qq apt-transport-https
0.80s$ sudo apt-get install -qq azure-cli
WARNING: The following packages cannot be authenticated!
azure-cli
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
The command "sudo apt-get install -qq azure-cli" failed and exited with 100 during .
Your build has been stopped.
Expected behavior
The cli is installed
Environment summary
See https://travis-ci.org/jsacapdev/k8s-routing-slip/jobs/383136723 for full build details.
@jschluchter can you try our new signing key?
curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
@troydai thanks, that resolved it
Most helpful comment
@jschluchter can you try our new signing key?