package tftpd-hpa 5.2-1ubuntu1 failed to install/upgrade: Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück

Bug #1010891 reported by Christian Hintze
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
tftp-hpa (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

the post-removal script contains lines, where it should delete certain files or folders. if they do not exist, uninstall will fail because the post-removal script returns errorcode 1. just a minor issue, nevertheless.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: tftpd-hpa 5.2-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18
Uname: Linux 3.2.0-25-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
AptOrdering: tftpd-hpa: Remove
Architecture: amd64
Date: Sat Jun 9 15:02:41 2012
DpkgTerminalLog:
 Entfernen von tftpd-hpa ...
 dpkg: Fehler beim Bearbeiten von tftpd-hpa (--remove):
  Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
ErrorMessage: Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: tftp-hpa
Title: package tftpd-hpa 5.2-1ubuntu1 failed to install/upgrade: Unterprozess installiertes post-removal-Skript gab den Fehlerwert 1 zurück
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Christian Hintze (hintze) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tftp-hpa (Ubuntu):
status: New → Confirmed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug. Indeed, it looks as though the postrm script does 'rmdir --ignore-fail-on-non-empty' but that still raises an error when the directory does not exist, so should be '|| true'.

Changed in tftp-hpa (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
ignik (igor-spb) wrote :

/var/lib/dpkg/info/tftpd-hpa.postrm try deluser 'nobody'.
Change username in /etc/default/tftpd-hpa from 'nobody' to 'foo' and repeat install/purge.

Revision history for this message
Steve Langasek (vorlon) wrote :

> Indeed, it looks as though the postrm script does
> 'rmdir --ignore-fail-on-non-empty' but that still
> raises an error when the directory does not exist,
> so should be '|| true'.

This bug was raised against version 5.2-1ubuntu1 of the package, which has the following:

                                rmdir --ignore-fail-on-non-empty ${TFTP_DIRECTORY} > /dev/null 2>&1 || true

That's the only 'rmdir' in that file. So I'm pretty sure it's not that.

It could be the deluser problem that ignik points out. The maintainer script should not be trying to delete arbitrary users from the system who happen to be listed in /etc/default/tftpd-hpa!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.