1

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 !

1 Answer 1

1
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.

2
  • 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.
    – Bodo
    Nov 9, 2022 at 16:46
  • I works ! Thank you !
    – Nivlem
    Nov 9, 2022 at 18:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .