I entered the container and did a bit of debugging:
1) enable debugging output via "Debug::RunScripts "true";" 2) adjusted the docker-clean file: # cat /etc/apt/apt.conf.d/docker-clean APT::Update::Post-Invoke { "/usr/bin/true"; }; Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";
Running now the commands leads to: # apt-get update; apt-get full-upgrade -y; apt-get install -y jq Hit:1 http://archive.ubuntu.com/ubuntu impish InRelease Hit:2 http://archive.ubuntu.com/ubuntu impish-updates InRelease Hit:3 http://archive.ubuntu.com/ubuntu impish-backports InRelease Hit:4 http://security.ubuntu.com/ubuntu impish-security InRelease Running external script: '/usr/bin/true' Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke '/usr/bin/true' E: Sub-process returned an error code Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done jq is already the newest version (1.6-2.1ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@9765dc3980e8:/# echo $? 0
I entered the container and did a bit of debugging:
1) enable debugging output via "Debug::RunScripts "true";" apt.conf. d/docker- clean :Post-Invoke { "/usr/bin/true"; }; :pkgcache ""; Dir::Cache: :srcpkgcache "";
2) adjusted the docker-clean file:
# cat /etc/apt/
APT::Update:
Dir::Cache:
Running now the commands leads to: archive. ubuntu. com/ubuntu impish InRelease archive. ubuntu. com/ubuntu impish-updates InRelease archive. ubuntu. com/ubuntu impish-backports InRelease security. ubuntu. com/ubuntu impish-security InRelease :Post-Invoke '/usr/bin/true' e8:/# echo $?
# apt-get update; apt-get full-upgrade -y; apt-get install -y jq
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Running external script: '/usr/bin/true'
Reading package lists... Done
E: Problem executing scripts APT::Update:
E: Sub-process returned an error code
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
jq is already the newest version (1.6-2.1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@9765dc3980
0