Score:2

Could not read response to hello message from hook

US flag

I try to type sudo apt upgrade. After that it gives me an error:

E: Could not read response to hello message from hook [ ! -f /usr/lib/ubuntu-advantage/apt-esm-json-hook ] || /usr/lib/ubuntu-advantage/apt-esm-json-hook || true: Success
E: Could not read response to hello message from hook [ ! -f /usr/lib/ubuntu-advantage/apt-esm-json-hook ] || /usr/lib/ubuntu-advantage/apt-esm-json-hook || true: Success
NotTheDr01ds avatar
vn flag
Welcome to Ask Ubuntu! Could you [edit](https://askubuntu.com/posts/1462776/edit) your question to include the Ubuntu release you are using? Also, you have this tagged WSL, but you don't mention that in your question itself - For most tags, that's not really necessary, but WSL is such a "niche" that it can be useful to call it out explicitly.
Score:1
vn flag

It sounds like you may be experiencing the same problem mentioned in this Github issue. It seems to commonly occur with Ubuntu and WSL after upgrading to 22.10 Kinetic (although you don't mention your Ubuntu release in your question). It may be related to a particular package or dependency, as one of the comments in that issue mentions Apache.

If that is your root issue, then the solution in that thread (modified slightly for safety) is:

sudo mv /etc/atp/apt.conf.d/20apt-esm-hook.conf /root/
sudo apt update && sudo apt upgrade

It certainly sounds like an issue that should be reported, if someone can figure out the exact flow that can reproduce it.

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.