WSLメモ

LTSバージョンではないから、普通はやらなくてもいいけれど。。。とりあえず、自分のメモとして、

ubuntu 22.10にアップグレードしてみたら、通常のアップデートでエラーが多発、ググって見たけれど、調べ方が悪いのか、あまり情報が出てこない。

エラーっていうのは、これのこと。(汗)
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
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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
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


ということで、ubuntuコミュニティから、拝借して、エラーがなくなったので、メモしておく。

sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
これをやってみて、いつものアップデート
sudo apt update
sudo apt upgrade -y
まだエラーがでるので、似たもので、削除できるものをさがしてみると…

sudo rm -rf /etc/apt/apt.conf.d/20apt-esm-hook.conf

これをやって、エラーがなくなった。

本来は、それぞれのやってる内容を把握して、利用しないものかどうかを確認すべきだが、面倒なので、やらない。

とりあえずは、エラーつぶしだけということで、良しとしよう。笑

この記事が気に入ったらサポートをしてみませんか?