Trying to install Python 3.8 [duplicate]

If you want a quick and dirty fix, you can remove the offending apt hook by typing:

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