![由于 dpkg 中断,apt install 失败](https://linux22.com/image/1207950/%E7%94%B1%E4%BA%8E%20dpkg%20%E4%B8%AD%E6%96%AD%EF%BC%8Capt%20install%20%E5%A4%B1%E8%B4%A5.png)
当我输入命令时apt install zsh
,它会输出:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
当我输入命令时dpkg --configure -a
,输出是:
Setting up nvidia-430 (430.64-0ubuntu0~gpu16.04.6) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/nvidia-430/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken
mv: cannot move '/usr/bin/nvidia-cuda-mps-control.dpkg-tmp' to '/usr/bin/nvidia-cuda-mps-control': Device or resource busy
update-alternatives: error: unable to install '/usr/bin/nvidia-cuda-mps-control.dpkg-tmp' as '/usr/bin/nvidia-cuda-mps-control': Device or resource busy
dpkg: error processing package nvidia-430 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up runit (2.1.2-3ubuntu1) ...
Connection to 210.22.22.135 closed by remote host.
Connection to 210.22.22.135 closed.
我如何解决它?