无法在 RasPi (Raspbian GNU/Linux 7) 上安装 vim

无法在 RasPi (Raspbian GNU/Linux 7) 上安装 vim

我正在尝试将 vim 安装到 RasPi(即 Raspbian GNU/Linux 7(喘息)),但在执行“sudo apt-get install vim”时出现错误。我尝试寻找解决方案,但到目前为止我还没有找到任何对我有帮助的东西。我尝试了论坛中的以下建议,但似乎没有帮助。

sudo dpkg --force-remove-reinstreq vim
sudo apt-get clean all
sudo apt-get --purge autoremove
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get dist-upgrade

以下是命令的输出

pi@rpi-6f-a4-38 ~ $ sudo apt-get install vim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  vim-runtime
Suggested packages:
  ctags vim-doc vim-scripts
The following NEW packages will be installed:
  vim vim-runtime
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/5,281 kB of archives.
After this operation, 24.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 79130 files and directories currently installed.)
Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.547-7_all.deb) ...
Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
dpkg-divert: error: rename involves overwriting `/usr/share/vim/vim73/doc/help.txt.vim-tiny' with
  different file `/usr/share/vim/vim73/doc/help.txt', not allowed
dpkg: error processing /var/cache/apt/archives/vim-runtime_2%3a7.3.547-7_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
No diversion 'diversion of /usr/share/vim/vim73/doc/help.txt by vim-runtime', none removed.
No diversion 'diversion of /usr/share/vim/vim73/doc/tags by vim-runtime', none removed.
Selecting previously unselected package vim.
Unpacking vim (from .../vim_2%3a7.3.547-7_armhf.deb) ...
Errors were encountered while processing:
 /var/cache/apt/archives/vim-runtime_2%3a7.3.547-7_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

有谁知道如何解决/解决这个问题?预先感谢您的任何帮助。

相关内容