<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Title &#187; vbox</title>
	<atom:link href="http://www.wterry.net/tag/vbox/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wterry.net</link>
	<description>No title is good title</description>
	<lastBuildDate>Sat, 17 Sep 2011 08:44:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<atom:link rel='hub' href='http://www.wterry.net/?pushpress=hub'/>
		<item>
		<title>VirtualBox成功升级到2.2.4</title>
		<link>http://www.wterry.net/20090608/success-upgrade-virtualbox-to-224.html</link>
		<comments>http://www.wterry.net/20090608/success-upgrade-virtualbox-to-224.html#comments</comments>
		<pubDate>Sun, 07 Jun 2009 16:59:07 +0000</pubDate>
		<dc:creator>WteRry</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[计算机&网络]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vbox]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.wterry.net/?p=254</guid>
		<description><![CDATA[自从Ubuntu升级到9.04，发现VirtualBox也更新到2.2.4了，但是我的却一直没有自动升级。 到VirtualBox的官方网站上看了一下，原来2.1不能直接升级到2.2，要卸载旧版本才能用2.2的。于是，卸载 1sudo apt-get remove virtualbox-2.1 之后，安装 1sudo apt-get install virtualbox-2.2 这时，问题出现了 modprobe vboxdrv failed 有问题，找Google。 但是，没有找到针对的解决办法，OK，还是看log文件吧，最原始的消息都在里面 1gedit /var/log/vbox-install.log 原来真正的错误是这个 ** Compiling vboxdrv Makefile:143: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again。 停止。 在编译vboxdrv的时候出错，无法找到相应的kernel header。找不到就安装之 1sudo apt-get install linux-headers-2.6.28-11 怎么，明明已经安装了的，奇怪。再找原因，可能是我当前启动的不是我已经安装的内核，用命令看一下 1uname -r 果然 2.6.27-11-generic 唉，新内核装了居然一直没启用。。。 [...]]]></description>
			<content:encoded><![CDATA[<p>自从<a  href="http://www.ubuntu.com/" target="_blank" class="liexternal">Ubuntu</a>升级到9.04，发现<a  href="http://www.virtualbox.org" target="_blank" class="liexternal">VirtualBox</a>也更新到2.2.4了，但是我的却一直没有自动升级。</p>
<p>到<a  href="http://www.virtualbox.org" target="_blank" class="liexternal">VirtualBox</a>的官方网站上看了一下，原来2.1不能直接升级到2.2，要卸载旧版本才能用2.2的。于是，卸载</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get remove</span> virtualbox-<span style="color: #000000;">2.1</span></div></td></tr></tbody></table></div>
<p>之后，安装</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> virtualbox-<span style="color: #000000;">2.2</span></div></td></tr></tbody></table></div>
<p>这时，问题出现了</p>
<blockquote><p><span style="color: #0000ff;">modprobe vboxdrv failed</span></p></blockquote>
<p>有问题，找<a  href="http://www.google.com" target="_blank" class="liexternal">Google</a>。</p>
<p>但是，没有找到针对的解决办法，OK，还是看log文件吧，最原始的消息都在里面</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gedit <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>vbox-install.log</div></td></tr></tbody></table></div>
<p>原来真正的错误是这个</p>
<blockquote><p><span style="color: #0000ff;">** Compiling vboxdrv<br />
Makefile:143: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again。 停止。</span></p></blockquote>
<p>在编译vboxdrv的时候出错，无法找到相应的kernel header。找不到就安装之</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> linux-headers-2.6.28-<span style="color: #000000;">11</span></div></td></tr></tbody></table></div>
<p>怎么，明明已经安装了的，奇怪。再找原因，可能是我当前启动的不是我已经安装的内核，用命令看一下</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span></div></td></tr></tbody></table></div>
<p>果然</p>
<blockquote><p><span style="color: #0000ff;">2.6.27-11-generic</span></p></blockquote>
<p>唉，新内核装了居然一直没启用。。。<br />
修改grub启动菜单</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>menu.lst</div></td></tr></tbody></table></div>
<p>把<span style="color: #0000ff;">2.6.27-11</span>全部替换为<span style="color: #0000ff;">2.6.28-11</span>，重启，再安装<a  href="http://www.virtualbox.org" target="_blank" class="liexternal">VirtualBox</a>，一切顺利，再重启，熟悉的<a  href="http://www.virtualbox.org" target="_blank" class="liexternal">VirtualBox</a>出现在我的菜单里面，启动之，提示要把旧的配置文件转换，照它说的做吧，一切正常。</p>
<p>总结：</p>
<ol>
<li>安装了新内核一定要记住更新启动菜单，不然可能用的还是旧内核。</li>
<li>安装软件出问题，一定要查看log文件，那里面才是最原始的信息，不然外部的提示信息可能误导你。</li>
<li>安装内核的headers最好是用命令
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span></div></td></tr></tbody></table></div>
<p>这样就不会弄错版本。</li>
<li>uname是<a  href="http://www.linux.org/" target="_blank" class="liexternal">Linux</a>中显示当前操作系统名称的命令，具体用法请看下面。</li>
</ol>
<p>出自<span style="color: #ff0000;">uname &#8211;help</span>，详细的还是<a  href="http://www.google.com" target="_blank" class="liexternal">Google</a>吧</p>
<blockquote><p>用法：uname [选项]&#8230;<br />
输出一组系统信息。如果不跟随&lt;选项&gt;，则视为只附加 -s 选项。</p>
<p>-a, &#8211;all    以如下次序输出所有信息。其中若 -p 和 -i 的探测结果不可知则被省略：<br />
-s, &#8211;kernel-name    输出内核名称<br />
-n, &#8211;nodename    输出网络节点上的主机名<br />
-r, &#8211;kernel-release    输出内核版本<br />
-v, &#8211;kernel-version    输出内核发行时间<br />
-m, &#8211;machine    输出主机的硬件架构名称<br />
-p, &#8211;processor    输出处理器类型或“unknown”<br />
-i, &#8211;hardware-platform    输出硬件平台或“unknown”<br />
-o, &#8211;operating-system    输出操作系统名称<br />
&#8211;help     显示此帮助信息并离开<br />
&#8211;version  显示版本信息并离开</p>
<p>请向 &lt;bug-coreutils@gnu.org&gt; 报告错误。</p></blockquote>
<h6>067c5a39-7f19-40c9-ae03-202067daf1eb</h6>
]]></content:encoded>
			<wfw:commentRss>http://www.wterry.net/20090608/success-upgrade-virtualbox-to-224.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

