什么是/usr/lib/apt/apt.systemd.daily

Ste*_*ton 19 apt

今天早上我去我的一台 Ubuntu 机器上安装一个应用程序,发现我被 apt.system.daily 锁定了。这不在根 cron 中,所以请告诉我它从哪里运行?

root@acer:/home/stephen# apt install htop
 E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
 E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Run Code Online (Sandbox Code Playgroud)

我发现这很有趣,因为我已经清除了更新管理器。我喜欢自己处理更新。所以然后调查它我发现这个:

root@acer:/home/stephen# ps -ef | grep apt
root     23463     1  0 06:23 ?        00:00:00 /bin/sh 
/usr/lib/apt/apt.systemd.daily install
root     23468 23463  0 06:23 ?        00:00:00 /bin/sh 
/usr/lib/apt/apt.systemd.daily lock_is_held install
Run Code Online (Sandbox Code Playgroud)