Ubuntu 18.04 /var/lib/snapd has 'other' write 40777
In fact, to resolve the problem for all the applications related snap you must do:
sudo chmod 755 /
Happened to me also. I changed the permissions of /var/lib/snapd from 777 to 755, so just do:
sudo chmod -R 0755 /var/lib/snapd