Created
February 8, 2021 18:13
-
-
Save rafamdr/cbe6390cf05b6f11965704219525f4d2 to your computer and use it in GitHub Desktop.
Solving "invoke-rc.d: initscript ssh, action "restart" failed."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up openssh-server (1:6.6p1-2ubuntu2.10) ... | |
# update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match ssh Default-Stop values (none) | |
# invoke-rc.d: initscript ssh, action "restart" failed. | |
# dpkg: error processing package openssh-server (--configure): | |
# subprocess installed post-installation script returned error exit status 1 | |
# Errors were encountered while processing: | |
# openssh-server | |
# E: Sub-process /usr/bin/dpkg returned an error code (1) | |
rm -f /var/lib/dpkg/info/openssh-server* | |
rm -f /var/cache/apt/archives/openssh-server* | |
apt update | |
apt -f install | |
apt --yes --force-yes -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-confnew" install openssh-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment