転送ブログます。https://www.cnblogs.com/yun6853992/p/9343816.html
問題の原因:主な理由は、まだ実行されている傾向があるの。
ソリューション:aptのすべてのプロセスを殺します。すべての関連するプロセスはaptの検索、およびコマンドを殺します。以下の通りです。
hlp@hlp-Lenovo-G405:~$ ps afx|grep apt
pts/0 S+ 0:00 \_ grep --color=auto apt
? Ss 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily install
? S 0:00 \_ /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held install
hlp@hlp-Lenovo-G405:~$ sudo kill -9 2873
hlp@hlp-Lenovo-G405:~$ sudo kill -9 2869