Score:0

Snap binary override by binary placed in /snap/bin

mh flag

I moved a geckodriver binary to the /snap/bin directory. Now, after a reboot, my snap binary isn't working, and it seems that the geckodriver override the binary.

Now with more details:
Basically I was coding with Selenium and had to install the geckodriver in order to use it on firefox. The problem was that my OS is Ubuntu 22.04, therefore, the firefox is installed as a snap package, and for this reason my program wasn't working because it couldn't find the geckodriver,then I moved the geckodriver binary to the /snap/bin directory. After I reboot the system my firefox wansnt working anymore, and neither the snap binary. I try to use the snap in terminal and what appers to be is that is running the geckodriver binary. Is there a way to fix this? My plan B is to reinstall my snap but I'm afraid that this could break the system.

Some evidences:

  • When i execute the snap binary inside the /bin and /usr/bin their output is from geckodriver
  • I checked the sudo journalctl --no-pager -u snapd and nothing had caught my attention
  • I already removed the geckodriver from /snap/bin and reboot, but it didn't worked :(
muru avatar
us flag
The "binaries" in `/snap/bin` are all links to the snap command, iirc. Just reinstall snap.
ivarejao avatar
mh flag
They are all symliks to the `/usr/bin/snap` is that correct? If I reinstall i will loose my config of firefox?
muru avatar
us flag
No, reinstalling just snap itself will be just like upgrading it - all your data should be preserved.
ivarejao avatar
mh flag
Thx a lot, that worked
I sit in a Tesla and translated this thread with Ai:

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.