carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
528 stars 424 forks source link

apt update no longer works after latest updates #283

Open bentatham opened 2 years ago

bentatham commented 2 years ago

Prior to May 30, everything was fine in our extensions of the maven images (3.8.5-eclipse-temurin-11 specifically), but as of the latest updates (id 7fc2f17ef11d worked, but the 7278ed17f460 does not).

Specifically, the following fails on apt update in a Dockerfile using maven:3.8.5-eclipse-temurin-11 as the FROM.

E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code

This is likely related to an update of the base images, as this looks similar to this issue. I also see that my previous builds updated from focal, and now it updates from jammy. So on the same tag, the base image changed from Ubuntu 20 to 22, which surprised me.

carlossg commented 2 years ago

Looks the same as #281

The labels track upstream labels, so when they change distro and this image is rebuilt it gets updated

bentatham commented 2 years ago

Yes, this is similar to #281. I can confirm that using docker engine 20.10.15, the problem goes away. (It was failing for us on Bitbucket Pipelines - but, via very efficient support from Bitbucket, they updated the docker engine to 20.10.15 and now our builds pass on the jammy-based images)