[Pkg-gmagick-im-team] Bug#1030703: imagemagick: `apt-get remove imagemagick` fails

Roland van Laar roland at rolandvanlaar.nl
Wed Feb 8 10:43:46 GMT 2023


On Mon, 06 Feb 2023 17:28:11 +0100 Roland van Laar 
<roland at rolandvanlaar.nl> wrote:
 > Package: imagemagick
 > Version: 8:6.9.11.60+dfsg-1.3
 > Severity: important
 >
 > Dear Maintainer,
 >
 > * What led up to the situation?
 > VScode devcontainer python:3 tries
 > to uninstall it.
 > * What exactly did you do (or not do) that was effective (or
 > run apt-get purge -u imagemagick
 > ineffective)?
 > * What was the outcome of this action?
 > > [5/5] RUN apt-get purge -y imagemagick:
 > #0 0.252 Reading package lists...
<snip>
 > #0 0.756 After this operation, 225 kB disk space will be freed.
 > (Reading database ... 10525 files and directories currently installed.)
 > #0 0.775 Removing imagemagick (8:6.9.11.60+dfsg-1.3) ...
 > #0 0.786 dpkg: error processing package imagemagick (--remove):
 > #0 0.786 cannot remove '/usr/share/doc/imagemagick': Invalid argument
 > #0 0.786 dpkg: too many errors, stopping
 > #0 0.792 Errors were encountered while processing:
 > #0 0.792 imagemagick
 > #0 0.792 Processing was halted because there were too many errors.
 > #0 0.808 E: Sub-process /usr/bin/dpkg returned an error code (1)
 >
 > * What outcome did you expect instead?
 > A 0 exit code
 >
 > Here's a sample docker file to test it:
 > ```
 > FROM debian:bullseye
 >
 > RUN apt-get update
 > RUN apt-get upgrade
 >

Upon further testing, this bug is triggered when running docker inside a 
container.
Docker inside a VM doesn't trigger this and a regular debian container
also doesn't trigger this issue.
Can be closed.

- Roland



More information about the Pkg-gmagick-im-team mailing list