I was having issues getting SSH to work under my WSL Ubuntu 18.04.3 LTS, I was getting connection refused all the time, so I found this suggestion in a GitHub issue, which is to just:
sudo apt-get remove openssh-client openssh-server sudo apt-get install openssh-client openssh-server
remove
works, but install
gives me:
sudo apt-get install openssh-client openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
openssh-sftp-server ssh-import-id
Suggested packages:
keychain libpam-ssh monkeysphere ssh-askpass molly-guard rssh
E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success
E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success
I tried, as suggested in another issue on the same repo:
sudo dpkg --force depends -P lxd
sudo dpkg --force depends -P lxd-client
But it didn't work. How can I fix this and what is going on?
sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
which I hesitate to do without knowing exactly what's happening. Was that the solution that worked for you? – bballdave025 Jun 24 '20 at 18:51