Siduction Forum

Siduction Forum => Software - Support => Topic started by: dibl on 2012/06/27, 17:09:57

Title: dpkg error, openssh-server
Post by: dibl on 2012/06/27, 17:09:57
Yesterday, or maybe the day before, I began seeing this error on dist-upgrade:

root@imerabox:/home/don# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up openssh-server (1:6.0p1-2) ...
/etc/init.d/ssh: 6: /etc/default/ssh: X11Forwarding: not found
invoke-rc.d: initscript ssh, action "restart" failed.
dpkg: error processing openssh-server (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have not changed anything about ssh on this system for a long time, so this is something about updated software packages.

/etc/default/ssh is this:

# Default settings for openssh-server. This file is sourced by /bin/sh from
# /etc/init.d/ssh.

# Options to pass to sshd
SSHD_OPTS=
X11Forwarding yes
AllowTcpForwarding yes
X11DisplayOffset 10
X11UseLocalhost yes


Has anyone else seen it?  Any ideas -- does it need "fixed" or does it only need "waiting"?
Title: RE: dpkg error, openssh-server
Post by: dibl on 2012/07/04, 20:19:56
I fixed this today -- I never figured out exactly when or why it happened.  Common fixes like "apt-get -f install" and "dpkg --configure -a" would not correct the problem.

I went to /var/lib/dpkg/info and

rm openssh*

then

dpkg --remove --force-remove-reinstreq openssh openssh-server openssh-client

and the packages were installed and set up correctly.

Now, dolphin's "Add Network Folder" function, using ssh and fish protocol, works correctly on my LAN.  :)
Title: RE: dpkg error, openssh-server
Post by: devil on 2012/07/04, 21:33:39
Hm I did not see this anywhere. Must've been a local quirk for you.

greetz
devil
Title: RE: dpkg error, openssh-server
Post by: dibl on 2012/07/04, 23:11:13
Since no one else reported it, I think we can safely call it a "local issue".

;-)