简体   繁体   English

在Ubuntu 16.04中安装Vim时出错

[英]Error while installing Vim in Ubuntu 16.04

I am new to Ubuntu and I get this error when I try to install Vim editor: 我是Ubuntu新手,尝试安装Vim编辑器时出现此错误:

Reading package lists... Done Building dependency tree  
      Reading state information... Done The following additional packages will be installed:   vim-runtime Suggested packages:   ctags
vim-doc vim-scripts vim-gnome-py2 | vim-gtk-py2 | vim-gtk3-py2   |
vim-athena-py2 | vim-nox-py2 The following NEW packages will be
installed:   vim vim-runtime 0 upgraded, 2 newly installed, 0 to
remove and 170 not upgraded. Need to get 6,199 kB of archives. After
this operation, 30.0 MB of additional disk space will be used. Do you
want to continue? [Y/n] Y Get:1 http://in.archive.ubuntu.com/ubuntu
xenial-updates/main amd64 vim-runtime all 2:7.4.1689-3ubuntu1.2 [5,164
kB] Get:2 http://in.archive.ubuntu.com/ubuntu xenial-updates/main
amd64 vim amd64 2:7.4.1689-3ubuntu1.2 [1,036 kB] Fetched 6,199 kB in
1min 32s (67.2 kB/s)                                        Selecting
previously unselected package vim-runtime. dpkg: unrecoverable fatal
error, aborting:  files list file for package 'libpcre3:amd64' is
missing final newline E: Sub-process /usr/bin/dpkg returned an error
code (2)

Can someone help me? 有人能帮我吗?

The script written in this discussion may be your help. 本讨论中编写的脚本可能会为您提供帮助。

https://ubuntuforums.org/showthread.php?t=1319791 https://ubuntuforums.org/showthread.php?t=1319791

Note: the actual error is only this line, so googling with this will help you. 注意:实际错误仅是此行,因此对此进行谷歌搜索将对您有所帮助。

dpkg: unrecoverable fatal error, aborting: files list file for package 'libpcre3:amd64' is missing final newline

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM