[SRU] spampd 2.30
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | spampd (Ubuntu) |
Undecided
|
Marc Hauswirth | ||
Bug Description
The first line of the init-script set a wrong shell, so that the package can not be started on a standard Edgy system.
The changes are simple :
In the first line of /etc/init.d/spampd
- #!/bin/sh -e
+ #!/bin/bash
ref : https:/
It was Ok on Dapper so when I upgraded my machine I got in troubles. On Feisty this packaged was resynchronized with Debian, and this issues was addresses in the same manner.
Kind regards,
Marc
| Marc Hauswirth (marc-practeo) wrote : | #1 |
| Changed in spampd: | |
| assignee: | nobody → marc-practeo |
| status: | Unconfirmed → In Progress |
| description: | updated |
| StefanPotyra (sistpoty) wrote : | #2 |
Version number should probably be 2.30-11ubuntu0.
+1.
| Reinhard Tartler (siretart) wrote : | #3 |
you can drop the dependency on bash, since bash is Priority 'required'. Apart from that and fix the version number: +1
| Marc Hauswirth (marc-practeo) wrote : | #4 |
Thanks for all comments and all hints.
I changed the version and the bash dependency.
| StefanPotyra (sistpoty) wrote : | #5 |
still +1
| Daniel T Chen (crimsun) wrote : | #6 |
bash must be declared as a Depends according to Simon Law's comment on the oprofile SRU[0].
[0] https:/
| StefanPotyra (sistpoty) wrote : | #7 |
Hi,
nope, bash shouldn't be in depends, since it's essential=Yes (cf. debian policy, 3.5).
P.S.: I was confused by sfflaw's comment as well in the first place ;).
| Daniel T Chen (crimsun) wrote : | #8 |
Looks sane, +1.
| Daniel T Chen (crimsun) wrote : | #9 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 22 Dec 2006 14:07:20 +0100
Source: spampd
Binary: spampd
Architecture: source
Version: 2.30-11ubuntu0.
Distribution: edgy-proposed
Urgency: low
Maintainer: Sven Mueller <email address hidden>
Changed-By: Marc Hauswirth <email address hidden>
Description:
spampd - spamassassin based SMTP/LMTP proxy daemon
Changes:
spampd (2.30-11ubuntu0
.
* Fix in spampd.init from /bin/sh -e to /bin/bash
In the previous version (2.30-11), the daemon couldn't start correctly on
a standard edgy machine.
Reported under bug #76861 ([SRU] Spampd).
This bug is also referenced under lauchpad #69595 and #76654 and debian #391219.
This issue as been fixed in Debian/unstable and Ubuntu/Feisty since
Files:
10c61289d7767a
70f76195c33f8e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFFrUmte9G
wbu1ld0WQOGgyMl
=00wC
-----END PGP SIGNATURE-----
| Reinhard Tartler (siretart) wrote : | #10 |
+1
| Tollef Fog Heen (tfheen) wrote : | #11 |
Accepted into edgy-proposed; please solicit testing as per https:/
| Changed in spampd: | |
| status: | In Progress → Fix Committed |
| Marc Hauswirth (marc-practeo) wrote : | #12 |
Installed successfully, works for me
| Kristoffer H (mputoris) wrote : | #13 |
spampd_
| Kristoffer H (mputoris) wrote : | #14 |
I got the result:
@disgraceland:~$ sudo dpkg -i spampd_
(Läser databasen ... 307396 filer och kataloger installerade.)
Förbereder att ersätta spampd 2.30-11 (med spampd_
* ERROR: Insufficient privileges. Retry as root
invoke-rc.d: initscript spampd, action "stop" failed.
dpkg: varning - gammalt pre-removal-skript returnerade felstatus 4
dpkg - försöker skript från det nya paketet istället ...
* ERROR: Insufficient privileges. Retry as root
invoke-rc.d: initscript spampd, action "stop" failed.
dpkg: fel vid hantering av spampd_
underprocess nytt pre-removal-skript gav felkod 4
spampd.postinst: Aborting upgrade
spampd.postinst: Not creating statoverrides on abort-upgrade. other version: 2.30-11ubuntu0.
* ERROR: Insufficient privileges. Retry as root
invoke-rc.d: initscript spampd, action "start" failed.
dpkg: fel vid upprensning:
underprocess post-installation script gav felkod 4
Fel uppstod vid hantering:
spampd_
Retry as root? Shouldn't ''sudo'' be enough?
| Kristoffer H (mputoris) wrote : | #15 |
I tried as root; it still seems to generate the same messages.
| Marc Hauswirth (marc-practeo) wrote : | #16 |
Hi did you remove the buggy spampd package completely before ?
sudo dpkg --remove --force-all spampd
| Kristoffer H (mputoris) wrote : | #17 |
I get this:
root@disgracela
dpkg - varning, ignorerar problem då --force använts:
Paketet är i ett väldigt dåligt inkonsistent läge - du bör
ominstallera det innan du försöker ta bort det.
(Läser databasen ... 307394 filer och kataloger installerade.)
Tar bort spampd ...
* ERROR: Insufficient privileges. Retry as root
invoke-rc.d: initscript spampd, action "stop" failed.
dpkg: fel vid hantering av spampd (--remove):
underprocess pre-removal script gav felkod 4
* ERROR: Insufficient privileges. Retry as root
invoke-rc.d: initscript spampd, action "start" failed.
dpkg: fel vid upprensning:
underprocess post-installation script gav felkod 4
Fel uppstod vid hantering:
spampd
root@disgracela
| Marc Hauswirth (marc-practeo) wrote : | #18 |
Ok so the remove of the previous package seams to fail ...
Could you give the result of :
dpkg -l spampd
(So that we could have your actual installed package version)
Thanks.
| Marc Hauswirth (marc-practeo) wrote : | #19 |
If you have the version 2.30-11
marc@cancun:~$ dpkg -l spampd
[...]
||/ Name Version Description
iF spampd 2.30-11 spamassassin based SMTP/LMTP proxy daemon
edit the file /etc/init.d/spampd
change only the first line from
#!/bin/sh -e
to
#!/bin/bash
then you should be able to remove the old package
dpkg --remove spampd
| Marc Hauswirth (marc-practeo) wrote : | #20 |
A Larger question :
Is it possible to modify a file of a previously installed package before removing it via the standard dpkg tools ? (in case of buggy init.d scripts ?)
or what would be a "nice" patch in the case of a unremovable package
thanks.
| Kristoffer H (mputoris) wrote : | #21 |
root@disgracela
Önskat=
| Status=
|/ Fel?Inget(
||/ Namn Version Beskrivning
+++-===
iFR spampd 2.30-11 spamassassin based SMTP/LMTP proxy daemon
root@disgracela
| Kristoffer H (mputoris) wrote : | #22 |
I tried to change the first line in /etc/init.d/spampd to ''#!/bin/bash/'' and then remove the package with ''dpkg --remove spampd'' and gets:
root@disgracela
dpkg: fel vid hantering av spampd (--remove):
Paketet är i ett väldigt dåligt inkonsistent läge - du bör
ominstallera det innan du försöker ta bort det.
Fel uppstod vid hantering:
spampd
root@disgraceland:
It still tells me to reinstall it instead.
| Marc Hauswirth (marc-practeo) wrote : | #23 |
Ok, your are fighting with the old buggy package ( spampd 2.30-11 )
dpkg didn't used the new package for the moment ....
At this point you should try
dpkg --remove --force-all spampd
or to install the new one
dpkg -i spampd_
| Kristoffer H (mputoris) wrote : | #24 |
After I changed /etc/init.d/spampd update-manager works again. It detected new updates this morning and it was able to down load the updates and is now installing them...
...update-manager offerd a new /etc/init.d/spamd which instead of ''#!/bin/bash'' had ''#!/bin/bash -e'' and then everything is working.
| Marc Hauswirth (marc-practeo) wrote : | #25 |
And now, witch version do you have ?
dpkg -l spampd
| Kristoffer H (mputoris) wrote : | #26 |
illern@
Önskat=
| Status=
|/ Fel?Inget(
||/ Namn Version Beskrivning
+++-===
ii spampd 2.30-15 spamassassin based SMTP/LMTP proxy daemon
illern@
| Marc Hauswirth (marc-practeo) wrote : | #27 |
Ok so you use the feisty (7.04 beta) distribution and not edgy (6.10) ...
How did you managed to come in this situation ?
Fresh feisty install ?
Upgrade from edgy or 6.05 LTS ?
| Kristoffer H (mputoris) wrote : | #28 |
Upgrade from 6 LTS.
| Changed in spampd: | |
| status: | Fix Committed → Fix Released |
| Changed in spampd: | |
| status: | Fix Released → Fix Committed |
| Martin Pitt (pitti) wrote : | #29 |
Copied to edgy-updates.
| Changed in spampd: | |
| status: | Fix Committed → Fix Released |


My patch proposition