Page 1 of 1
I'm trying to install Guest additions in Lubuntu 22.04.
Posted: 19. Jul 2022, 18:58
by LPIII
This didn't work:
Code: Select all
sudo apt install linux-headers-$(uname -r) build-essential dkms
Nor:
Code: Select all
sudo apt-get install build-essential
So I clicked on Devices > Insert Guest Additions CD image. A pop-up Given the option to open in the file manager, so I clicked okay. I pressed F4 to open in terminal and ran:
And got:

- Program_Manager 19-07-2022 12⦂54⦂40⦂255 PM.png (89.93 KiB) Viewed 4051 times
Re: I'm trying to install Guest additions in Lubuntu 22.04.
Posted: 19. Jul 2022, 19:34
by scottgus1
The error in the screenshot is because the header command didn't work.
Please see
https://www.virtualbox.org/manual/ch02. ... nux-prereq for the prerequisites for official Guest Additions in the VM, same as for Virtualbox on the host (also
https://www.virtualbox.org/manual/ch04. ... ions-linux). You'll note there's no mention of dkms, so the instructions you used for the commands above are non-official sources that we cannot help with.
I also did not have success inserting the '(uname -r)' into the apt install command. Per the linked instructions, run the "uname -r" as a separate command, then paste the result into the apt command.
If you have trouble, please elaborate more on what the trouble is:
LPIII wrote:This didn't work:
isn't distinctive enough to help with.
Re: I'm trying to install Guest additions in Lubuntu 22.04.
Posted: 19. Jul 2022, 20:07
by multiOS
@LPIII
The output from the attempted Guest Additions install states that the "gcc make perl" packages are missing from your Lubuntu VM and explicitly asks for them to be installed, so you need to try:
If the installation of the other dependencies required hadn't completed when you issued the commands then you should have seen an error message.
Re: I'm trying to install Guest additions in Lubuntu 22.04.
Posted: 20. Jul 2022, 18:35
by LPIII
It turns out that I just needed to run:
Before:
Code: Select all
sudo apt install linux-headers-$(uname -r) build-essential dkms
And to installe the guest additions I needed to go to:
Code: Select all
Devices > Insert Guest Additions CD image
Open in the terminal and:
Re: I'm trying to install Guest additions in Lubuntu 22.04.
Posted: 20. Jul 2022, 20:42
by scottgus1
Great! Glad you're up and running.