PDA

View Full Version : [ubuntu] apt-get install SSH encounter problem



hmchzb19
January 12th, 2009, 05:28 AM
dpkg --configure -a

Setting up openssh-server (1:5.1p1-3ubuntu1) ...
invoke-rc.d: initscript ssh, action "restart" failed.
dpkg: error processing openssh-server (--configure):
subprocess 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
Errors were encountered while processing:
openssh-server
ssh


wut can I do to solve this problem ?

roflnoob
January 12th, 2009, 06:19 AM
Try booting up with recovery mode (I do this by hitting 'esc' while ubuntu is booting and choosing "recovery mode" or something to that effect, this may be different for you) and use the "fix packages" option that pops up after a bit and following the prompts afterwards. This should help something, as it looks to newbie me that you have a problem with packages.

whatever the case may be, good luck.

kranny
January 12th, 2009, 06:41 AM
sudo apt-get install --fix-missing ssh

hmchzb19
January 12th, 2009, 07:14 AM
#apt-get install --fix-missing ssh
Reading package lists... Done
Building dependency tree... Done
ssh is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up openssh-server (1:5.1p1-3ubuntu1) ...
invoke-rc.d: initscript ssh, action "restart" failed.
dpkg: error processing openssh-server (--configure):
subprocess 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)

It looks weird get these information

kranny
January 12th, 2009, 07:46 AM
I wud have done a

sudo apt-get --purge remove openssh-server
sudo apt-get install openssh-server
If that dint solve your problem try to get rid of the /etc/sshd_config file