• 技术文章 >常用工具 >Vim

    apt-get install vim安装不上怎么办?

    月亮邮递员月亮邮递员2020-01-16 11:41:10原创5522

    apt-get install vim安装不上怎么办?

    vim安装不上的可能原因有:

    解决方法如下:

    方法一:加上sudo来执行安装命令

    sudo apt-get install vim

    方法二:更换安装源

    (1)在终端输入下面命令

    sudo gedit /etc/apt/sources.list

    该命令的作用是用gedit打开安装来源文件

    (2)替换为下面内容

    #deb包
    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    ##测试版源  
    deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
    # 源码  
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    ##测试版源  
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
    # Canonical 合作伙伴和附加  
    deb http://archive.canonical.com/ubuntu/ xenial partner
    deb http://extras.ubuntu.com/ubuntu/ xenial main

    (3)执行

    sudo apt-get update
    sudo apt-get install vim

    方法三:卸载依赖包

    sudo apt-get remove vim-common
    sudo apt-get install vim
    专题推荐:vim 安装不上
    上一篇:android中怎么退出vim? 下一篇:atom怎么用vim?

    相关文章推荐

    • 如何让vim支持python3• 怎么用vim运行python• python3安装不上怎么办• android中怎么退出vim?

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网