当前位置:   article > 正文

虚拟机安装SSH报错解决办法_xxyexxy-virtual-machine:~s sudo apt install -y op

xxyexxy-virtual-machine:~s sudo apt install -y op

虚拟机安装SSH时报错:

  1. hub@hub-virtual-machine:~$ sudo apt-get install openssh-server
  2. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
  3. E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

此时,进行以下操作:清除lock-fronted和lock

  1. hub@hub-virtual-machine:~$ sudo rm /var/lib/dpkg/lock-frontend
  2. hub@hub-virtual-machine:~$ sudo rm /var/lib/dpkg/lock

尝试重新安装,发现还是报错,

  1. hub@hub-virtual-machine:~$ sudo apt-get install openssh-server
  2. E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
  3. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

解决办法:进入 /var/lib/dpkg/,重新安装成功

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/497558
推荐阅读
相关标签
  

闽ICP备14008679号