cjsmall
December 30th, 2014, 07:29 AM
I have a recent fresh bare metal installation of Ubuntu Server 14.10 suplemented with the Xubuntu desktop packages. Everything was working fine.
I was configuring the system from scratch and decided to install sendmail which I have used for decades. This was done using the Synaptic package manager. It turned out that the base installation had already included postfix, a program that I've never used. At this point I'm not sure of the details of the installation, but I believe that postfix was scheduled for removal and then sendmail was to be installed. Something went wrong and I started getting installation errors that seemed to, at first, revolve around the spamassassin package. As subsequent packages were being installed, more problems developed. In an attempt to walk back from these errors, I removed the sendmail packages and reinstalled postfix. Unfortunately, this did not correct the problem and the errors began to multiply. I have investigated many articles that explain how to correct package errors and have tried all of the usual suspects without success:
apt-get -f install
dpkg --configure -a
apt-get update
apt-get clean
apt-get autoclean
apt-get autoremove
apt-get check
apt-get -m update
apt-get dist-upgrade
I will attach the full output from dpkg --configure -a below, but it concludes:
Errors were encountered while processing:
lsb-core
apcupsd
apcupsd-cgi
ebtables
udev
mailutils
smartmontools
xserver-xorg-core
gsmartcontrol
systemd
libpam-systemd:amd64
In addition, I have a couple of totally unrelated dependancy packages for an uninstalled xtide predictor (xtide-data & xtide-data-nonfree) which are scheduled for removal. However, they cannot be removed because they generate the following typical error:
Errors were encountered while processing:
xtide-data
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried to force the removal without success. I cannot install most new packages because dpkg wants to remove these packages first and fails.
So my question: Is there a reliable procedure for correcting this condition and getting back to a stable state? If so, great.
If not, then, at this point, I am prepared to reinstall the entire OS just so I can move forward once again. Is there a way to do this from a live system without having to revert back to the install disk where I will have to rebuild my RAID array, etc. and lose all of my current configuration? Note that I did try an apt-get update ; apt-get dist-upgrade and this fails with:
Errors were encountered while processing:
/var/cache/apt/archives/spamassassin_3.4.0-3ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks.
# dpkg --configure -a
dpkg: dependency problems prevent configuration of lsb-core:
lsb-core depends on lsb-invalid-mta (>= 4.1+Debian11ubuntu8) | mail-transport-agent; however:
Package lsb-invalid-mta is not installed.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing package lsb-core (--configure):
dependency problems - leaving unconfigured
Setting up apcupsd (3.14.10-2build1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start runlevel arguments (1 2 3 4 5) do not match apcupsd Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (0 6) do not match apcupsd Default-Stop values (0 1 6)
invoke-rc.d: not a symlink: /etc/rc2.d/S03apcupsd@
invoke-rc.d: dangling symlink: /etc/rc2.d/S03apcupsd@
dpkg: error processing package apcupsd (--configure):
subprocess installed post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of apcupsd-cgi:
apcupsd-cgi depends on apcupsd (= 3.14.10-2build1); however:
Package apcupsd is not configured yet.
dpkg: error processing package apcupsd-cgi (--configure):
dependency problems - leaving unconfigured
Setting up ebtables (2.0.10.4-3ubuntu1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: not a symlink: /etc/rcS.d/S02ebtables@
invoke-rc.d: dangling symlink: /etc/rcS.d/S02ebtables@
dpkg: error processing package ebtables (--configure):
subprocess installed post-installation script returned error exit status 102
Setting up udev (208-8ubuntu8.1) ...
invoke-rc.d: not a symlink: /etc/rcS.d/S03udev@
invoke-rc.d: dangling symlink: /etc/rcS.d/S03udev@
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package postfix which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
Setting up smartmontools (6.2+svn3841-1.2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: not a symlink: /etc/rc2.d/S03smartmontools@
invoke-rc.d: dangling symlink: /etc/rc2.d/S03smartmontools@
dpkg: error processing package smartmontools (--configure):
subprocess installed post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of xserver-xorg-core:
xserver-xorg-core depends on udev (>= 149); however:
Package udev is not configured yet.
dpkg: error processing package xserver-xorg-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gsmartcontrol:
gsmartcontrol depends on smartmontools; however:
Package smartmontools is not configured yet.
dpkg: error processing package gsmartcontrol (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of systemd:
systemd depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package systemd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-systemd:amd64:
libpam-systemd:amd64 depends on systemd (= 208-8ubuntu8.1); however:
Package systemd is not configured yet.
dpkg: error processing package libpam-systemd:amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
lsb-core
apcupsd
apcupsd-cgi
ebtables
udev
mailutils
smartmontools
xserver-xorg-core
gsmartcontrol
systemd
libpam-systemd:amd64
I was configuring the system from scratch and decided to install sendmail which I have used for decades. This was done using the Synaptic package manager. It turned out that the base installation had already included postfix, a program that I've never used. At this point I'm not sure of the details of the installation, but I believe that postfix was scheduled for removal and then sendmail was to be installed. Something went wrong and I started getting installation errors that seemed to, at first, revolve around the spamassassin package. As subsequent packages were being installed, more problems developed. In an attempt to walk back from these errors, I removed the sendmail packages and reinstalled postfix. Unfortunately, this did not correct the problem and the errors began to multiply. I have investigated many articles that explain how to correct package errors and have tried all of the usual suspects without success:
apt-get -f install
dpkg --configure -a
apt-get update
apt-get clean
apt-get autoclean
apt-get autoremove
apt-get check
apt-get -m update
apt-get dist-upgrade
I will attach the full output from dpkg --configure -a below, but it concludes:
Errors were encountered while processing:
lsb-core
apcupsd
apcupsd-cgi
ebtables
udev
mailutils
smartmontools
xserver-xorg-core
gsmartcontrol
systemd
libpam-systemd:amd64
In addition, I have a couple of totally unrelated dependancy packages for an uninstalled xtide predictor (xtide-data & xtide-data-nonfree) which are scheduled for removal. However, they cannot be removed because they generate the following typical error:
Errors were encountered while processing:
xtide-data
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried to force the removal without success. I cannot install most new packages because dpkg wants to remove these packages first and fails.
So my question: Is there a reliable procedure for correcting this condition and getting back to a stable state? If so, great.
If not, then, at this point, I am prepared to reinstall the entire OS just so I can move forward once again. Is there a way to do this from a live system without having to revert back to the install disk where I will have to rebuild my RAID array, etc. and lose all of my current configuration? Note that I did try an apt-get update ; apt-get dist-upgrade and this fails with:
Errors were encountered while processing:
/var/cache/apt/archives/spamassassin_3.4.0-3ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks.
# dpkg --configure -a
dpkg: dependency problems prevent configuration of lsb-core:
lsb-core depends on lsb-invalid-mta (>= 4.1+Debian11ubuntu8) | mail-transport-agent; however:
Package lsb-invalid-mta is not installed.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing package lsb-core (--configure):
dependency problems - leaving unconfigured
Setting up apcupsd (3.14.10-2build1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start runlevel arguments (1 2 3 4 5) do not match apcupsd Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (0 6) do not match apcupsd Default-Stop values (0 1 6)
invoke-rc.d: not a symlink: /etc/rc2.d/S03apcupsd@
invoke-rc.d: dangling symlink: /etc/rc2.d/S03apcupsd@
dpkg: error processing package apcupsd (--configure):
subprocess installed post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of apcupsd-cgi:
apcupsd-cgi depends on apcupsd (= 3.14.10-2build1); however:
Package apcupsd is not configured yet.
dpkg: error processing package apcupsd-cgi (--configure):
dependency problems - leaving unconfigured
Setting up ebtables (2.0.10.4-3ubuntu1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: not a symlink: /etc/rcS.d/S02ebtables@
invoke-rc.d: dangling symlink: /etc/rcS.d/S02ebtables@
dpkg: error processing package ebtables (--configure):
subprocess installed post-installation script returned error exit status 102
Setting up udev (208-8ubuntu8.1) ...
invoke-rc.d: not a symlink: /etc/rcS.d/S03udev@
invoke-rc.d: dangling symlink: /etc/rcS.d/S03udev@
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package postfix which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
Setting up smartmontools (6.2+svn3841-1.2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: not a symlink: /etc/rc2.d/S03smartmontools@
invoke-rc.d: dangling symlink: /etc/rc2.d/S03smartmontools@
dpkg: error processing package smartmontools (--configure):
subprocess installed post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of xserver-xorg-core:
xserver-xorg-core depends on udev (>= 149); however:
Package udev is not configured yet.
dpkg: error processing package xserver-xorg-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gsmartcontrol:
gsmartcontrol depends on smartmontools; however:
Package smartmontools is not configured yet.
dpkg: error processing package gsmartcontrol (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of systemd:
systemd depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package systemd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-systemd:amd64:
libpam-systemd:amd64 depends on systemd (= 208-8ubuntu8.1); however:
Package systemd is not configured yet.
dpkg: error processing package libpam-systemd:amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
lsb-core
apcupsd
apcupsd-cgi
ebtables
udev
mailutils
smartmontools
xserver-xorg-core
gsmartcontrol
systemd
libpam-systemd:amd64