carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
524 stars 423 forks source link

Issue using maven:3.3.9 image with apt-get #307

Open sankethiyer opened 1 year ago

sankethiyer commented 1 year ago

Error while using apt-get install in bitbucket ci/cd

apt-get update && apt-get install -y

+ apt-get update && apt-get install -y
Get:1 http://security.debian.org/ jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org/ jessie InRelease
Get:2 http://deb.debian.org/ jessie-updates InRelease [16.3 kB]
Ign http://deb.debian.org/ jessie-backports InRelease
Get:3 http://deb.debian.org/ jessie Release.gpg [1652 B]
Ign http://deb.debian.org/ jessie-backports Release.gpg
Get:4 http://deb.debian.org/ jessie Release [77.3 kB]
Ign http://deb.debian.org/ jessie-backports Release
Err http://deb.debian.org/ jessie-backports/main amd64 Packages

Err http://deb.debian.org/ jessie-backports/main amd64 Packages

Err http://deb.debian.org/ jessie-backports/main amd64 Packages

Err http://deb.debian.org/ jessie-backports/main amd64 Packages

Err http://deb.debian.org/ jessie-backports/main amd64 Packages
  404  Not Found [IP: 146.75.34.132 80]
Ign http://security.debian.org/ jessie/updates InRelease
Get:5 http://security.debian.org/ jessie/updates/main amd64 Packages [992 kB]
Ign http://deb.debian.org/ jessie-updates InRelease
Get:6 http://deb.debian.org/ jessie-updates/main amd64 Packages [20 B]
Ign http://deb.debian.org/ jessie Release
Get:7 http://deb.debian.org/ jessie/main amd64 Packages [9098 kB]
W: GPG error: http://security.debian.org/ jessie/updates InRelease: The following signatures were invalid: KEYEXPIRED 1668892417 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50
W: GPG error: http://deb.debian.org/ jessie-updates InRelease: The following signatures were invalid: KEYEXPIRED 1668891673
W: GPG error: http://deb.debian.org/ jessie Release: The following signatures were invalid: KEYEXPIRED 1668891673
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found [IP: 146.75.34.132 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Fetched 10.2 MB in 10s (939 kB/s)

apt-get install zip -y

+ apt-get install zip -y
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  zip
0 upgraded, 1 newly installed, 0 to remove and 130 not upgraded.
Need to get 228 kB of archives.
After this operation, 607 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  zip
E: There are problems and -y was used without --force-yes