Score:1

WSL2 : apt-get install/remove are not working

bi flag

Whenever I try to install or remove a packet with apt, I 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

I believe this started when I installed then uninstalled snap (via apt), but I'm not sure. Could you explain what this means, and how to solve this issue please ?

Any help will be greatly appreciated, thank you !

Score:1
us flag
sudo rm -f /etc/apt/apt.conf.d/20snapd.conf

Probably some leftover configuration for snap is triggering this error message. The command above should clear it up.

Bodo avatar
pt flag
I suggest to remove the `-r` option because you want to remove a single file only. `rm -rf ...` might be dangerous in case you have an error/typo in the argument, and even more dangerous in combination with `sudo`.
Nivlem avatar
bi flag
I works ! Thank you !
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.