Something seems to have gone wrong with openssh-server on my machine. I’m on Ubuntu 20.04.
I noticed this trying to install another package that depends on openssh-server.
When I tried to re-install it says it is configuring a «partially installed package» so I must have missed something happening with this package on a previous upgrade I think.
andy@andy-UX303UA:~$ sudo aptitude install openssh-server
The following partially installed packages will be configured:
openssh-server
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up openssh-server (1:8.2p1-4ubuntu0.2) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ssh, action "restart" failed.
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-05-26 10:25:29 BST; 9ms ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 45270 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=1/FAILURE)
May 26 10:25:29 andy-UX303UA systemd[1]: Failed to start OpenBSD Secure Shell server.
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up openssh-server (1:8.2p1-4ubuntu0.2) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ssh, action "restart" failed.
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-05-26 10:25:34 BST; 9ms ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 45546 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=1/FAILURE)
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
openssh-server
andy@andy-UX303UA:~$ apt-cache policy openssh-server
openssh-server:
Installed: 1:8.2p1-4ubuntu0.2
Candidate: 1:8.2p1-4ubuntu0.2
Version table:
*** 1:8.2p1-4ubuntu0.2 500
500 http://gb.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
100 /var/lib/dpkg/status
1:8.2p1-4 500
500 http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages
The suggested places to look for more details don’t seem particularly informative to me.
andy@andy-UX303UA:~$ systemctl status ssh.service
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-05-26 10:27:27 BST; 7min ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 45953 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=1/FAILURE)
May 26 10:27:26 andy-UX303UA systemd[1]: Failed to start OpenBSD Secure Shell server.
May 26 10:27:27 andy-UX303UA systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
May 26 10:27:27 andy-UX303UA systemd[1]: Stopped OpenBSD Secure Shell server.
May 26 10:27:27 andy-UX303UA systemd[1]: ssh.service: Start request repeated too quickly.
May 26 10:27:27 andy-UX303UA systemd[1]: ssh.service: Failed with result 'exit-code'.
May 26 10:27:27 andy-UX303UA systemd[1]: Failed to start OpenBSD Secure Shell server.
andy@andy-UX303UA:~$ journalctl -xe
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit ssh.service has finished with a failure.
--
-- The job identifier is 17319 and the job result is failed.
May 26 10:36:35 andy-UX303UA update-notifier.desktop[47663]: /var/lib/dpkg/lock:
May 26 10:36:35 andy-UX303UA systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit ssh.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
May 26 10:36:35 andy-UX303UA systemd[1]: Stopped OpenBSD Secure Shell server.
-- Subject: A stop job for unit ssh.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit ssh.service has finished.
--
-- The job identifier is 17399 and the job result is done.
May 26 10:36:35 andy-UX303UA systemd[1]: ssh.service: Start request repeated too quickly.
May 26 10:36:35 andy-UX303UA systemd[1]: ssh.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
May 26 10:36:35 andy-UX303UA systemd[1]: Failed to start OpenBSD Secure Shell server.
-- Subject: A start job for unit ssh.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit ssh.service has finished with a failure.
--
-- The job identifier is 17399 and the job result is failed.
May 26 10:36:35 andy-UX303UA anacron[46167]: Job `cron.daily' terminated
May 26 10:36:35 andy-UX303UA anacron[46167]: Normal exit (1 job run)
May 26 10:36:35 andy-UX303UA systemd[1]: anacron.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit anacron.service has successfully entered the 'dead' state.
May 26 10:36:36 andy-UX303UA gnome-shell[1916]: JS ERROR: TypeError: windowActor is null
_addWindowEffect@resource:///org/gnome/shell/ui/clos>
vfunc_show@resource:///org/gnome/shell/ui/closeDialo>
May 26 10:36:37 andy-UX303UA sudo[46492]: pam_unix(sudo:session): session closed for user root
May 26 10:36:41 andy-UX303UA gnome-shell[1916]: JS ERROR: TypeError: windowActor is null
_addWindowEffect@resource:///org/gnome/shell/ui/clos>
vfunc_show@resource:///org/gnome/shell/ui/closeDialo>
May 26 10:36:46 andy-UX303UA gnome-shell[1916]: JS ERROR: TypeError: windowActor is null
_addWindowEffect@resource:///org/gnome/shell/ui/clos>
vfunc_show@resource:///org/gnome/shell/ui/closeDialo>
lines 2174-2227/2227 (END)
I got the same errors after running aptitude remove openssh-server and then trying to re-install it. Any ideas what to try next?
My ubuntu version:
andy@andy-UX303UA:~$ lsb_release -a
LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
0
1
Доброго времени суток, уважаемые форумчане. Столкнулся вот с такой проблемой. Пользую ubuntu 12.10 около года и вот в ввиду небходимости пришлось разбираться с фичами типа webmin, ssh… Теперь собственно проблема — после нескольких обновлений начал отваливаться wi-fi (ноут lenovo g560)- порылся, погуглил — решил. Далее интереснее — начала чудить система — Boot without full network support (довольно частая проблема, судя по количеству тем на форумах). После решения этой траблы — отвалился SSH (причем 22 порт оказался закрытым и любые попытки его открыть оказались безуспешными). После долгих мытарств решился — apt-get purge openssh-server… И вот тут началось самое интересное — все попытки переустановить SSH:
root@avalon:/# apt-get install openssh-server
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Пакет openssh-server недоступен, но упомянут в списке зависимостей другого пакета.
Это может означать, что пакет отсутствует, устарел, или доступен из источников, не упомянутых в sources.list
E: Для пакета «openssh-server» не найден кандидат на установку
root@avalon:/# apt-get source ssh
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
E: Невозможно найти пакет с исходным кодом для ssh
Попытки скачать и скомпиить из rpm:
Selecting previously unselected package openssh-server.
(Reading database …
(Reading database … 5%
(Reading database … 10%
(Reading database … 15%
(Reading database … 20%
(Reading database … 25%
(Reading database … 30%
(Reading database … 35%
(Reading database … 40%
(Reading database … 45%
(Reading database … 50%
(Reading database … 55%
(Reading database … 60%
(Reading database … 65%
(Reading database … 70%
(Reading database … 75%
(Reading database … 80%
(Reading database … 85%
(Reading database … 90%
(Reading database … 95%
(Reading database … 100%
(Reading database … 457422 files and directories currently installed.)
Unpacking openssh-server (from …/openssh-server_3.9p1-2_i386.deb) …
dpkg: dependency problems prevent configuration of openssh-server:
libssl1.0.0:i386 (1.0.1c-3ubuntu2.4) breaks openssh-server (<< 1:5.9p1-4) and is installed.
Version of openssh-server to be configured is 3.9p1-2.
dpkg: error processing openssh-server (—install):
dependency problems — leaving unconfigured
Processing triggers for man-db …
ПОМОГИТЕ пожалуйста восстановить зависимости и нацонец-то переустановить SHH. Очень нужно!
Привет всем! Это снова я и мои проблемы
Не устанавливается ssh, хоть тресни!
Перепробовал кучу советов из гугла, но результат один:
Код
dpkg: error processing package openssh-server (--configure): installed openssh-server package post-installation script subprocess returned error exit status 255 dpkg: dependency problems prevent configuration of ssh: ssh depends on openssh-server (>= 1:7.6p1-4); however: Package openssh-server is not configured yet. dpkg: error processing package ssh (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: openssh-server ssh E: Sub-process /usr/bin/dpkg returned an error code (1)
Пробовал удалять и снова ставить, удалять через purge, autoremove, autoclean, upgrade, reconfigure, -f install, чистил кэш apt.
Может быть кто-нибудь знает секрет, помогите пожалуйста
Ура! Буквально только что нашел выход.
Идём в каталог /var/lib/dpkg/info и удаляем там всё что связано с openssh-server. Установка произведена, но осталась еще одна ошибка:
Код
OpenSSL version mismatch. Built against 100020ef, you have 1000114f
__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь
I had openssh-server working on my dedicated server running proxmox, but everytime I tried to upgrade anything I got this error:
dpkg:error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 10
So I read on forums that I should uninstall and purge openssh-server and install it again therefore I ran proxmox shell which doesn’t need ssh to connect to server and remove openssh-server.
Now I cannot install it and I don’t have ssh access to my server.
I tried this:
$ dpkg --configure -D 777 openssh-server
...
D000400: checking breaker openssh-sftp-server:amd64 virtbroken <none>
D000400: checking virtbroken openssh-server
Setting up openssh-server (1:7.4p1-10+deb9u3) ...
D000002: fork/exec /var/lib/dpkg/info/openssh-server.postinst ( configure )
dpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 10
D000001: ensure_diversions: same, skipping
Errors were encountered while processing:
openssh-server
I also tried removing openssh-server* from /var/lib/dpkg/info and installing it again I didn’t have any success.
My OS is Debian Stretch and I installed proxmox kernel on it.
How can I install openssh-server with these situation?
I can not install OpenSSH server.
My command to install:
sudo apt-get install openssh-server
And I got the following error:
Raw output error:
chage: /etc/passwd.15967: Permission denied
chage: cannot lock /etc/passwd.trY again leter•
Stopped: ./usrbin/chage -X 99999 sshd returned error code 1.
Removing user sshd...
dpkg: error processing package openssh-server (--configure):
subprocess install post-installation script returned error e
Setting up ssh-import-id
Processing triggers far systemd (229-4ubuntu21.21)
Processing triggers for ureadahead
Processing triggers for ufw
Errors were encountered while processing: openssh-server
E: Sub-processer /usr/bin/dpkg returned an error code (1)
I tried some following solutions:
mount -o remount,rw /=> but no luck- I edited file
/etc/pam.d/common-password:
password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass sha512
but no luck
- My
/etc/passwd
-rw-r--r-- 1 root root 2527
Output of df /etc
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda4 131793388 39254516 86848820 32% /
Please help!
asked Jul 19, 2019 at 5:17
4
Check if the /etc/ssh directory is created. If not, create it with sudo mkdir /etc/ssh
After creating it, do this :
sudo apt-get purge openssh-server openssh-client
sudo apt-get install openssh-server openssh-client
answered Jul 19, 2019 at 8:48
Kenichi-sanKenichi-san
801 gold badge1 silver badge10 bronze badges
7
Topic: [EN] dpkg error, openssh-server (Read 11540 times)
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»?
Logged
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
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.
Logged
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
Hm I did not see this anywhere. Must’ve been a local quirk for you.
greetz
devil
Logged
Since no one else reported it, I think we can safely call it a «local issue».

Logged
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
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Comments
At debootstrap stage:
mkstemps: No such file or directory
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-5) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
and after start guests — can’t access via ssh because package not completely installed
when trying manualy setup package — configuration dialog displayed
Any details on what the configuration dialog displayed?
This dialog displayed when I changed sshd_config file by role
But I try to disable role and setup base guest buster distribution:
at the log
Setting up openssh-server (1:7.9p1-10) ... mkstemps: No such file or directory dpkg: error processing package openssh-server (--configure): installed openssh-server package post-installation script subprocess returned error exit status 1 Setting up libklibc:amd64 (2.0.6-1) ... Setting up klibc-utils (2.0.6-1) ... No diversion 'diversion of /usr/share/initramfs-tools/hooks/klibc to /usr/share/initramfs-tools/hooks/klibc^i-t by klibc-utils', none removed. Setting up initramfs-tools-core (0.133) ... Setting up initramfs-tools (0.133) ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.133) ... Errors were encountered while processing: openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)
at the guest openssh-server package not completely installed
after running manualy ‘apt-get install -y openssh-server’ — all work fine,
but this is not true way, because I want to connect via ssh to vm
Hmm, ok, so mkstemps: No such file or directory might be the cause. Sounds as if something in the chroot setup changed since I tested it last time shortly before the freeze for buster. Will need to have a closer look at it.
Any details on what the configuration dialog displayed?
I try to fix it by adding finalrole=sshd with contents
#!/bin/sh
prefix=$1
if [ -e /usr/share/xen-tools/common.sh ]; then
. /usr/share/xen-tools/common.sh
else
echo "Installation problem"
fi
logMessage Script $0 starting
chroot ${prefix} sh -c 'DEBIAN_FRONTEND=noninteractive TMPDIR=/tmp apt-get install -f -y -qq'
installDebianPackageAndRecommends ${prefix} openssh-server
logMessage Script $0 finished
and this fixed this issue
Does it make a difference if you don’t define TMPDIR? If it makes a difference, that might be missing.
Does it make a difference if you don’t define
TMPDIR? If not, that might be missing.
Without this var I got the error mkstemps: No such file or directory
Ok, thanks. Will dig into that direction…
2 participants
Previously, we published a general guide on how to fix E: Sub-process /usr/bin/dpkg returned an error code message on SSH. Here is how to fix openssh-server E: Sub-process /usr/bin/dpkg returned an error. Do not close an active SSH session with this error. These errors are not uncommon on virtual servers, cloud servers for the virtual appliances. There can be a minor bug of the virtualization software or drop off some packets during the virtual server update process. The result becomes errors in postinst files. It is not dangerous on virtual servers than it delivers the feel. Virtual servers always have some way to “enter” by the admin. It is dangerous on dedicated servers.
Any web host will happily fix this error if you loss SSH connection and ask their help. But, we give importance to running some commands to test to fix own-self (which increases the experience of server administration).
Run these commands :
|
# ls —l /var/lib/dpkg/info | grep openssh # |
You’ll see list of files something like openssh-server.md5sums, openssh-server.postinst, openssh-server.postrm. Create a sub-directory under temporary with identifiable name :
|
# mkdir —p /tmp/ssh—backup # |
Move all those files from /var/lib/dpkg/info to that temporary directory :
|
# # cross—check the name openssh—server sudo mv /var/lib/dpkg/info/openssh—server.* /tmp/ssh—backup # |
Run :
|
# sudo apt—get clean sudo apt—get update sudo apt—get upgrade # |
The package should not return the E: Sub-process /usr/bin/dpkg related error anymore. If still disturbs, your luck is bad. The problem is likely to be with /etc/apt/sources.list. You can try to restore sources.list to default, purge the unused software packages. You may try these :
|
# sudo apt—get autoclean # |
You should take help of your web host to run :
|
# sudo apt—get remove —purge openssh—server # |
I have not seen any good result by running the other common commands peoples usually suggest. As a rule, always carefully check all the log files for any attempt to breach the security of SSH. Virtual servers are vulnerable to various exploits which we can manage with physical components on the dedicated. But virtual servers offer a big advantage – web hosts provide free help even to the unmanaged servers around SSH and networking issues.
Always keep your servers updated, regularly reboot on need, notice the errors while updating & upgrading, check what software packages are not in use (apt list --installed list the packages).
Tagged With dpkg openssl-server , error processing package openssh-server , Errors were encountered while processing openssh-server , Errors were encountered while processing: cloud-init openssh-server landscape-common , how to fix error with openssh server?
Anything with apt-get install is giving following error
You might want to run ‘apt-get -f install’ to correct these:
The
following packages have unmet dependencies:
openssh-server : Depends:
openssh-client (= 1:6.0p1-4) but 1:6.0p1-4+deb7u2 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or
specify a solution).
If i try to install apt-get -f install it give following error
reparing to replace openssh-server 1:6.0p1-4 (using .../openssh-server_1%3a6.0p1-4+deb7u2_amd64.deb) ...
Unpacking replacement openssh-server ...
dpkg: error processing /var/cache/apt/archives/openssh-server_1%3a6.0p1-4+deb7u2_amd64.deb (--unpack):
unable to make backup link of `./usr/sbin/sshd' before installing new version: Operation not permitted
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a6.0p1-4+deb7u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get update also not working completely. Suggestion please
Thanks in advance
Haider Ali
7962 gold badges9 silver badges21 bronze badges
asked Jul 19, 2014 at 17:12
2
sudo apt-get update
sudo apt-get -f install
sudo apt-get install openssh-server
If you are not logged in as root (as I’m assuming), you should put sudo before adding/removing packages to the system.
If that doesn’t work, run these commands:
chattr -i /usr/bin/sshd
chattr -a /usr/bin/sshd
sudo apt-get update
sudo apt-get -f install
sudo apt-get install openssh-server
If that doesn’t work, you can also go to /var/lib/dpkg/info and /var/cache/apt/archives to delete anything with a name close to openssh-server. Then, run the commands:
sudo apt-get update
sudo apt-get -f install
sudo apt-get install openssh-server
pd: this is quite complex, so not having access to the system means a lot of «try and fail» 
answered Jul 19, 2014 at 17:42
7
Ok I tried all of this and more, and not one of the methods worked. So I tried to remove openssh-client, then install openssh-server and that worked for me.
answered Oct 23, 2014 at 20:21
1
- Forum
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- Installation & Upgrades
- [ubuntu] apt-get install SSH encounter problem
-
apt-get install SSH encounter problem
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
sshwut can I do to solve this problem ?
-
Re: apt-get install SSH encounter problem
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.
-
Re: apt-get install SSH encounter problem
Code:
sudo apt-get install --fix-missing ssh
You can Follow Me Here and My Blog Here
-
Re: apt-get install SSH encounter problem
#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
-
Re: apt-get install SSH encounter problem
I wud have done a
Code:
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
You can Follow Me Here and My Blog Here







