Skip to content

"Could not read response to hello message..." while installing python3 #4640

Closed

Description

Trying to install python3 on WSL [Windows Version 10.0.17763.805] with
sudo apt-get install python3

and 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

Apparently it is the package specific issue as other packages are installed smoothly.

Activity

  1. therealkenc commented on Nov 2, 2019

    @therealkenc

    /dupe #2374 (message) #2972 (message) et al.

  2. phoyer commented on Feb 2, 2020

    @phoyer

    Look for the hook script causing the trouble:
    cd /etc/apt/apt.conf.d/
    grep -r snap

    Delete the script. In may case it was:
    sudo rm 20snapd.conf

  3. eddyp commented on Jun 18, 2020

    @eddyp

    A better option, without killing snapd integration entirely is to rename the file so is disabled as an apt hook:

    sudo mv /etc/apt/apt.conf.d/20snapd.conf{,.disabled}

  4. F3RU7 commented on Nov 4, 2020

    @F3RU7

    It worked for me
    sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf

  5. MadDogofShimano commented on Apr 30, 2021

    @MadDogofShimano

    Look for the hook script causing the trouble:
    cd /etc/apt/apt.conf.d/
    grep -r snap

    Delete the script. In may case it was:
    sudo rm 20snapd.conf

    This works! Thanks a ton.

  6. vikrant577 commented on Aug 9, 2021

    @vikrant577

    Look for the hook script causing the trouble:
    cd /etc/apt/apt.conf.d/
    grep -r snap

    Delete the script. In may case it was:
    sudo rm 20snapd.conf

    Thanks man!!! savior!!! it worked for me..

  7. Ximaz commented on Oct 29, 2021

    @Ximaz

    Look for the hook script causing the trouble: cd /etc/apt/apt.conf.d/ grep -r snap

    Delete the script. In may case it was: sudo rm 20snapd.conf

    What is this script though ?

  8. TheWaveLab commented on Jul 9, 2022

    @TheWaveLab

    run sudo rm -rf /ect/apt/apt.conf.d/20snapd.conf

  9. jlord31 commented on Aug 5, 2022

    @jlord31

    run sudo rm -rf /ect/apt/apt.conf.d/20snapd.conf

    This works for me.....Saved me hours of debugging
    Thanks a lot

    But out of curiosity what exactly is the apt.conf.d script?

  10. KerwinKoo commented on Oct 18, 2022

    @KerwinKoo

    Look for the hook script causing the trouble: cd /etc/apt/apt.conf.d/ grep -r snap

    Delete the script. In may case it was: sudo rm 20snapd.conf

    thanks very mach

  11. AnthonyLapadula commented on Nov 22, 2022

    @AnthonyLapadula

    FWIW, I had two files causing this problem in /etc/apt/apt.conf.d: 20apt-esm-hook.conf and 20snapd.conf

  12. misterBart commented on Dec 5, 2022

    @misterBart

    FWIW, I had two files causing this problem in /etc/apt/apt.conf.d: 20apt-esm-hook.conf and 20snapd.conf

    Same here

  13. addliam commented on Jun 25, 2023

    @addliam

    A better option, without killing snapd integration entirely is to rename the file so is disabled as an apt hook:

    sudo mv /etc/apt/apt.conf.d/20snapd.conf{,.disabled}

    Safer and clean. Thanks very much

  14. iadelofficial commented on Sep 24, 2023

    @iadelofficial

    FWIW, I had two files causing this problem in /etc/apt/apt.conf.d: 20apt-esm-hook.conf and 20snapd.conf

    Same here
    remove both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions