版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_32846595/article/details/81840733
最近想实现将windows中的文件拷贝到在virtual box中ubuntu server中,选择了使用共享文件夹的方法,但是遇到了很多奇怪的问题,其中有一个就是在安装增强功能的时候,也就是在运行
sudo ./VBoxLinuxAdditions.run
出现了以下的错误
Failed to set up service vboxadd, please check the log file /var/log/VBoxGuestAdditions.log for details.
发现说是缺少了gcc,于是就开始安装gcc,依次运行如下命令
sudo apt-get update
sudo apt-get install gcc
但是安装成功后再次运行
sudo ./VBoxLinuxAdditions.run
发现仍然报错,最终在这里找到解决方案,也就是还需要运行下述命令
apt-get install build-essential module-assistant linux-headers-$(uname -r)
这样,就可以再/media目录下找到sf_xxx的共享文件了。