package mailscanner 4.58.9-2ubuntu1 failed to install/upgrade:

Bug #215932 reported by madagascar
34
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mailscanner (Debian)
Fix Released
Unknown
mailscanner (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mailscanner

Package MailScanner.

installed previously, got errors can't re-install, can't remove, can't upgrade to debian version:

a. attempt to re-install mailscanner:

11325@mail:~# apt-get install mailscanner
Reading package lists... Done
Building dependency tree
Reading state information... Done
mailscanner is already the newest version.
The following packages were automatically installed and are no longer required:
  language-support-writing-en linux-headers-2.6.24-12-generic
  linux-headers-2.6.24-12 linux-headers-2.6.24-14 libcwidget0 gimp-help-common
  libmail-spf-query-perl gimp-help-en openoffice.org-thesaurus-en-au
  plib1.8.4c2 linux-headers-2.6.24-14-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B/556kB of archives.
After this operation, 0B of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package mailscanner.
(Reading database ... 236337 files and directories currently installed.)
Preparing to replace mailscanner 4.58.9-2ubuntu1 (using .../mailscanner_4.58.9-2ubuntu1_all.deb) ...
invoke-rc.d: initscript mailscanner, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
No MailScanner found running; none killed.
invoke-rc.d: initscript mailscanner, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/mailscanner_4.58.9-2ubuntu1_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
invoke-rc.d: initscript mailscanner, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mailscanner_4.58.9-2ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

----//----

b.) attempt to de-install MailScanner:

11325@mail:~# apt-get purge mailscanner
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  language-support-writing-en linux-headers-2.6.24-12-generic
  linux-headers-2.6.24-12 linux-headers-2.6.24-14 libcwidget0 gimp-help-common
  libmail-spf-query-perl gimp-help-en libnet-cidr-lite-perl
  openoffice.org-thesaurus-en-au plib1.8.4c2 linux-headers-2.6.24-14-generic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  mailscanner*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 4227kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing mailscanner (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 mailscanner
E: Sub-process /usr/bin/dpkg returned an error code (1)

----//----

c.) attempt to upgrade

11325@mail:/var/cache/apt/archives# sudo dpkg --force-overwrite -i mailscanner_4.66.5-2_all.deb
(Reading database ... 236337 files and directories currently installed.)
Preparing to replace mailscanner 4.58.9-2ubuntu1 (using mailscanner_4.66.5-2_all.deb) ...
invoke-rc.d: initscript mailscanner, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
No MailScanner found running; none killed.
invoke-rc.d: initscript mailscanner, action "stop" failed.
dpkg: error processing mailscanner_4.66.5-2_all.deb (--install):
 subprocess new pre-removal script returned error exit status 1
invoke-rc.d: initscript mailscanner, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mailscanner_4.66.5-2_all.deb

Thanks,
adrian

ProblemType: Package
Architecture: amd64
Date: Fri Apr 11 22:25:55 2008
DistroRelease: Ubuntu 8.04
ErrorMessage:
 ErrorMessage: Package is in a very bad inconsistent state - you should
NonfreeKernelModules: nvidia
Package: mailscanner 4.58.9-2ubuntu1
PackageArchitecture: all
SourcePackage: mailscanner
Title: package mailscanner 4.58.9-2ubuntu1 failed to install/upgrade:
Uname: Linux 2.6.24-15-generic x86_64

Revision history for this message
madagascar (ai-bcn) wrote :
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Looks like this is fixed in 4.68.8-1 (covered by bug 204546)

Changed in mailscanner:
status: Unknown → Fix Released
Revision history for this message
Jussi Saarinen (jms) wrote :

I have same problem when I try to upgrade from version 4.58.9-2ubuntu1 to
4.58.9-2ubuntu1.2

jms% dpkg -l mailscanner
||/ Name Version Description
+++-=============================-=============================
ii mailscanner 4.58.9-2ubuntu1 email virus scanner and spam tagger

jms% ps ax|grep -i mail|grep -v grep
 6045 ? SNs 0:00 MailScanner: master waiting for children, sleeping
 6046 ? SN 0:01 MailScanner: waiting for messages
 7099 ? Ss 0:00 /usr/bin/fetchmail -f /etc/fetchmailrc --pidfile /var/run/fetchmail/fetchmail.pid --syslog

jms% sudo apt-get -u upgrade
[sudo] password for jms:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  mailscanner
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/556kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
(Reading database ... 223206 files and directories currently installed.)
Preparing to replace mailscanner 4.58.9-2ubuntu1 (using .../mailscanner_4.58.9-2ubuntu1.2_all.deb) ...
invoke-rc.d: initscript mailscanner, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
No MailScanner found running; none killed.
invoke-rc.d: initscript mailscanner, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/mailscanner_4.58.9-2ubuntu1.2_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
trying invoke-rc.d
Errors were encountered while processing:
 /var/cache/apt/archives/mailscanner_4.58.9-2ubuntu1.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried to solve this by editing script /var/lib/dpkg/info/mailscanner.prerm but no luck so far...

Revision history for this message
max (maxwevers) wrote :

as a quick and dirty work-around stop mailscanner and then edit /etc/init.d/mailscanner and add exit 0 to the top of the do_stop section.

Revision history for this message
Jussi Saarinen (jms) wrote :

Ok, now I have mailscanner upgraded to 4.58.9-2ubuntu1.2. I had to add "exit 0" also to top of do_start section.

Thank You!

Revision history for this message
Greg A (etulfetulf) wrote :

Ubuntu Intrepid no has the 4.68.8-1 version, this should include the fix from Debiam.

Changed in mailscanner:
status: New → Fix Released
Changed in mailscanner (Ubuntu):
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
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.