RasPi(예: Raspbian GNU/Linux 7(gasp))에 vim을 설치하려고 하는데 "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)
이 문제를 해결/수정하는 방법을 아는 사람이 있습니까? 도움을 주셔서 미리 감사드립니다.