LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-07-2014, 06:01 PM   #1
dansimon
Member
 
Registered: Jun 2013
Location: Norway
Distribution: Slackware
Posts: 58

Rep: Reputation: Disabled
force reinstall/reconfigure of broken packages in debian (exim) [SOLVED]


I need to reinstall exim4-daemon-heavy on my system, and reinstall the files in /etc/exim4 (witch i presume are in exim4-base/exim4-config ?),
however apt-get refuses with the following errors:

------------------------------------------------------------------------

Error: Unsplit config selected and /etc/exim4/exim4.conf.template missing ... exiting
dpkg: error processing exim4-config (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of exim4-base:
exim4-base depends on exim4-config (>= 4.30) | exim4-config-2; however:
Package exim4-config is not configured yet.
Package exim4-config-2 is not installed.
Package exim4-config which provides exim4-config-2 is not configured yet.

dpkg: error processing exim4-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exim4-daemon-heavy:
exim4-daemon-heavy depends on exim4-base (>= 4.80); however:
Package exim4-base is not configured yet.

dpkg: error processing exim4-daemon-heavy (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exim4:
exim4 depends on exim4-base (>= 4.80); however:
Package exim4-base is not configured yet.
exim4 depends on exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom; however:
Package exim4-daemon-light is not installed.
Package exim4-daemon-heavy is not configured yet.
Package exim4-daemon-custom is not installed.

dpkg: error processing exim4 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
exim4-config
exim4-base
exim4-daemon-heavy
exim4
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pspodcasting:/var/log/exim4# dpkg-reconfigure exim4-base
/usr/sbin/dpkg-reconfigure: exim4-base is broken or not fully installed

-----------------------------------------------------------------------

is there any way I can force dpkg to reconfigure all this stuff?

Last edited by dansimon; 04-07-2014 at 06:12 PM.
 
Old 04-07-2014, 06:12 PM   #2
dansimon
Member
 
Registered: Jun 2013
Location: Norway
Distribution: Slackware
Posts: 58

Original Poster
Rep: Reputation: Disabled
Figured out a solution

apt-get --purge remove exim4 exim4-base exim4-config exim4-daemon-heavy
apt-get install exim4-daemon-heavy
 
Old 04-07-2014, 06:18 PM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,220

Rep: Reputation: Disabled
Looks like there's some problem with exim4-base; maybe a bug in its post-install script, or maybe the package is just broken. Not sure whether this will work, but you could try to purge all exim4-* packages and install them again. To purge them, execute this command:

Code:
apt-get purge exim4-base exim4-config [and so on with the other packages]
Then reinstall them as you usually do (apt-get/synaptic, etc).

---------- Post added 07-04-14 at 10:19 PM ----------

You beat me to it. Glad you got it working.
 
Old 04-08-2014, 02:24 AM   #4
dansimon
Member
 
Registered: Jun 2013
Location: Norway
Distribution: Slackware
Posts: 58

Original Poster
Rep: Reputation: Disabled
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: How To Fix Broken Packages In Ubuntu Or Debian LXer Syndicated Linux News 0 04-06-2012 05:00 AM
Debian Packages System Broken, Plz Help (Ubuntu) RN87 Linux - Software 6 11-18-2007 03:17 AM
Need to force debian to reconfigure everything on boot k4zau Debian 2 10-13-2006 03:14 PM
Debian unstable - unfixable broken packages after update. Imek Debian 4 07-20-2005 01:23 PM
Reconfigure Exim TroelsSmit Linux - Newbie 4 06-20-2005 10:09 AM

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

All times are GMT -5. The time now is 01: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration