7

One day, I noticed that my Internet is being used. After using sudo nethogs I found that package called snapd is downloading something from internet regularly without my consent. The only snap program that I have installed is VLC.

So, how to see what things do/did snapd upload or download or how to make snapd run in offline mode?

5
  • It probably downloaded an updated version of VLC. That's how snaps work, keeping always up to-date.
    – user68186
    Commented May 7, 2018 at 15:23
  • @user68186, so how to make it run in offline mode? I do not want to spend my packets to update snaps regularly.
    – Olimjon
    Commented May 7, 2018 at 15:33
  • 2
    Have you tried journalctl -u snapd?
    – DK Bose
    Commented May 7, 2018 at 15:49
  • 1
    Welcome to snap world! This is one of the reasons I uninstalled snapd. Commented May 7, 2018 at 15:57
  • @DKBose, nothing useful in the journal. Just states that it has started. There were also messages that there are no updates available for some packages. The one that wasn't mentioned is android-studio, so it's probably what's happening with my system. The download is huge, it must be android-studio.
    – Velkan
    Commented May 20, 2019 at 17:01

2 Answers 2

5

snapd does not have the ability to disable its autorefresh function. Merely the option to choose at what times of the day it can do it.

This is more of a workaround than a proper solution, but if VLC is the only snap you have, you can simply remove the snapd package and install VLC via the standard apt install method.

Though a matter of opinion, I prefer apt installing my software anyway, as it is more space efficient with disks. The downside would be possible dependency issues in some less common cases. Snaps eliminate this problem by having everything required for a particular program in one snap.

2
  • Thanks for the answer, it may sound not professional, but I installed VLC via snap because an APT package contains some bugs which make me go crazy, such as when opening a video, the audio and image sequences got opened separately in different windows :(. However, snap package does not have this kind of bug...
    – Olimjon
    Commented May 7, 2018 at 17:21
  • I didnt want to uninstall snapd as it may be useful/important, I just wanted to disable it but the systemctl commands are not clear (saying nothing is running while snapd is there!). As it is spending my whole data quota of 100MB/day, apparently there seems to have no real problem so I will just uninstall it thx! Commented Jan 21, 2019 at 23:56
0

You can utilize the command snap refresh --hold to halt snap auto refresh. Additionally, you may consider configuring your firewall settings to restrict snapd's network access.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .