sudo vim报错command not found解决办法

在linux中sudo vim之后报错:command not found,具体如下


Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


网上找了很多办法,最终找到下面这两句比较可靠,先执行第一句,再第二句

sudo rm /var/lib/dpkg/lock*

sudo apt-get update && sudo apt-get install vim


之后再执行sudo vim的相关指令就木有问题了

你可能感兴趣的:(sudo vim报错command not found解决办法)