Solution 1:

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