dpkg problem: can't upgrade/configure procps package
- Login o registrati per inviare commenti
Hi,
When ever I run "sudo apt-get upgrade" I get the following errors:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: warning: ignoring option --foreign-architecture=@MULTIARCH@: must start with an alphanumeric
Setting up procps (1:3.2.8-11ubuntu6.3) ...
dpkg: warning: ignoring option --foreign-architecture=@MULTIARCH@: must start with an alphanumeric
dpkg: warning: ignoring option --foreign-architecture=@MULTIARCH@: must start with an alphanumeric
start: Job failed to start
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing procps (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
dpkg: dependency problems prevent configuration of apache2.2-common:
apache2.2-common depends on procps; however:
Package procps is not configured yet.
dpkg: error processing apache2.2-common (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
apache2-mpm-worker depends on apache2.2-common (= 2.2.22-1ubuntu1.4+6.0trisquel2); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (= 2.2.22-1ubuntu1.4+6.0trisquel2) | apache2-mpm-prefork (= 2.2.22-1ubuntu1.4+6.0trisquel2) | apache2-mpm-event (= 2.2.22-1ubuntu1.4+6.0trisquel2) | apache2-mpm-itk (= 2.2.22-1ubuntu1.4+6.0trisquel2); however:
Package apache2-mpm-worker is not configured yet.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is not installed.
Package apache2-mpm-itk is not installed.
apache2 depends on apache2.2-common (= 2.2.22-1ubuntu1.4+6.0trisquel2); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport-gtk:
No apport report written because MaxReports has already been reached
apport-gtk depends on procps; however:
Package procps is not configured yet.
dpkg: error processing apport-gtk (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
Errors were encountered while processing:
procps
apache2.2-common
apache2-mpm-worker
apache2
apport-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)
It seems procps is unconfigured. I have not managed to get it done. I have tried "sudo apt-get install -f" and "dpkg --configure --pending" and re-installing it with Synaptics without success.
Can you help?
What's your output of
cat /etc/dpkg/dpkg.cfg.d/multiarch
?
It's:
foreign-architecture @MULTIARCH@
That doesn't make sense to me and apparently neither to dpkg. Edit the file as super user and put a # in front of the line.
Then try updating and upgrading.
I don't think it had any effect.
Can anyone help me with this? The problem is related to procps and apport-gtk. I tried to install apache and it failed due to procps.
(Re)move /etc/dpkg/dpkg.cfg.d/multiarch and post here the output of 'sudo apt-get upgrade'.
~$ mv /etc/dpkg/dpkg.cfg.d/multiarch .
~$ sudo apt-get upgrade
Setting up procps (1:3.2.8-11ubuntu6.3) ...
start: Job failed to start
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing procps (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2.2-common:
apache2.2-common depends on procps; however:
Package procps is not configured yet.
dpkg: error processing apache2.2-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
apache2-mpm-worker depends on apache2.2-common (= 2.2.22-1ubuntu1.4+6.0trisquel2); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (= 2.2.22-1ubuntu1.4+6.0trisquel2) | apache2-mpm-prefork (= 2.2.22-1ubuntu1.4+6.0trisquel2) | apache2-mpm-event (= 2.2.22-1ubuntu1.4+6.0trisquel2) | apache2-mpm-itk (= 2.2.22-1ubuntu1.4+6.0trisquel2); however:
Package apache2-mpm-worker is not configured yet.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is nNo apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
ot installed.
Package apache2-mpm-itk is not installed.
apache2 depends on apache2.2-common (= 2.2.22-1ubuntu1.4+6.0trisquel2); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport-gtk:
apport-gtk depends on procps; however:
Package procps is not configured yet.
dpkg: error processing apport-gtk (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
procps
apache2.2-common
apache2-mpm-worker
apache2
apport-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)
You now have another error: "procps" is not properly configured. What happened if you try reinstalling that package?
I think the procps has been the cause for the problem for the whole time. I tried re-installing it with synaptics and "sudo apt-get -f install" but I just got the same old error message like above:
Setting up procps (1:3.2.8-11ubuntu6.3) ...
start: Job failed to start
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing procps (--configure):
subprocess installed post-installation script returned error exit status 1
.
.
.
What's your output of
cat /etc/sysctl.d/*.conf /etc/sysctl.conf | sudo sysctl -p -
and
cat /etc/apt/sources.list
?
cat /etc/sysctl.d/*.conf /etc/sysctl.conf | sudo sysctl -p -
kernel.printk = 4 4 1 7
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
kernel.kptr_restrict = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1
kernel.yama.ptrace_scope = 1
vm.mmap_min_addr = 65536
error: "Is a directory" setting key "vm.swappiness."
vm.vfs_cache_pressure = 50
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 2500
cat /etc/apt/sources.list
# deb http://es.archive.trisquel.info/trisquel/ toutatis main
# deb http://es.archive.trisquel.info/trisquel/ toutatis-updates main
# deb http://archive.trisquel.info/trisquel toutatis-security main
# See http://trisquel.info/wiki/ for how to upgrade to
# newer versions of the distribution.
# Uncomment this lines to enable the backports optional repository
# deb http://es.archive.trisquel.info/trisquel/ toutatis-backports main
deb http://es.archive.trisquel.info/trisquel/ toutatis main
deb http://archive.trisquel.info/trisquel/ toutatis-security main
deb http://es.archive.trisquel.info/trisquel/ toutatis-updates main
# deb-src http://es.archive.trisquel.info/trisquel/ toutatis-backports main
# Linux-libre PPA by jxself
deb http://jxself.org/repo/freesh/ freesh main
# Tomb PPA
# deb http://apt.dyne.org/ubuntu dyne main
# deb-src http://apt.dyne.org/ubuntu dyne main
error: "Is a directory" setting key "vm.swappiness." sounds fishy, could be the source of the problems.
Let's try to find where it's set
grep swappiness /etc/sysctl.d/*.conf /etc/sysctl.conf
grep swappiness /etc/sysctl.d/*.conf /etc/sysctl.conf
/etc/sysctl.conf:vm.swappiness.=1
I recall writing this to the config file myself. I tried to improve system performance and protect my SSD. I don't recall, though, adding a period there.
Removed the period and run "sudo apt-get install -f". Problem solved. Thanks a lot for your help guys. I learned a lesson here: typos are a bad thing to have in configuration files.
Glad to hear that!
As they say, the devil is in the details. :)
I would try executing that:
$ sudo dpkg-reconfigure procps
- Login o registrati per inviare commenti