The way it should work when upgrading is:

1. Stop dovecot
2. Install files for all new dovecot packages
3. Start dovecot

Is that possible? Or most importantly dovecot-core and dovecot-managesieved 
needs to be installed in the same step.

An alternative would be to move libmanagesieve_login_settings.so and 
libmanagesieve_settings.so to dovecot-core package. I don't think they require 
anything from the managesieve packages.

On 1.6.2012, at 18.01, Gedalya wrote:

> Looks like this is now happening but only for managesieve:
> 
> Just upgraded my server to the version in sid, with the following results
> 
> root@mail:~# apt-get install dovecot-core
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer 
> required:
>  libboost-iostreams1.48.0 libcloog-ppl0 libdigest-sha1-perl libev4 
> libgmpxx4ldbl libppl-c4 libppl9 libpwl5 libpython2.6
> Use 'apt-get autoremove' to remove them.
> The following extra packages will be installed:
>  dovecot-imapd dovecot-managesieved dovecot-mysql dovecot-pop3d dovecot-sieve
> Suggested packages:
>  dovecot-gssapi dovecot-pgsql dovecot-sqlite dovecot-ldap dovecot-lmtpd 
> dovecot-solr
> The following packages will be upgraded:
>  dovecot-core dovecot-imapd dovecot-managesieved dovecot-mysql dovecot-pop3d 
> dovecot-sieve
> 6 upgraded, 0 newly installed, 0 to remove and 77 not upgraded.
> Need to get 4,961 kB of archives.
> After this operation, 1,700 kB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Get:1 http://mirror.cc.columbia.edu/debian/ sid/main dovecot-managesieved 
> i386 1:2.1.7-1 [388 kB]
> Get:2 http://mirror.cc.columbia.edu/debian/ sid/main dovecot-sieve i386 
> 1:2.1.7-1 [587 kB]
> Get:3 http://mirror.cc.columbia.edu/debian/ sid/main dovecot-pop3d i386 
> 1:2.1.7-1 [360 kB]
> Get:4 http://mirror.cc.columbia.edu/debian/ sid/main dovecot-mysql i386 
> 1:2.1.7-1 [341 kB]
> Get:5 http://mirror.cc.columbia.edu/debian/ sid/main dovecot-imapd i386 
> 1:2.1.7-1 [421 kB]
> Get:6 http://mirror.cc.columbia.edu/debian/ sid/main dovecot-core i386 
> 1:2.1.7-1 [2,864 kB]
> Fetched 4,961 kB in 1s (3,579 kB/s)
> Reading changelogs... Done
> (Reading database ... 34228 files and directories currently installed.)
> Preparing to replace dovecot-managesieved 1:2.0.18-1 (using 
> .../dovecot-managesieved_1%3a2.1.7-1_i386.deb) ...
> [ ok ] Stopping IMAP/POP3 mail server: dovecot.
> Unpacking replacement dovecot-managesieved ...
> doveconf: Error: Module is for different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_login_settings.so
> doveconf: Error: Module is for different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_settings.so
> doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: 
> protocols: Unknown protocol: sieve
> [....] Starting IMAP/POP3 mail server: dovecotdoveconf: Error: Module is for 
> different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_login_settings.so
> doveconf: Error: Module is for different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_settings.so
> doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: 
> protocols: Unknown protocol: sieve
> failed!
> invoke-rc.d: initscript dovecot, action "start" failed.
> dpkg: warning: subprocess old post-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> doveconf: Error: Module is for different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_login_settings.so
> doveconf: Error: Module is for different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_settings.so
> doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: 
> protocols: Unknown protocol: sieve
> [....] Starting IMAP/POP3 mail server: dovecotdoveconf: Error: Module is for 
> different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_login_settings.so
> doveconf: Error: Module is for different version 2.1.7: 
> /usr/lib/dovecot/modules/settings/libmanagesieve_settings.so
> doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: 
> protocols: Unknown protocol: sieve
> failed!
> invoke-rc.d: initscript dovecot, action "start" failed.
> dpkg: error processing 
> /var/cache/apt/archives/dovecot-managesieved_1%3a2.1.7-1_i386.deb (--unpack):
> subprocess new post-removal script returned error exit status 1
> [ ok ] Starting IMAP/POP3 mail server: dovecot.
> [ ok ] Restarting IMAP/POP3 mail server: dovecot.
> Preparing to replace dovecot-sieve 1:2.0.18-1 (using 
> .../dovecot-sieve_1%3a2.1.7-1_i386.deb) ...
> Unpacking replacement dovecot-sieve ...
> [ ok ] Starting IMAP/POP3 mail server: dovecot.
> Preparing to replace dovecot-pop3d 1:2.0.18-1 (using 
> .../dovecot-pop3d_1%3a2.1.7-1_i386.deb) ...
> [ ok ] Stopping IMAP/POP3 mail server: dovecot.
> Unpacking replacement dovecot-pop3d ...
> [ ok ] Starting IMAP/POP3 mail server: dovecot.
> Preparing to replace dovecot-mysql 1:2.0.18-1 (using 
> .../dovecot-mysql_1%3a2.1.7-1_i386.deb) ...
> Unpacking replacement dovecot-mysql ...
> [ ok ] Starting IMAP/POP3 mail server: dovecot.
> Preparing to replace dovecot-imapd 1:2.0.18-1 (using 
> .../dovecot-imapd_1%3a2.1.7-1_i386.deb) ...
> [ ok ] Stopping IMAP/POP3 mail server: dovecot.
> Unpacking replacement dovecot-imapd ...
> [ ok ] Starting IMAP/POP3 mail server: dovecot.
> Preparing to replace dovecot-core 1:2.0.18-1 (using 
> .../dovecot-core_1%3a2.1.7-1_i386.deb) ...
> [ ok ] Stopping IMAP/POP3 mail server: dovecot.
> Unpacking replacement dovecot-core ...
> Processing triggers for man-db ...
> Errors were encountered while processing:
> /var/cache/apt/archives/dovecot-managesieved_1%3a2.1.7-1_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> a subsequent apt-get install dovecot-managesieved worked and fixed it.
> 




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to