7

In ubuntu 20.04, Snap Store always start in boot time. How can I disable it from starting in boot?

I dont use snap services much.

Sachith Muhandiram
  • 195
  • 1
  • 4
  • 19

3 Answers3

5

You need to stop some services:

sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded.service 

I don't know if there are side effects. Doing so, your snap apps aren't likely to start (e.g. Firefox).

The services won't be started the next time you boot.

To be on the safe side, I've removed snap completely (without loosing firefox) as described here

This would include to remove all installed snaps (e.g. Firefox) which can be installed via a ppa if you are using it.

The removal reduced the startup time on my old Thinkpad. Firefox opens faster with the deb version.

kanehekili
  • 6,402
1

I'm not sure of the service name but all you need to do is disable the service from starting at boot time. You will still be able to start up the service manually after you boot and anything that depends on the service will also have the ability to start it as well.

sudo systemctl disable servicename

where "servicename" is the actual name of the service. I'm not familiar with the snap store service so you'll have to find out the name on your own.

As mentioned, services that depend on the service will still have the ability to start it up so it might start on its own during boot. Please let me know if this happens and maybe we can come up with a different solution instead.

If you ever need to start the service manually, you can run the following command:

sudo systemctl start servicename

again, where "servicename" is the actual name of the service.

You can also check the status or stop the service:

sudo systemctl status servicename

and

sudo systemctl stop servicename 
mchid
  • 43,546
  • 8
  • 97
  • 150
1

After checking various solutions I decided to remove snap-store using snap

sudo snap remove snap-store

I got not issues so far from functionality side. All other suggested options just stop snap-store service for short duration.

Sachith Muhandiram
  • 195
  • 1
  • 4
  • 19