ubuntu安装virtualbox,版本如何方便的更新?(更新问题)

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
yungdeguo
帖子: 195
注册时间: 2008-03-06 22:03

ubuntu安装virtualbox,版本如何方便的更新?(更新问题)

#1

帖子 yungdeguo » 2011-07-23 9:39

原来是要把那段代码加到配置文件中,我理解成了可以直接用命令了.

看来不懂英文还真不行啊.

见笑了!

:em03












大家好!

我是在官网上去下载的virtualbox安装的,可以每个新版本更新都要移除旧版,再安装新版.
有没有办法直接更新升级软件呢?

在官网上看到这样的内容,可是第一步就做不了.不知道"deb"命令加全应该用哪一个呢?

deb http://download.virtualbox.org/virtualbox/debian natty contrib
这段都执行不了.

谢谢!




http://www.virtualbox.org/wiki/Linux_Downloads

代码: 全选

Debian-based Linux distributions
Note: VirtualBox has been moved from non-free to contrib with 4.0, so please adjust your repository settings.

Add one of the following lines according to your distribution to your /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lenny contrib non-free
(Up to version 3.2 the packages were located in the non-free section, starting with version 4.0 are located in the contrib section)

The Oracle public key for apt-secure can be downloaded here. You can add this key with

sudo apt-key add oracle_vbox.asc
or combine downloading and registering:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
The key fingerprint is

7B0F AB3A 13B9 0743 5925  D9C9 5442 2A4B 98AB 5139
Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded here.)

To install VirtualBox, do

sudo apt-get update
sudo apt-get install virtualbox-4.1
Replace virtualbox-4.1 by

virtualbox-4.0 to install VirtualBox 4.0.12
virtualbox-3.2 to install VirtualBox 3.2.12
virtualbox-3.1 to install VirtualBox 3.1.8
virtualbox-3.0 to install VirtualBox 3.0.14
virtualbox-2.2 to install VirtualBox 2.2.4
virtualbox-2.1 to install VirtualBox 2.1.4
virtualbox-2.0 to install VirtualBox 2.0.12
virtualbox to install VirtualBox 1.6.6
Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later. The dkms package can be installed through the Synaptic Package manager or through the following command:

sudo apt-get install dkms
What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?

# sudo -s -H
# apt-get clean
# rm /var/lib/apt/lists/*
# rm /var/lib/apt/lists/partial/*
# apt-get clean
# apt-get update
上次由 yungdeguo 在 2011-07-23 11:29,总共编辑 1 次。
头像
monk
帖子: 19507
注册时间: 2010-01-28 10:45

Re: ubuntu安装virtualbox,版本如何方便的更新?

#2

帖子 monk » 2011-07-23 9:42

能正常使用就好了 没必要频频更新

*********宁静致远*********
如果我说的有什么不对,请看签名第一行
头像
qy117121
论坛版主
帖子: 50587
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: ubuntu安装virtualbox,版本如何方便的更新?

#3

帖子 qy117121 » 2011-07-23 10:22

monk 写了:能正常使用就好了 没必要频频更新
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 chuan@ubuntu.org.cn
头像
jxhow
帖子: 5859
注册时间: 2008-10-24 22:02
来自: 浙江

Re: ubuntu安装virtualbox,版本如何方便的更新?

#4

帖子 jxhow » 2011-07-23 10:33

那是添加natty源 10.10的
选择你合适的版本


其实
每次启动virtualBox的时候它会自动检测新版本,有了就可以去官网下载了
也不用卸载旧版 直接覆盖
http://sb.google.com/ 提问前 请在右上角搜索一下
yungdeguo
帖子: 195
注册时间: 2008-03-06 22:03

Re: ubuntu安装virtualbox,版本如何方便的更新?

#5

帖子 yungdeguo » 2011-07-23 11:07

jxhow 写了:那是添加natty源 10.10的
选择你合适的版本


其实
每次启动virtualBox的时候它会自动检测新版本,有了就可以去官网下载了
也不用卸载旧版 直接覆盖
deb http://download.virtualbox.org/virtualbox/debian natty contrib
这个应该是更新11.04的源吧?


覆盖安装不可以哦.说冲突.
001.png
头像
billzt
帖子: 1666
注册时间: 2010-05-23 20:44
系统: Ubuntu
联系:

Re: ubuntu安装virtualbox,版本如何方便的更新?

#6

帖子 billzt » 2011-07-23 11:58

yungdeguo 写了:
jxhow 写了:那是添加natty源 10.10的
选择你合适的版本


其实
每次启动virtualBox的时候它会自动检测新版本,有了就可以去官网下载了
也不用卸载旧版 直接覆盖
deb http://download.virtualbox.org/virtualbox/debian natty contrib
这个应该是更新11.04的源吧?


覆盖安装不可以哦.说冲突.
001.png
因为4.1和4.0差别很大,所以不能直接覆盖。4.0.x之间就可以覆盖
师大生信者:http://bnuzhutao.cn
长头发的和尚
帖子: 12134
注册时间: 2008-01-11 17:02

Re: ubuntu安装virtualbox,版本如何方便的更新?(更新问题)

#7

帖子 长头发的和尚 » 2011-07-23 12:00

arch里更新太频繁了...
你往幸福的方向挥挥手,从此我便追随你永不回头。
dreamfiy
帖子: 6
注册时间: 2013-05-27 16:50
系统: ubuntu

Re: ubuntu安装virtualbox,版本如何方便的更新?(更新问题)

#8

帖子 dreamfiy » 2013-12-18 14:53

我也遇到4.2.20升级到4.3冲突问题了,怎么解决啊?
min2max
帖子: 59
注册时间: 2012-05-02 13:49

Re: ubuntu安装virtualbox,版本如何方便的更新?(更新问题)

#9

帖子 min2max » 2013-12-31 2:13

vbox有自动检测悉版本功能,会自动弹出有新版本可以升级,然后点击到官网下载新版本(包括需要下载新的tools)。下载完后运行指令:sudo dpkg -i virtualbox-版本序号xxxxxxxxx.deb即可
回复