Ubuntu系统安装VirtualBox后无发安装“增强功能”的解决办法

Ubuntu系统安装VirtualBox后, 在设备选项中点击曾倩功能没有反应,也不能是用多动和剪切板功能,解决办法如下

1. 安装linux-image

Terminal执行:  sudo apt-get install --reinstall linux-image-$(uname -r)

2.  安装virtualbox-guest-x11

Terminal执行: sudo apt-get install virtualbox-guest-x11

具体如下:

hulk@hulk-ThinkCentre-M710t-N000:~/Desktop/tmp$ sudo apt-get install --reinstall linux-image-$(uname -r)
[sudo] password for hulk: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ibus-data ibus-gtk4 libflashrom1 libftdi1-2 libllvm13 python3-ibus-1.0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 0 B/13.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 283353 files and directories currently installed.)
Preparing to unpack .../linux-image-6.2.0-31-generic_6.2.0-31.31~22.04.1_amd64.deb ...
Unpacking linux-image-6.2.0-31-generic (6.2.0-31.31~22.04.1) over (6.2.0-31.31~22.04.1) ...
Setting up linux-image-6.2.0-31-generic (6.2.0-31.31~22.04.1) ...
Processing triggers for linux-image-6.2.0-31-generic (6.2.0-31.31~22.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-31-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-31-generic
Found initrd image: /boot/initrd.img-6.2.0-31-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Found linux image: /boot/vmlinuz-5.19.0-50-generic
Found initrd image: /boot/initrd.img-5.19.0-50-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
hulk@hulk-ThinkCentre-M710t-N000:~/Desktop/tmp$ sudo apt-get install virtualbox-guest-x11
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ibus-data ibus-gtk4 libflashrom1 libftdi1-2 libllvm13 python3-ibus-1.0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  virtualbox-guest-utils
The following NEW packages will be installed:
  virtualbox-guest-utils virtualbox-guest-x11
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,673 kB of archives.
After this operation, 8,257 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://cn.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 virtualbox-guest-utils amd64 6.1.38-dfsg-3~ubuntu1.22.04.1 [1,042 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 virtualbox-guest-x11 amd64 6.1.38-dfsg-3~ubuntu1.22.04.1 [631 kB]
Fetched 1,673 kB in 35s (48.0 kB/s)                                            
Selecting previously unselected package virtualbox-guest-utils.
(Reading database ... 283353 files and directories currently installed.)
Preparing to unpack .../virtualbox-guest-utils_6.1.38-dfsg-3~ubuntu1.22.04.1_amd64.deb ...
Unpacking virtualbox-guest-utils (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Selecting previously unselected package virtualbox-guest-x11.
Preparing to unpack .../virtualbox-guest-x11_6.1.38-dfsg-3~ubuntu1.22.04.1_amd64.deb ...
Unpacking virtualbox-guest-x11 (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Setting up virtualbox-guest-utils (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/virtualbox-guest-utils.service → /lib/systemd/system/virtualbox-guest-utils.service.
Setting up virtualbox-guest-x11 (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Processing triggers for man-db (2.10.2-1) ...

安装 virtualbox-guest-x11 如果出现错误,执行如下:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xserver-xorg linux-image-generic
sudo apt-get purge xserver-xorg-hwe-18.04 linux-image-generic-hwe-18.04 xserver-xorg-legacy-hwe-18.04 xserver-xorg-core-hwe-18.04 xserver-xorg-video-intel-hwe-18.04
sudo apt-get autoremove
 

再次执行  sudo apt-get install virtualbox-guest-x11

3. 手动安装增强功能

如果“设备”>"安装曾倩功能",还是无反应,进入“此电脑”的VirtualBox中手动点击安装

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值