docker-maven icon indicating copy to clipboard operation
docker-maven copied to clipboard

apt update no longer works after latest updates

Open bentatham opened this issue 3 years ago • 6 comments

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.

bentatham avatar May 31 '22 17:05 bentatham

Looks the same as #281

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

carlossg avatar May 31 '22 17:05 carlossg

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)

bentatham avatar Jun 02 '22 12:06 bentatham