使用如下命令: ps -aux 查找占用的进程的PID,但如果进程太多找不到,可以结合grep命令进行筛选,如下所示: ps -aux|grep apt 根据结果可知是PID为3487的进程占用了, 使用如下命令杀死该进程: sudo kill 3487 然后就可以正常执行命令了