I am having trouble installing OpenSSH server on Ubuntu Server 16.04.01 which is a virtual machine using KVM.
When I try to install openssh-server I get the following response:
Setting up openssh-server (1:7.2p2-4ubuntu2.1) ...
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:i6IKfykW1E9hYmlHFLid3KksBI11oxCmKlbQjFOVNZY root@host (RSA)
Creating SSH2 DSA key; this may take some time ...
1024 SHA256:tGZN8I6qfTdAanbPy4fxj/ARLTPrrtQKWZXTQZWG/o4 root@host (DSA)
Creating SSH2 ECDSA key; this may take some time ...key_generate failed
dpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 255
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Does anyone have any suggestions on how to overcome this problem?