I have followed this tutorial from snapcraft.io
I did the following commands:
sudo apt update
sudo apt install snapd
everything works.
but then I did this:
sudo snap install p7zip-desktop
and I receive an error:
error: snap "p7zip-desktop" has "install-snap" change in progress