Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] dpkg error, openssh-server  (Read 12139 times)

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
[EN] dpkg error, openssh-server
« on: 2012/06/27, 17:09:57 »
Yesterday, or maybe the day before, I began seeing this error on dist-upgrade:

Code: [Select]
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:

Code: [Select]
# 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"?
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
RE: dpkg error, openssh-server
« Reply #1 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

Code: [Select]
rm openssh*

then

Code: [Select]
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.  :)
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.842
RE: dpkg error, openssh-server
« Reply #2 on: 2012/07/04, 21:33:39 »
Hm I did not see this anywhere. Must've been a local quirk for you.

greetz
devil

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
RE: dpkg error, openssh-server
« Reply #3 on: 2012/07/04, 23:11:13 »
Since no one else reported it, I think we can safely call it a "local issue".

;-)
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO