Imagine that, I have a fresh Ubuntu 18.04 installed. But there are some default packages or services that connects to the Internet without my consent. How to get rid of them completely or make them offline in an effective way?
As far as I now, they are:
popularity-contest
- The Ubuntu Popularity Contest (or popcon, in short) gathers statistics determining which packages are the most popular with Ubuntu users.
unattended-upgrades
- Automatically upgrades computer with the latest security updates.
apt-daily
- Updates apt index every day automatically.
snapd
- Updates snap packages automatically.
update-manager
- Checks for release updates.
I could be missing something. Please post if you know...
The purpose: I want to have full control over the Internet, as in my case, Internet is limited. So, I wish to update or upgrade manually rather than automatically.
Popularity contest is disabled by default. You can check and disable it with:
You can do ...
to remove it too.
Disable
apt-daily.service
:One-liner from @muru <3:
Disable unattended upgrade:
Update manager can only be stopped by removing it:
You can NOT disable automatic update for snaps. You can set the period when it updates with
snap set core refresh.schedule=<spec>
but the system will ignore this is if it took too long to update snaps and that would be within 24 hours. This will remove anything snap related:A less intrusive method would be to prevent connection to the server by adding a DENY to your firewall rules (or in the router). To disable the systemd service would be ...
but that too seems to ignore the 24 hour period.
Regarding snaps:
So a window of 2 months is possible if you do not reboot.
I do disagree with your way of thinking though. Except for contest (and that one is not active) all of these are about fixing bugs and providing better content. You will make your system LESS secure by disabling these options.