Package: tiger
Version: 1:3.2.4~rc1-1
Severity: normal

Dear Maintainer,

I am installing debian machines via Ansible and also clean out some packages 
sometimes.

When trying to uninstalling tiger, sometimes the postrm script fails because 
/var/log/tiger 
does not exist any more when the postrm script is run.

I verified that before removal of the package the directory /var/log/tiger did 
still exist,
but uninstalling did still fail somehow, so it seems the uninstallation of 
tiger somehow
removes this directory as part of normal package removal and then the postrm 
script fails
because the directory is not available any more.

However it was not always reproducible and I could not pinpoint the exact 
circumstances for this
to happen.

Maybe the postrm script should handle this more gracefully by not failing when 
the directory
is not there any more.

This is the output of my Ansible playbook
----

TASK [Uninstall tiger first to work around a bug in postrm] 
*****************************************************************************************************************************************************************************************************************
task path: /opt/svn/Ansible/tasks/cleanout.yml:60
fatal: [bionic]: FAILED! => {
    "changed": false,
    "rc": 100
}

STDOUT:

Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  chkrootkit john john-data tripwire
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  tiger*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 2545 kB disk space will be freed.
(Reading database ... 346436 files and directories currently installed.)
Removing tiger (1:3.2.4~rc1-1) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for desktop-file-utils (0.23-4) ...
(Reading database ... 346061 files and directories currently installed.)
Purging configuration files for tiger (1:3.2.4~rc1-1) ...
find: '/var/log/tiger/': No such file or directory
dpkg: error processing package tiger (--purge):
 installed tiger package post-removal script subprocess returned error exit 
status 1
Errors were encountered while processing:
 tiger
libdvd-pkg: Checking orig.tar integrity...
/usr/src/libdvd-pkg/libdvdcss_1.4.2.orig.tar.bz2: OK
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...



STDERR:

E: Sub-process /usr/bin/dpkg returned an error code (1)



MSG:

'apt-get remove 'tiger'' failed: E: Sub-process /usr/bin/dpkg returned an error 
code (1)

----


-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_CRAP
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tiger depends on:
ii  binutils               2.31.1-16
ii  bsdmainutils           11.1.2+b1
ii  debconf [debconf-2.0]  1.5.71
ii  libc6                  2.28-10
ii  net-tools              1.60+git20180626.aebd88e-1
ii  ucf                    3.0038+nmu1

Versions of packages tiger recommends:
ii  chkrootkit                      0.52-3+b10
ii  john                            1.8.0-2+b1
ii  postfix [mail-transport-agent]  3.4.5-1
ii  tripwire                        2.4.3.7-1+b10

Versions of packages tiger suggests:
ii  lsof  4.91+dfsg-1

-- debconf information excluded

Reply via email to