Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在Ubuntu 16.04中安装Vim时出错_Linux_Ubuntu - Fatal编程技术网

Linux 在Ubuntu 16.04中安装Vim时出错

Linux 在Ubuntu 16.04中安装Vim时出错,linux,ubuntu,Linux,Ubuntu,我是Ubuntu新手,当我尝试安装Vim editor时,我遇到了以下错误: 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

我是Ubuntu新手,当我尝试安装Vim editor时,我遇到了以下错误:

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)

有人能帮我吗?

本讨论中编写的脚本可能会对您有所帮助

注意:实际的错误只有这一行,所以用谷歌搜索这一行会对你有所帮助

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