LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-05-2007, 06:54 AM   #1
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
sarge to etch gone wrong


So just upgraded from sarge to etch and it seams to have most things installed ok except

The following. what can i do with this?

I think this is because i said no to overwriting the configuration file when doing an dist-upgrade.

Quote:
Password:
Sorry, try again.
Password:
Reading package lists... Done
Building dependency tree... Done
dovecot-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
4 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache-ssl (1.3.34-4.1) ...
Starting apache-ssl 1.3 web server... failed!
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
subprocess post-installation script returned error exit status 1
Setting up dovecot-common (1.0.rc15-2) ...
You already have ssl certs for dovecot.
Starting mail server: dovecotError: Error in configuration file /etc/dovecot/dovecot.conf line 40: Unknown setting: ssl_parameters_file
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-common (--configure):
subprocess post-installation script returned error exit status 89
dpkg: dependency problems prevent configuration of dovecot-imapd:
dovecot-imapd depends on dovecot-common (>= 1.0.beta3-1); however:
Package dovecot-common is not configured yet.
dpkg: error processing dovecot-imapd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dovecot-pop3d:
dovecot-pop3d depends on dovecot-common (>= 1.0.beta3-1); however:
Package dovecot-common is not configured yet.
dpkg: error processing dovecot-pop3d (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache-ssl
dovecot-common
dovecot-imapd
dovecot-pop3d
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 07-05-2007, 07:01 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Try the force option:
Code:
apt-get -f
No arguments, just that.
 
Old 07-05-2007, 07:26 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Starting apache-ssl 1.3 web server... failed!
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
subprocess post-installation script returned error exit status 1
Code:
sh -x /var/lib/dpkg/info/apache-ssl.postinst
Try to see why it fails



Quote:
Starting mail server: dovecotError: Error in configuration file /etc/dovecot/dovecot.conf line 40:
Hum yes for this one, you will need to merge your own modified sarge-configuration with the new etch version.
If you have modified dovecot conf file, move it to somewhere else, like /etc/dovecot/orig-dovecot.conf
then reinstall the package (this dovecot.conf is not defined in dovecot-common as a configuration file, so reinstalling the package should pull the current debian dovecot.conf), maybe
Code:
apt-get -f --reinstall install dovecot-common
Then you can use tkdiff to merge your old config and the new config from repos.
 
Old 07-05-2007, 08:11 AM   #4
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
so did the flowing

did what you said.

ran:
Quote:
namit:/etc/ssl/certs$ sudo apt-get -f --reinstall install dovecot-common
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B/1129kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 57104 files and directories currently installed.)
Preparing to replace dovecot-common 1.0.rc15-2 (using .../dovecot-common_1.0.rc15-2_i386.deb) ...
Stopping mail server: dovecot .
Unpacking replacement dovecot-common ...
Setting up apache-ssl (1.3.34-4.1) ...
Starting apache-ssl 1.3 web server... failed!
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
subprocess post-installation script returned error exit status 1
Setting up dovecot-common (1.0.rc15-2) ...
You already have ssl certs for dovecot.

Errors were encountered while processing:
apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo rm /etc/ssl/dovecot.pem

ran again


Quote:
namit@mailman:/etc/ssl/certs$ sudo apt-get -f --reinstall install dovecot-common apache-ssl
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B/1129kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 57104 files and directories currently installed.)
Preparing to replace dovecot-common 1.0.rc15-2 (using .../dovecot-common_1.0.rc15-2_i386.deb) ...
Stopping mail server: dovecot .
Unpacking replacement dovecot-common ...
Setting up apache-ssl (1.3.34-4.1) ...
Starting apache-ssl 1.3 web server... failed!
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
subprocess post-installation script returned error exit status 1
Setting up dovecot-common (1.0.rc15-2) ...
Creating generic self-signed certificate: /etc/ssl/certs/dovecot.pem
(replace with hand-crafted or authorized one if needed).
Warning : Bad SSL config, can't generate certificate
chown: cannot access `/etc/ssl/certs/dovecot.pem': No such file or directory
chgrp: cannot access `/etc/ssl/certs/dovecot.pem': No such file or directory
chmod: cannot access `/etc/ssl/certs/dovecot.pem': No such file or directory

Errors were encountered while processing:
apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 07-05-2007, 09:57 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
And what about apache?

when icedove was reinstalled, everything was fine
then you removed one file which is not included in the package, so reinstalling was not necessary.
Your icedove problem is now specific to icedove, which I don't know.
Try dpkg-reconfigure icedove (or icedove-common) or search in the documentation how to generate the certificates.

Maybe sudo rm /etc/ssl/certs/dovecot.pem followed by dpkg-reconfigure icedove-common would have worked. dunno..
 
Old 07-05-2007, 10:02 AM   #6
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
icedove?

have tried apt-get install and there is erorr when encountered while processing:

Quote:
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 07-05-2007, 10:13 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by namit
icedove?
lol dovecot
Quote:
have tried apt-get install and there is erorr when encountered while processing:

did you read completly my initial post?

Last edited by nx5000; 07-05-2007 at 10:14 AM.
 
Old 07-05-2007, 10:26 AM   #8
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
yes

output of sudo sh -x /var/lib/dpkg/info/apache-ssl.postinst

Quote:
+ set -e
+ make_selfsigned_cert
+ '[' '!' -f /etc/apache-ssl/apache.pem ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/apache-ssl.postinst
Then the apt-get -f --reinstall install dovecot-common crashes

Quote:
namit@mailman:~$ sudo apt-get -f --reinstall install dovecot-common
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B/1129kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 57113 files and directories currently installed.)
Preparing to replace dovecot-common 1.0.rc15-2 (using .../dovecot-common_1.0.rc15-2_i386.deb) ...
Stopping mail server: dovecot .
Unpacking replacement dovecot-common ...
Setting up apache-ssl (1.3.34-4.1) ...
Starting apache-ssl 1.3 web server... failed!
invoke-rc.d: initscript apache-ssl, action "start" failed.
dpkg: error processing apache-ssl (--configure):
subprocess post-installation script returned error exit status 1
Setting up dovecot-common (1.0.rc15-2) ...
You already have ssl certs for dovecot.

Errors were encountered while processing:
apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 07-05-2007, 10:40 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Forget about dovecot, it is installed, as it says :
Quote:
Errors were encountered while processing:
apache-ssl
Now for apache, it says it fails to start and unfortunatly doesn't give any message why.. damned apache
try this:
/etc/init.d/apache-ssl start
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sarge to Etch ve1drg Debian 4 04-16-2007 09:38 AM
Sarge or Etch, having trouble with both Perquisitor Debian 16 12-22-2006 06:15 AM
From Sarge to Etch jlinkels Debian 2 12-09-2006 03:19 AM
Sarge or Etch? win2suse Debian 5 09-02-2006 11:27 AM
sarge or etch? anti.corp Debian 16 12-17-2005 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration