低版本Ubuntu安装vim

2019-04-08  本文已影响0人  科科Cole

这里我用的Ubuntu16.04LTS。Ubuntu最新版现在是18.04LTS。

  1. 如果直接vim会提示你没安装
    vim
    如果这时apt-get install vim会提示
    apt-get install
  2. 所以我们这里先apt-get update,如果报错:

E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'
E: Sub-process returned an error code

那么依次执行如下命令:

pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb

之后再apt-get update

  1. 最后再apt-get install vim

参考:

上一篇下一篇

猜你喜欢

热点阅读