主页 > 学习 > Proxmox安装VIM编辑器

Proxmox安装VIM编辑器

默认的vi编辑器实在是烂啊,向前删除,方向键都不给用啊!果断安装vim编辑器:

root@KSCLOUD:~# apt-get install vim

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘vim’ has no installation candidate

纳尼?无法找到vim包?update下再说!

root@KSCLOUD:~#apt-get update

Get:1 http://ftp.debian.org squeeze Release.gpg [1,672 B]
Ign http://ftp.debian.org/debian/ squeeze/contrib Translation-en
Ign http://ftp.debian.org/debian/ squeeze/contrib Translation-en_US
Ign http://ftp.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.debian.org/debian/ squeeze/main Translation-en_US
Get:2 http://ftp.debian.org squeeze Release [111 kB]
Get:3 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_US
Get:4 http://ftp.debian.org squeeze/main amd64 Packages [6,542 kB]
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Get:5 http://security.debian.org squeeze/updates Release [86.9 kB]
Get:6 http://download.proxmox.com squeeze Release.gpg [198 B]
Ign http://download.proxmox.com/debian/ squeeze/pve Translation-en
Ign http://download.proxmox.com/debian/ squeeze/pve Translation-en_US
Get:7 http://download.proxmox.com squeeze Release [1,921 B]
Ign http://download.proxmox.com squeeze/pve amd64 Packages
Get:8 http://download.proxmox.com squeeze/pve amd64 Packages [24.4 kB]
Get:9 http://security.debian.org squeeze/updates/main amd64 Packages [258 kB]
Get:10 http://ftp.debian.org squeeze/contrib amd64 Packages [53.0 kB]
Get:11 http://security.debian.org squeeze/updates/contrib amd64 Packages [674 B]
Fetched 7,081 kB in 34s (207 kB/s)
Reading package lists… Done
root@KSCLOUD:~#

再次运行安装命令,果然可以啦!

root@KSCLOUD:~# 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 67 not upgraded.
Need to get 7,122 kB of archives.
After this operation, 27.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.debian.org/debian/ squeeze/main vim-runtime all 2:7.2.445+hg~cb94c42c0e1a-1 [6,207 kB]
Get:2 http://ftp.debian.org/debian/ squeeze/main vim amd64 2:7.2.445+hg~cb94c42c0e1a-1 [915 kB]
Fetched 7,122 kB in 30s (234 kB/s)
Selecting previously deselected package vim-runtime.
(Reading database … 27732 files and directories currently installed.)
Unpacking vim-runtime (from …/vim-runtime_2%3a7.2.445+hg~cb94c42c0e1a-1_all.deb) …
Adding ‘diversion of /usr/share/vim/vim72/doc/help.txt to /usr/share/vim/vim72/doc/help.txt.vim-tiny by vim-runtime’
Adding ‘diversion of /usr/share/vim/vim72/doc/tags to /usr/share/vim/vim72/doc/tags.vim-tiny by vim-runtime’
Selecting previously deselected package vim.
Unpacking vim (from …/vim_2%3a7.2.445+hg~cb94c42c0e1a-1_amd64.deb) …
Processing triggers for man-db …
Setting up vim-runtime (2:7.2.445+hg~cb94c42c0e1a-1) …
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.2.445+hg~cb94c42c0e1a-1) …
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode.

搞定!其实就2条命令啦:

apt-get update

apt-get install vim

原创文章,转载请注明: 转载自三叶草

本文链接地址:http://www.anjing.me/1415.html

特别声明:商业网站转载需经作者同意,否则视为侵权!

, ,

发表评论

电子邮件地址不会被公开。

*

引用:0

下面所列的是引用到本博客的链接
Proxmox安装VIM编辑器 来自 三叶草
顶部