kvz / bash3boilerplate

Templates to write better Bash scripts
http://bash3boilerplate.sh
MIT License
2.08k stars 196 forks source link

Travis CI fails with "There were unauthenticated packages" #119

Closed grische closed 4 years ago

grische commented 4 years ago

Job ".1" on Travis currently seems to fail on all PRs with the following error:

$ if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y cabal-install; fi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ghc libbsd-dev libbsd0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev
  libtinfo6 locales
Suggested packages:
  ghc-prof ghc-doc haskell-doc llvm-6.0 glibc-doc manpages-dev
Recommended packages:
  manpages-dev libidn2-0
The following NEW packages will be installed:
  cabal-install ghc libbsd-dev libc-l10n libtinfo6
The following packages will be upgraded:
  libbsd0 libc-bin libc-dev-bin libc6 libc6-dev locales
6 upgraded, 5 newly installed, 0 to remove and 925 not upgraded.
Need to get 85.7 MB of archives.
After this operation, 820 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libc-l10n libc-dev-bin libc6-dev locales libc6 libc-bin libbsd0 libbsd-dev
  libtinfo6 ghc cabal-install
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
The command "if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y cabal-install; fi" failed and exited with 100 during .

https://travis-ci.org/kvz/bash3boilerplate/jobs/587038162 https://api.travis-ci.org/v3/job/587038162/log.txt

kvz commented 4 years ago

Strange, I added --allow-unauthenticated to hopefully fix this

grische commented 4 years ago

@kvz I think it didn't fix the source of the problem: https://travis-ci.org/kvz/bash3boilerplate/jobs/587401759

kvz commented 4 years ago

This was fixed, thanks! :ok_hand: