meet the same situation (on ubuntu 22.04),
and try to find out who's behind the scenes.
1️⃣ trys
➊ cron-apt unattended-upgrades
// check packages about automatic installation
$ apt list cron-apt unattended-upgrades
unattended-upgrades/jammy,jammy,now 2.8ubuntu1 all [installed,automatic]
// stop & disable
sudo systemctl stop unattended-upgrades.service
sudo systemctl disable unattended-upgrades.service
I'll observe for a while and give feedback
ref:
https://forums.linuxmint.com/viewtopic.php?t=337534
➋ apt-daily apt-daily-upgrade
// check services
systemctl status apt-daily apt-daily-upgrade
systemctl status apt-daily.timer apt-daily-upgrade.timer
I have not try this yet.
I'll disable it if ➊ not work
➌ packagekit
https://www.linuxquestions.org/questions/debian-26/usr-lib-apt-methods-https-bandwidth-usage-4175659678/#post6033308
I have encountered this process
Ⓧ other thing
if disable auto update check,
maybe you need manually check update.
$ update-manager
2️⃣ dig
After some tries I'm a little tired,
I want to find out who's behind the scenes.
I repalce /lib/apt/methods/http
with my script, to log the caller.
and I only found this (on ubuntu 22)
1. packagekitd
2023-08-17T23:23:33: ------- /usr/lib/apt/methods/https
systemd,1 splash
└─packagekitd,85361
└─https,158496 /usr/lib/apt/methods/https
├─https,158497 /usr/lib/apt/methods/https
│ └─pstree,158500 -alc -hps -UC age 158496
└─tee,158498 -a /run/test/apt_https.out
I think it's packagekit
.
so I stop it when I use mobile network.
systemctl stop packagekit
systemctl status packagekit
2. update-manager
when I run update-manager
, I also got
2023-08-18T01:10:22: ------- /usr/lib/apt/methods/https
systemd,1 splash
└─systemd,2166 --user
└─update-manager,184012 /usr/bin/update-manager --no-update --no-focus-on-map
└─https,184791 /usr/lib/apt/methods/https
├─https,184792 /usr/lib/apt/methods/https
│ └─pstree,184795 -alc -hps -UC age 184791
└─tee,184793 -a /run/test/apt_https.out
3. apt
when I run apt update
or apt install
, I got
2023-08-19T01:27:29: ------- /usr/lib/apt/methods/http
systemd,1 splash
└─systemd,2166 --user
└─python3,3405 /usr/bin/x-terminal-emulator
└─bash,3426
└─sudo,186528 apt update
└─sudo,186529 apt update
└─apt,186530 update
└─http,186532 /usr/lib/apt/methods/http
├─http,186533 /usr/lib/apt/methods/http
│ └─pstree,186536 -alc -hps -UC age 186532
└─tee,186534 -a /run/test/apt_https.out
4. aptd
I don't remember what trigger this
2023-08-19T01:11:07: ------- /usr/lib/apt/methods/https
systemd,1 splash
└─aptd,184875 /usr/sbin/aptd
└─https,184886 /usr/lib/apt/methods/https
├─https,184887 /usr/lib/apt/methods/https
│ └─pstree,184890 -alc -hps -UC age 184886
└─tee,184888 -a /run/test/apt_https.out