代码编织梦想

ubuntu安装vim报错:vim : Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed

1、换国内的源

  1. 打开网址,复制 国内阿里源
  2. 在宿主主机/opt目录创建一个sources.list文件
    a. 粘贴 阿里源进去
    b. 使用docker cp /opt/sources.list ubuntu:/etc/apt/,将ubuntu中的sources.list文件替换掉
    c. 进入ubuntu查看是否替换成功:cat /etc/apt/sources.list
  3. 直接粘贴源
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

2、操作

  1. 执行:apt-get update
  2. 执行:apt-get install -y vim,如果报错:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vim : Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed
       Depends: libtinfo5 (>= 6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

  1. 解决方法:
    a. 执行:apt-get install libtinfo5
    b. 如果出现
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  sysvinit
26 upgraded, 63 newly installed, 6 to remove and 292 not upgraded.
Need to get 14.3 MB/15.0 MB of archives.
After this operation, 21.1 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 

c. 输入:Yes, do as I say!
d. 再执行:apt-get install libpython3.5 ,输入y
e. 最后安装vim:apt-get install -y vim,完成

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_46697548/article/details/127127928

安装vim提示Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed的解决方法-爱代码爱编程

转载至https://www.cnblogs.com/suanmiaoup/p/12294431.html Ubuntu安装vim提示: The following packages have unmet dependencies: vim : Depends: vim-common (= 2:7.4.1689-3ubuntu1.3) but 2:8.

docker内安装vim报错,Unable to correct problems, you have held broken packages.-爱代码爱编程

我用Dockerfile创建完镜像,运行容器,在容器内安装vim命令的时候会报错,错误如下: The following packages have unmet dependencies: vim : Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed

ubuntu安装vim报错(新)vim : Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed-爱代码爱编程

报错: The following packages have unmet dependencies:  vim : Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed        Depends: libtinfo5 (>= 6) but i

shell编程扩展----文本编辑器_醉卧考场君莫笑的博客-爱代码爱编程

文本编辑器 前言VI编辑器按键 Vim编辑器Emacs编辑器Gedit编辑器 前言 Vi编辑器Vim编辑器Emacs编辑器Gedit编辑器 VI编辑器 Vi可以分为三种状态,可通过Esc键进行切换

linux 用户管理命令_小猪.get的博客-爱代码爱编程

目录 一、useradd添加新用户 1.基本语法 2.示例 二、passwd设置用户密码 1.基本语法 2.示例 三、id 查看用户是否存在 1.基本语法 2.示例 四、cat /etc/passwd查看创建了哪些用户 1.基本语法 2.示例 五、su切换用户 1.基本语法 2.示例 六、userdel删除用户 1.基本语

linux之vim编辑器_@a云淡风轻的博客-爱代码爱编程

hello,大家好鸭,今天让我们一起来谈一谈vim的配置和使用,帮助大家入门vim编辑器。 目录 Linux编辑器-vim使用vim编辑器的模式介绍vim配置vim配置的原理安装方法 普通用户赋予root权限su

错误:some packages could not be installed._失眠的树亚的博客-爱代码爱编程

1.错误描述: // A code block Some packages could not be installed. This may mean that you have requested an impossibl

openhd改造实现廉价高清数字图传(树莓派+pc)—(五)gstreamer视频采集、传输和显示_hoopertsau的博客-爱代码爱编程

        图传的一个重要功能就是可以看视频。主要是采集树莓派zero摄像头的数据,经过编码打包,通过wifibroadcast发送到地面端的PC上,然后再通过解码显示出来。         这里用到了视频采集和编解码相关的软件。         在树莓派上,有自带的软件可以直接采集视频,很方便;地面端的解码可以使用gstreamer来做,因为涉及

ubuntu 定时发送邮件_hzy_520的博客-爱代码爱编程

一:安装命令 apt-get install cron 二:写入定时命令 crontab -e         我这里有两个定时任务,第一个是每分钟执行桌面的email.sh脚本;第二个定时任务是每分钟向桌面的log.txt写入:Hello word! 在这里的快捷键跟vim不一致。 ctrl+o =保存文件 ctrl+x =退出编辑

linux从入门到入土①(linux概述、文件系统、vim编辑器)_十八岁讨厌编程的博客-爱代码爱编程

文章目录 Linux是什么?Linux的优势Linux的内核组成Linux版本Linux文件系统文件类型Linux文件拓展名Linux文件命名规则 文件系统与目录树的关系VI / VIM编辑器VI / VIM是什