Installing oraclejdk11
535W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
536W: Failed to fetch https://packagecloud.io/github/git-lfs/ubuntu/dists/trusty/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
537W: Some index files failed to download. They have been ignored, or old ones used instead.
538OK
539W: The repository 'https://packages.adoptium.net/artifactory/deb trusty Release' is not signed.
540W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
541W: Failed to fetch https://packagecloud.io/github/git-lfs/ubuntu/dists/trusty/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
542W: Some index files failed to download. They have been ignored, or old ones used instead.
543E: Unable to locate package temurin-11-jdk
544$ export JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64
545$ export PATH="/usr/lib/jvm/temurin-11-jdk-amd64/bin:/home/travis/bin:/home/travis/.local/bin:/opt/pyenv/shims:/home/travis/.rvm/gems/ruby-2.4.1/bin:/home/travis/.rvm/gems/ruby-2.4.1@global/bin:/home/travis/.rvm/rubies/ruby-2.4.1/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.7.4.linux.amd64/bin:/usr/local/clang-3.9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools:/home/travis/.rvm/bin:/opt/pyenv/bin"
546update-java-alternatives: directory does not exist: /usr/lib/jvm/temurin-11-jdk*
Seems Travis keys for git-lfs are wrong X_x
Just changed my distro from trusty
to focal
and I get these errors
travis_fold:start:install_jdk
e[0Ke[33;1mInstalling oraclejdk11e[0m
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/main/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/restricted/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/multiverse/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/main/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/main/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/source/Sources 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/main/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/binary-amd64/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/main/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://us-east1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 35.196.128.168 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/source/Sources 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/restricted/source/Sources 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/universe/source/Sources 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/multiverse/source/Sources 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/precise-pgdg/main/binary-amd64/Packages 404 Not Found [IP: 147.75.85.69 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.38 80]
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/precise-pgdg/main/binary-i386/Packages 404 Not Found [IP: 147.75.85.69 80]
W: Failed to fetch http://ppa.launchpad.net/rwky/ppa/ubuntu/dists/precise/main/binary-amd64/Packages 403 Forbidden
W: Failed to fetch http://ppa.launchpad.net/rwky/ppa/ubuntu/dists/precise/main/binary-i386/Packages 403 Forbidden
W: Failed to fetch http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/10gen/binary-amd64/Packages Undetermined Error [IP: 52.21.89.200 80]
W: Failed to fetch http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/10gen/binary-i386/Packages Undetermined Error [IP: 52.21.89.200 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
--2022-06-06 11:53:57-- https://apt.corretto.aws/corretto.key
Resolving apt.corretto.aws (apt.corretto.aws)... 18.67.0.24, 18.67.0.127, 18.67.0.31, ...
Connecting to apt.corretto.aws (apt.corretto.aws)|18.67.0.24|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1695 (1.7K) [binary/octet-stream]
Saving to: `STDOUT'
0K . 100% 1.31G=0s
Not sure why it’s trying to access precise
distro
Hey all,
A temporary fix while we are waiting for InfraOps to patch this is as follows, and please note, the must be used before the before_install
script hook:
before_install:
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java 11.0.12-open
- sdk use java 11.0.12-open
And remove the following:
jdk:
- openjdk11
This should do the trick for now, we are still doing some heavy investigating.
any rough sense of ETA on the fix? and can you provide instructions for OracleJDK13
?
should be similar to this
before_install:
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java 13.x.y-oracle
- sdk use java 13.x.y-oracle
source: JDK Distributions - SDKMAN! the Software Development Kit Manager
Hey folks,
Could you please share the build links that the error occurs for your repositories?
Thanks
Hi,
Today our build started failing with similar issue, it uses oraclejdk11:
Installing oraclejdk11
547W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
548W: Failed to fetch https://packagecloud.io/github/git-lfs/ubuntu/dists/trusty/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
549W: Some index files failed to download. They have been ignored, or old ones used instead.
550OK
551W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
552W: Failed to fetch https://packagecloud.io/github/git-lfs/ubuntu/dists/trusty/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
553W: Some index files failed to download. They have been ignored, or old ones used instead.
554dpkg-deb: error: archive '/var/cache/apt/archives/bellsoft-java11_11.0.16+8_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
555dpkg: error processing archive /var/cache/apt/archives/bellsoft-java11_11.0.16+8_amd64.deb (--unpack):
556 subprocess dpkg-deb --control returned error exit status 2
557Errors were encountered while processing:
558 /var/cache/apt/archives/bellsoft-java11_11.0.16+8_amd64.deb
559E: Sub-process /usr/bin/dpkg returned an error code (1)
560$ export JAVA_HOME=/usr/lib/jvm/bellsoft-java11-amd64
561$ export PATH=/usr/lib/jvm/bellsoft-java11-amd64/bin:/home/travis/bin:/home/travis/.local/bin:/opt/pyenv/shims:/home/travis/.rvm/gems/ruby-2.4.1/bin:/home/travis/.rvm/gems/ruby-2.4.1@global/bin:/home/travis/.rvm/rubies/ruby-2.4.1/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.7.4.linux.amd64/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools:/home/travis/.rvm/bin:/opt/pyenv/bin
562update-java-alternatives: directory does not exist: /usr/lib/jvm/bellsoft-java11*
This is the failing build:
Unfortunately getting the same issue too:
Installing oraclejdk11
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease Could not connect to archive.ubuntu.com:80 (91.189.91.39), connection timed out [IP: 91.189.91.39 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.39 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.39 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease Connection failed [IP: 91.189.91.38 80]
W: Failed to fetch https://packagecloud.io/github/git-lfs/ubuntu/dists/trusty/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: Some index files failed to download. They have been ignored, or old ones used instead.
OK
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out [IP: 185.125.190.39 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease Unable to connect to archive.ubuntu.com:http: [IP: 185.125.190.39 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease Unable to connect to archive.ubuntu.com:http: [IP: 185.125.190.39 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease Could not connect to security.ubuntu.com:80 (185.125.190.36), connection timed out [IP: 185.125.190.36 80]
W: Failed to fetch https://packagecloud.io/github/git-lfs/ubuntu/dists/trusty/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: Some index files failed to download. They have been ignored, or old ones used instead.
dpkg-deb: error: archive '/var/cache/apt/archives/bellsoft-java11_11.0.16+8_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/bellsoft-java11_11.0.16+8_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/bellsoft-java11_11.0.16+8_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ export JAVA_HOME=/usr/lib/jvm/bellsoft-java11-amd64
$ export PATH=/usr/lib/jvm/bellsoft-java11-amd64/bin:/home/travis/bin:/home/travis/.local/bin:/opt/pyenv/shims:/home/travis/.rvm/gems/ruby-2.4.1/bin:/home/travis/.rvm/gems/ruby-2.4.1@global/bin:/home/travis/.rvm/rubies/ruby-2.4.1/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.7.4.linux.amd64/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools:/home/travis/.rvm/bin:/opt/pyenv/bin
update-java-alternatives: directory does not exist: /usr/lib/jvm/bellsoft-java11*
follows the failing build link:
this solution worked for me:
thanks @Montana
This also worked @montana, thank you!
#455
#545