I run Ubuntu 16.04 but never installed any snap packages, at least not that I would know of any.
Here are my slowest processes at boot:
$ systemd-analyze blame | head
9.057s snapd.refresh.service
5.058s NetworkManager-wait-online.service
1.126s dev-sdb5.device
822ms storage.mount
804ms data.mount
397ms gpu-manager.service
390ms apt-daily.service
363ms systemd-rfkill.service
334ms systemd-fsck@dev-disk-by\x2duuid-B023\x2d3905.service
251ms accounts-daemon.service
Obviously snapd.refresh.service
is taking a huge amount of time compared to the rest, especially as I have no need for snaps anyway.
How can I disable all snap related stuff to speed my boot time up?
systemctl disable snapd.refresh.service
work? https://fedoraproject.org/wiki/Systemd#How_do_I_start.2Fstop_or_enable.2Fdisable_services.3F – Alcuin Arundel Jul 21 '16 at 01:06snapd.refresh.service
doesn't show up when I runsystemd-analyze blame | head
. – Alcuin Arundel Jul 21 '16 at 01:12systemctl disable snapd.*
as the tab-autocomplete did only mentionsnapd.refresh.timer
,snapd.service
andsnapd.socket
, but notsnapd.refresh.service
. I think I won't need any of them at all anyway. Now the entry disappeared from thesystemd-analyze blame
output. Would you post an answer please? – Byte Commander Jul 21 '16 at 08:14systemctl disable NetworkManager-wait-online.service
(which was taking 10 seconds) reducedsystemd-analyze
from 26 seconds to 16 seconds. – WinEunuuchs2Unix Mar 03 '18 at 17:08