sudo apt-get install vim

在安装vim时报如下错误:

Error accoured:

This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'vim' has no installation candidate

 

上网查了许多资料,发现是库未更新,依次执行如下命令:

1 sudo apt-get update
2 sudo apt-get upgrade

更新完毕后执行命令  sudo apt-get install vim 然后成功安装vim

 

相关文章:

  • 2021-04-14
  • 2021-06-01
  • 2021-11-30
  • 2021-09-06
  • 2021-08-03
  • 2021-05-12
  • 2021-10-09
  • 2021-06-16
猜你喜欢
  • 2021-05-06
  • 2021-07-04
  • 2021-10-09
  • 2021-06-25
  • 2022-01-07
  • 2021-04-18
  • 2021-10-12
  • 2021-07-19
相关资源
相似解决方案