Ubuntu blame boot service remove apt-daily.service apt-daily-upgrade.service


root@Khadas:/data# systemd-analyze blame
         55.365s apt-daily.service
         54.320s systemd-modules-load.service
         25.538s apt-daily-upgrade.service
         12.923s docker.service
          2.707s nginx.service
          2.005s dev-mmcblk0p2.device
          2.003s networkd-dispatcher.service


root@Khadas:/var/log# sudo systemctl disable apt-daily.service apt-daily-upgrade.service
root@Khadas:/var/log#
root@Khadas:/var/log#
root@Khadas:/var/log# sudo systemctl disable apt-daily.timer apt-daily-upgrade.timer
Removed /etc/systemd/system/timers.target.wants/apt-daily-upgrade.timer.
Removed /etc/systemd/system/timers.target.wants/apt-daily.timer.
root@Khadas:/var/log#
root@Khadas:/var/log#
root@Khadas:/var/log# sudo apt remove --purge -y unattended-upgrades
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  unattended-upgrades*
0 upgraded, 0 newly installed, 1 to remove and 70 not upgraded.
After this operation, 418 kB disk space will be freed.
(Reading database ... 73016 files and directories currently installed.)
Removing unattended-upgrades (1.1ubuntu1.18.04.14) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
(Reading database ... 72990 files and directories currently installed.)
Purging configuration files for unattended-upgrades (1.1ubuntu1.18.04.14) ...
dpkg: warning: while removing unattended-upgrades, directory '/var/log/unattended-upgrades' not empty so not removed
Processing triggers for systemd (237-3ubuntu10.39) ...
  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章