解决apt-get install vim安装不上的方法

发布时间:2020-07-29 10:53:48 作者:清晨
来源:亿速云 阅读:918

不懂解决apt-get install vim安装不上的方法?其实想解决这个问题也不难,下面让小编带着大家一起学习怎么去解决,希望大家阅读完这篇文章后大所收获。

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

感谢你能够认真阅读完这篇文章,希望小编分享解决apt-get install vim安装不上的方法内容对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,遇到问题就找亿速云,详细的解决方法等着你来学习!

推荐阅读:
  1. Zabbix在Ubuntu 14.04上apt-get安装
  2. 如何在Ubuntu中使用apt-get命令

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

vim 上的 inst

上一篇:使用anaconda的pip安装第三方python包的方法

下一篇:在spyder中加断点的方法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》