WSL: "Could not read response to hello message..." while installing python3
Trying to install python3 on WSL [Windows Version 10.0.17763.805] with
sudo apt-get install python3
and get this error: 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
Apparently it is the package specific issue as other packages are installed smoothly.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15
Look for the hook script causing the trouble: cd /etc/apt/apt.conf.d/ grep -r snap
Delete the script. In may case it was: sudo rm 20snapd.conf
A better option, without killing snapd integration entirely is to rename the file so is disabled as an apt hook:
sudo mv /etc/apt/apt.conf.d/20snapd.conf{,.disabled}It worked for me sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
/dupe #2374 (message) #2972 (message) et al.
FWIW, I had two files causing this problem in /etc/apt/apt.conf.d: 20apt-esm-hook.conf and 20snapd.conf
What is this script though ?