[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#262887: marked as done ("apt-get --purge remove ..." purges package before uninstalling depending package)



Your message dated Wed, 14 Sep 2011 19:34:17 +0200
with message-id <CAAZ6_fDgsrxgvhLi6SCBR4ry9eGWL8NkUw9Sw44BeuYSvqXG1w@mail.gmail.com>
and subject line Close: "apt-get --purge remove ..." purges package before uninstalling depending package
has caused the Debian Bug report #262887,
regarding "apt-get --purge remove ..." purges package before uninstalling depending package
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
262887: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=262887
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: exim4
Version: 4.32-2
Severity: normal


Hi,

when replacing exim4 with postfix (apt-get --purge install postfix), the
exim daemon keeps running and listening on port 25:

# ps -Upostfix -f 
UID        PID  PPID  C STIME TTY          TIME CMD
postfix    417     1  0 13:21 ?        00:00:00 /usr/sbin/exim4 -bd
-q30m
postfix   1304  1300  0 13:44 ?        00:00:00 pickup -l -t fifo -u -c
postfix   1305  1300  0 13:44 ?        00:00:00 qmgr -l -t fifo -u -c
postfix   1334   417  0 13:51 ?        00:00:00 [exim4] <defunct>

# netstat -ape | grep exim4
tcp        0      0 localhost.localdom:smtp *:*
LISTEN     root       1273       417/exim4           

# tail /var/log/mail.info 
Jul 29 13:44:43 hal postfix/postfix-script: starting the Postfix mail
system
Jul 29 13:44:44 hal postfix/master[1300]: daemon started -- version
2.1.3
Jul 29 13:51:53 hal exim[1334]: 2004-07-29 13:51:53 re-exec of exim
(/usr/sbin/exim4) with -q failed: No such file or directory
Jul 29 13:51:53 hal exim[1334]: 2004-07-29 13:51:53 Cannot open main log
file "/var/log/exim4/mainlog": Permission denied: euid=102 egid=102
Jul 29 13:51:53 hal exim[1334]: exim: could not open panic log -
aborting: see message(s) above

This happens after a new install with d-i, immidiately followed by
installing postfix (tried on two systems).

Regards, Til


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=C


--- End Message ---
--- Begin Message ---
> indeed. Seems like apt is ignoring policy 7.2
> | The Depends field should also be used if the postinst, prerm or postrm
> | scripts require the package to be present in order to run.

The (current) policy in this section also says:
> Finally, the Depends field should be used if the depended-on package is
> needed by the postrm script to fully clean up after the package removal.
> There is no guarantee that package dependencies will be available when
> postrm is run, but the depended-on package is more likely to be available
> if the package declares a dependency (particularly in the case of postrm
> remove). The postrm script must gracefully skip actions that require a
> dependency if that dependency isn't available.

Adding that all these removes happen in the same dpkg call it's in the
end dpkg who decides which packages is removed first, but as either
way is valid according to policy this is not a bug.


Given that ordering is constantly improved in dpkg and APT it's likely
that this non-issue is even already fixed. I am therefore closing this
"bug" now, but feel free to reopen it, if i am on the wrong track.


Best regards

David Kalnischkies


--- End Message ---

Reply to: