Build fails on Ubuntu 14.04 with error "The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install powershell" failed and exited with 100 during."

The job on Ubuntu 14.04 was running fine and suddenly stopped working with the following error:

 Reading package lists...
W: GPG error: trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: The repository ' trusty InRelease' is not signed.
W: There is no public key available for the following key IDs:
W: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
E: Failed to fetch  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install powershell" failed and exited with 100 during .

The .travis.yml is here.

I’m not quite sure but it’s possible that they are deprecating Ubuntu 14.04 packages as it will be EOL at the end of the month.

Could you try to run your build on Xenial instead? Here’s what you need to add to your .travis.yml file:

dist: xenial

Let us know how it goes!

Well the build works now without any changes to the travis.yml file. It was not working for a few days but now everything is working again.

1 Like

Glad to hear it!

I believe the APT repo and/or packages must have been fixed upstream.

Please open another topic if it happens again.