Table of contents
View progress
In Linux, before closing a process, first check which processes are already running. Use the following command to check:
ps aux | grep -i apt 命令查看哪个进程正在使用 apt
end process
The command to end a thread is:
sudo kill -9 PID 命令结束该进程,其中 PID 是进程的 ID
Actual examples are as follows:
Repair process
Forcing a process to end may result in data loss or other unintended consequences, so proceed with caution. If possible, it is best to wait for the process to end naturally. If you are sure you want to end it, then after executing the kill command, you may need to run the following command to fix any problems caused by force-ending the process.
sudo dpkg --configure -a