Score:0

/usr/bin/snap disappeared suddenly

in flag

I had some applications installed via snap that were running perfectly until today.

When I started my computer I was not able to launch them.

These applications still show on my apps list but clicking on one doesn't launch it.

Also trying to start them via terminal results in a command not found error, even thought my shell suggests the command.

Another thing is that the applications still exist in ~/snap and /snap but in the second directory they link to /usr/bin/snap which seems to have vanished.

I can't use the snap command anymore.

I'm on Ubuntu 20.04.3 LTS and didn't do any update before the issue, and after getting that problem I updated but nothing changed.

Thanks for your help.

uz flag
Jos
Can you do `sudo apt install snapd`? This should reinstall the `/usr/bin/snap` executable.
adxl avatar
in flag
@Jos, thanks it worked fine ! Any idea why `/usr/bin/snap` disappeared ?
uz flag
Jos
No idea. Perhaps you can take a look at `/var/log/apt/history.log` to see if it turns up anything.
adxl avatar
in flag
@Jos, indeed `snapd` has been removed yesterday when I did `apt-get remove openssh-client openssh-server` because I was having some issues with ssh. But installing these two packages again didn't bring back snapd. thank you for the tip !
N0rbert avatar
zw flag
Please move solution to answer.
Score:1
in flag

Apparently, uninstalling either openssh-client or openssh-server removes snapd but doesn't install it back after the reinstall. So I had to reinstall snapd manually with sudo apt install snapd.
Thanks to @Jos.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.