[Gutsy] Dependency Problems on Dovecot

Bug #153161 reported by Dax Solomon Umaming
2
Affects Status Importance Assigned to Milestone
dovecot (Ubuntu)
Fix Released
Low
Mathias Gug

Bug Description

I installed Ubuntu Server RC on my server. When I installed Dovecot, I had errors configuring it. I dpkg --configured it, but it's still spitting out errors. It works fine though once I restart it, but I don't think I can upgrade it.

dax@server:~$ apt-cache madison dovecot
   dovecot | 1:1.0.5-1ubuntu2 |

dax@server:~$ sudo dpkg --configure -a
Setting up dovecot-common (1:1.0.5-1ubuntu2) ...
Not replacing deleted config file /etc/dovecot/dovecot-ldap.conf
chmod: cannot access `/etc/dovecot/dovecot-ldap.conf': No such file or directory
dpkg: error processing dovecot-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of dovecot-pop3d:
 dovecot-pop3d depends on dovecot-common (= 1:1.0.5-1ubuntu2); however:
  Package dovecot-common is not configured yet.
dpkg: error processing dovecot-pop3d (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dovecot-imapd:
 dovecot-imapd depends on dovecot-common (= 1:1.0.5-1ubuntu2); however:
  Package dovecot-common is not configured yet.
dpkg: error processing dovecot-imapd (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 dovecot-common
 dovecot-pop3d
 dovecot-imapd

Related branches

Revision history for this message
Adam Sommer (asommer) wrote :

Was it a clean install or an upgrade? Also, did you use apt-get install or another method?

Revision history for this message
Dax Solomon Umaming (knightlust) wrote :

It was a clean install. I installed it last Saturday. This morning, when I tried to update it, that's when the dependency error showed up.

Revision history for this message
Adam Sommer (asommer) wrote :

Did you delete the /etc/dovecot/dovecot-ldap.conf file? If so you may need to create an empty /etc/dovecot/dovecot-ldap.conf file, then try to apt-get --configure -a.

With some packages apt tries to handle config files in a sane way.

Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

As mentioned by asommer, you've probably deleted /etc/doveco/dovecot-ldap.conf. If you recreate it, the upgrade should work.

Changed in dovecot:
assignee: nobody → mathiaz
importance: Undecided → Low
milestone: none → gutsy-updates
status: New → Triaged
Revision history for this message
Dax Solomon Umaming (knightlust) wrote :

@asommer
Thanks, it's working now. I guess I should've mentioned that I backed-up /etc/dovecot, did a fresh Gutsy install, and mv'd dovecot to my server.

@Mathias
I think you should close this as invalid

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 153161] Re: [Gutsy] Dependency Problems on Dovecot

On Tue, Oct 16, 2007 at 04:02:39PM -0000, Dax Solomon Umaming wrote:
> @asommer
> Thanks, it's working now. I guess I should've mentioned that I backed-up /etc/dovecot, did a fresh Gutsy install, and mv'd dovecot to my server.
>
> @Mathias
> I think you should close this as invalid
>

Thanks.

I think that the postinst scripts should be fixed to not fail if conffile
are not present. Thus keeping it triaged.

--
Mathias

Revision history for this message
Adam Sommer (asommer) wrote :

I don't currently have a development environment setup, or I'd post a debdiff file, but here's a diff for dovecot-common.postinst that may take care of the file missing issue. Justed added a if [ -e $conffile ] to the for loop wrapping the ucf and ucfr statements. I think that will work?

Thought I'd take a crack at it anyway.

Thanks Mathias

Revision history for this message
Mathias Gug (mathiaz) wrote :

On Tue, Oct 16, 2007 at 05:15:34PM -0000, asommer wrote:
> ** Attachment added: "dovecot-common.postinst.diff"
> http://launchpadlibrarian.net/10049894/dovecot-common.postinst.diff

Almost. Your changes looks good, but the bug report is about the chmod,
which should also be protected by a test.

Revision history for this message
Adam Sommer (asommer) wrote :

Ah... quite right. I missed that in the posted output.

Thanks again Mathias

Revision history for this message
Soren Hansen (soren) wrote :

I've prepared an upload for this issue for when the archive opens for
hardy.

--
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/

Revision history for this message
Soren Hansen (soren) wrote :

dovecot (1:1.0.5-1ubuntu3) hardy; urgency=low

  * Don't fail in postinst if dovecot-{sql,ldap} is missing. (LP: #153161)
    Thanks to Adam Sommer for the initial patch!

 -- Soren Hansen <email address hidden> Thu, 18 Oct 2007 16:59:23 +0200

Changed in dovecot:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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