WSL 18.04의 APT 고장 hello message from hook [ ! -f

Ubuntu 18.04의 WSL 설치에 문제가 있습니다.

apt로 패키지를 설치하려고 할 때마다 다음을 얻습니다.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required: [...]

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

나는 스냅 / 스냅이 범인이라고 생각하지만이를 해결할 수있는 방법을 찾지 못했습니다. Afaik snapd는 WSL에서 지원되지 않으며 업데이트에 설치되었다고 가정합니다.

나는 전체 설치를 방해하지 않고 모든 것을 새로 설정하는 데 몇 시간을 소비 할 필요가없는 솔루션을 찾고 싶습니다.

미리 감사드립니다.

편집 :의 원래 출력 apt --versionapt 1.6.8 (amd64)입니다. 업그레이드는 할 1.7.0 (amd64)않았다 없는 문제를 해결하는 것.



답변

빠르고 더러운 수정이 필요한 경우 다음을 입력하여 문제가있는 apt 후크를 제거 할 수 있습니다.

sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf