You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Could not read response to hello message..." while installing python3 #4640
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.
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
Reacted by Kirby Banman, Curtis Clark, Lucas, Benjamin Bergstrom, Alice Zheng, Zihang Ye, charlie45000, Nihar Ranjan Samantaray, Keurfon Luu, Dylan Landry and 118 more
Reacted by eddyp
Reacted by Anthony Benavides Arce, sprassanth, Luke Brown, Diego Quintero, Daniel Kaiser, possibly-ravenclaw, nisargsheth, Christophe Garcia and KALIWILL
Reacted by Benjamin Bergstrom, cailax, Kai Rädsch, MONISHREDDYBS, Aleksandr Semenov, Clément, ROHAN WINSOR, sprassanth, Vladislav Kishkin, Teun and 9 more
Reacted by Dominik Lenhardt, Luke Brown, Diego Quintero, Daniel Kaiser, Kota Nakasato, possibly-ravenclaw, nisargsheth, Christophe Garcia and KALIWILL
It worked for me
sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
Reacted by Lamaj, Tushar Kawsar, Asuka Minato, Peter Brodersen, Přemysl Karbula, Florin Relea, Jihed Mastouri, Cameron Powers, Chenghang Shi, Vu Huy Minh Pham and 26 more
Reacted by Asuka Minato, aaryadev, Daniel Kaiser, Umut E. S., Jiří Němec, Mohammad Rouie, Sajjad Heydari, Ithalo Caldas, Wojciech Rozwadowski and Nur Khamid
Activity
therealkenc commentedon Nov 2, 2019
/dupe #2374 (message) #2972 (message) et al.
phoyer commentedon Feb 2, 2020
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
eddyp commentedon Jun 18, 2020
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}F3RU7 commentedon Nov 4, 2020
It worked for me
sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
MadDogofShimano commentedon Apr 30, 2021
This works! Thanks a ton.
vikrant577 commentedon Aug 9, 2021
Thanks man!!! savior!!! it worked for me..
Ximaz commentedon Oct 29, 2021
What is this script though ?
TheWaveLab commentedon Jul 9, 2022
run sudo rm -rf /ect/apt/apt.conf.d/20snapd.conf
jlord31 commentedon Aug 5, 2022
This works for me.....Saved me hours of debugging
Thanks a lot
But out of curiosity what exactly is the apt.conf.d script?
KerwinKoo commentedon Oct 18, 2022
thanks very mach
AnthonyLapadula commentedon Nov 22, 2022
FWIW, I had two files causing this problem in /etc/apt/apt.conf.d: 20apt-esm-hook.conf and 20snapd.conf
misterBart commentedon Dec 5, 2022
Same here
addliam commentedon Jun 25, 2023
Safer and clean. Thanks very much
iadelofficial commentedon Sep 24, 2023