package openssh-server 1:5.3p1-3ubuntu7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 3

Bug #1051163 reported by venkatganesh
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Setting up openssh-server (1:5.3p1-3ubuntu7) ...
Usage: /etc/init.d/procps {start|stop|restart|force-reload}
invoke-rc.d: initscript ssh, action "stop" failed.
dpkg: error processing openssh-server (--configure):
 subprocess installed post-installation script returned error exit status 3
Errors were encountered while processing:
 openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: openssh-server 1:5.3p1-3ubuntu7
ProcVersionSignature: Ubuntu 2.6.32-41.94-generic 2.6.32.59+drm33.24
Uname: Linux 2.6.32-41-generic i686
Architecture: i386
Date: Sat Sep 15 11:25:50 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 3
InstallationMedia: Ubuntu 10.04.3 LTS "Lucid Lynx" - Release i386 (20110720.1)
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 255: Missing privilege separation directory: /var/run/sshd
SourcePackage: openssh
Title: package openssh-server 1:5.3p1-3ubuntu7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 3

Revision history for this message
venkatganesh (venkatganesh) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hello! Thanks for taking the time to file this bug report and help us make Ubuntu better.

This is kind of weird for a number of reasons. The main one being that it appears /etc/init.d/ssh has somehow invoked procps's init.d script.

Could you paste the output of these commands:

ls -l /etc/init.d
ls -l /etc/rc2.d
ls -l /etc/init

Thanks!

Changed in openssh (Ubuntu):
status: New → Incomplete
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openssh (Ubuntu) because there has been no activity for 60 days.]

Changed in openssh (Ubuntu):
status: Incomplete → Expired
Revision history for this message
sundeep (sundeep471-gmail) wrote :
Download full text (10.3 KiB)

root:/tmp# ls /etc/init.d/ /etc/rc2.d /etc/init -l
/etc/init:
total 224
-rw-r--r-- 1 root root 320 2010-01-30 07:05 acpid.conf
-rw-r--r-- 1 root root 305 2010-03-29 04:31 alsa-mixer-save.conf
-rw-r--r-- 1 root root 278 2010-03-05 07:59 anacron.conf
-rw-r--r-- 1 root root 1299 2010-04-19 14:26 apport.conf
-rw-r--r-- 1 root root 261 2010-03-05 08:04 atd.conf
-rw-r--r-- 1 root root 647 2009-12-05 02:44 avahi-daemon.conf
-rw-r--r-- 1 root root 766 2010-02-11 21:50 bridge-network-interface.conf
-rw-r--r-- 1 root root 518 2010-03-13 03:59 console-setup.conf
-rw-r--r-- 1 root root 356 2010-04-02 01:05 control-alt-delete.conf
-rw-r--r-- 1 root root 297 2010-04-15 04:58 cron.conf
-rw-r--r-- 1 root root 438 2010-03-30 20:35 dbus.conf
-rw-r--r-- 1 root root 273 2010-02-24 23:56 dmesg.conf
-rw-r--r-- 1 root root 291 2010-04-01 16:37 failsafe-x.conf
-rw-r--r-- 1 root root 1115 2010-09-27 15:09 gdm.conf
-rw-r--r-- 1 root root 312 2010-03-11 00:30 hostname.conf
-rw-r--r-- 1 root root 557 2010-03-22 23:18 hwclock.conf
-rw-r--r-- 1 root root 444 2010-03-22 23:18 hwclock-save.conf
-rw-r--r-- 1 root root 553 2010-02-27 00:30 irqbalance.conf
-rw-r--r-- 1 root root 367 2010-04-14 09:56 module-init-tools.conf
-rw-r--r-- 1 root root 1043 2010-09-02 04:26 mountall.conf
-rw-r--r-- 1 root root 349 2010-04-26 11:16 mountall-net.conf
-rw-r--r-- 1 root root 261 2010-04-26 11:16 mountall-reboot.conf
-rw-r--r-- 1 root root 1201 2010-04-26 11:16 mountall-shell.conf
-rw-r--r-- 1 root root 427 2010-04-26 11:16 mounted-dev.conf
-rw-r--r-- 1 root root 1149 2010-04-26 11:16 mounted-tmp.conf
-rw-r--r-- 1 root root 490 2010-04-26 11:16 mounted-varrun.conf
-rw-r--r-- 1 root root 332 2010-02-20 10:00 networking.conf
-rw-r--r-- 1 root root 740 2011-01-05 00:18 network-interface.conf
-rw-r--r-- 1 root root 1611 2011-01-05 00:18 network-interface-security.conf
-rw-r--r-- 1 root root 330 2010-04-09 20:52 network-manager.conf
-rw-r--r-- 1 root root 996 2010-04-27 14:05 plymouth.conf
-rw-r--r-- 1 root root 326 2010-04-27 14:05 plymouth-log.conf
-rw-r--r-- 1 root root 888 2010-04-27 14:05 plymouth-splash.conf
-rw-r--r-- 1 root root 731 2010-04-27 14:05 plymouth-stop.conf
-rw-r--r-- 1 root root 364 2012-07-17 08:01 procps.conf
-rw-r--r-- 1 root root 995 2013-01-15 21:37 qemu-kvm.conf
-rw-r--r-- 1 root root 387 2010-04-02 01:05 rc.conf
-rw-r--r-- 1 root root 822 2010-04-02 01:05 rcS.conf
-rw-r--r-- 1 root root 1513 2010-04-02 01:05 rc-sysinit.conf
-rw-r--r-- 1 root root 343 2010-12-10 23:30 rsyslog.conf
-rw-r--r-- 1 root root 683 2010-08-17 21:24 screen-cleanup.conf
-rw-r--r-- 1 root root 612 2011-06-17 11:20 ssh.conf
-rw-r--r-- 1 root root 228 2010-04-02 01:05 tty1.conf
-rw-r--r-- 1 root root 213 2010-04-02 01:05 tty2.conf
-rw-r--r-- 1 root root 213 2010-04-02 01:05 tty3.conf
-rw-r--r-- 1 root root 213 2010-04-02 01:05 tty4.conf
-rw-r--r-- 1 root root 213 2010-04-02 01:05 tty5.conf
-rw-r--r-- 1 root root 213 2010-04-02 01:05 tty6.conf
-rw-r--r-- 1 root root 316 2010-04-19 14:59 udev.conf
-rw-r--r-- 1 root root 769 2010-04-19 14:59 udev-finish.conf
-rw-r--r-- 1 root root 356 2010-04-19 14:59 udevmonitor.conf
-rw-r--r-- 1 root root 318 2010-04-19 ...

Changed in openssh (Ubuntu):
status: Expired → Confirmed
Revision history for this message
sundeep (sundeep471-gmail) wrote :

Above being the output of init/init.d/rc2.d

I hit this issue with every apt-get install/remove

root:/tmp# apt-get install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
ssh is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up openssh-server (1:5.3p1-3ubuntu7) ...
Usage: /etc/init.d/udev {start|stop|restart|reload|force-reload}
invoke-rc.d: initscript ssh, action "stop" failed.
dpkg: error processing openssh-server (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ssh:
 ssh depends on openssh-server; however:
  Package openssh-server is not configured yet.
dpkg: error processing ssh (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 openssh-server
 ssh
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 1051163] Re: package openssh-server 1:5.3p1-3ubuntu7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 3

Excerpts from sundeep's message of 2013-03-05 15:46:32 UTC:
> Above being the output of init/init.d/rc2.d
>
> I hit this issue with every apt-get install/remove
>
> root:/tmp# apt-get install ssh
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> ssh is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 2 not fully installed or removed.
> After this operation, 0B of additional disk space will be used.
> Setting up openssh-server (1:5.3p1-3ubuntu7) ...
> Usage: /etc/init.d/udev {start|stop|restart|reload|force-reload}

udev??

Can you ls -l /etc/init.d, and /etc/rc2.d and paste them?

Changed in openssh (Ubuntu):
status: Confirmed → 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.