Article 6JPQ8 I'm having difficulties trying to install guest additions on ubuntu virtualbox

I'm having difficulties trying to install guest additions on ubuntu virtualbox

by
linux-man
from LinuxQuestions.org on (#6JPQ8)
got this errorCode:Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.22 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.22 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.5.0-18-generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Press Return to close this window... From what I've read my options seem to be to upgrade virtual box from 6.1.40 due to kernel conflict hindering guest additions install ? I have a number of other virtualbox os on it will these be affected?

Code:$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammyShould I proceed with (below)?Quote:
use the following command to add the official repository of VirtualBox to your Linux system. This command will automatically determine the release version of your Ubuntu or Debian, and update /etc/apt/sources.list file accordingly.
Code:$ sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list"And should I follow that with (below):
Code:$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

$ apt search "virtualbox-"
$ sudo apt install virtualbox- 7.0.14.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments