Error with virtualbox update

I recently had 4 software updates for oracle. When I click to update, I get the following message:

There is no update candidate for virtualbox-kmp-default-6.1.22_k5.3.18_lp152.81-lp152.2.30.2.x86_64

I have virtualbox 6.1.22-604 installed. Interestingly, I noticed the Oracle VM that is installed is 5.1. This has been working fine.

The 4 files that are attempting to update are for version 6.1.24-607. I’m not sure why it is trying to switch to this version. I tried to delete the Oracle VM 5.1 and download 6.1, but I got a warning of file conflict and wasn’t confident enough to ignore it.

Can anyone help me sort this out? What action should I take?

post:

zypper se -s virtualbox
zypper up

Both in a separate Code-Tag and with the whole input (command) line.

Here is the first code. I had to delete a lot of the output because it was too big to post a reply:

Retrieving repository 'Packman Repository' metadata ..............................................................................................................................[done]
Building repository 'Packman Repository' cache ...................................................................................................................................[done]
Retrieving repository 'packman' metadata .........................................................................................................................................[done]
Building repository 'packman' cache ..............................................................................................................................................[done]
Retrieving repository 'Update Repository (Debug)' metadata .......................................................................................................................[done]
Building repository 'Update Repository (Debug)' cache ............................................................................................................................[done]
Retrieving repository 'openSUSE-Leap-15.2-Update' metadata .......................................................................................................................[done]
Building repository 'openSUSE-Leap-15.2-Update' cache ............................................................................................................................[done]
Loading repository data...
Reading installed packages...

S  | Name                             | Type       | Version                              | Arch   | Repository
---+----------------------------------+------------+--------------------------------------+--------+------------------------------------
i+ | VirtualBox-5.2                   | package    | 5.2.44_139111_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.42_137960_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.40_137108_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.38_136252_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.36_135684_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.34_133893_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.32_132073_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.30_130521_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.28_130011_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.26_128414_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.24_128163_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.22_126460_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.20_125813_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.18_124319_openSUSE150-1          | x86_64 | x86_64
v  | VirtualBox-5.2                   | package    | 5.2.16_123759_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.24_139119_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.22_137980_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.20_137117_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.18_136238_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.16_135674_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.14_133895_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.12_133076_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.10_132072_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.8_130520_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.6_130049_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.4_128413_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.2_128162_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.0                   | package    | 6.0.0_127566_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.24_145767_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.22_144080_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.20_143896_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.18_142142_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.16_140961_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.14_140239_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.12_139181_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.10_138449_openSUSE150-1          | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.8_137981_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.6_137129_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.4_136177_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.2_135662_openSUSE150-1           | x86_64 | x86_64
   | VirtualBox-6.1                   | package    | 6.1.0_135406_openSUSE150-1           | x86_64 | x86_64

Loading repository data...
Reading installed packages...

The following package update will NOT be installed:
  xen-libs

The following 7 NEW packages are going to be installed:
  kernel-default-5.3.18-lp152.84.1 kernel-default-devel-5.3.18-lp152.84.1 kernel-devel-5.3.18-lp152.84.1 kernel-preempt-devel-5.3.18-lp152.84.1 kernel-source-5.3.18-lp152.84.1
  kernel-syms-5.3.18-lp152.84.1 virtualbox-kmp-default-6.1.24_k5.3.18_lp152.19-607.1

The following 5 packages are going to be upgraded:
  kernel-macros libefivar1 virtualbox virtualbox-host-source virtualbox-qt

The following package requires a system reboot:
  kernel-default-5.3.18-lp152.84.1

5 packages to upgrade, 7 new.
Overall download size: 261.9 MiB. Already cached: 0 B. After the operation, additional 1.2 GiB will be used.

    Note: System reboot required.
Continue? [y/n/v/...? shows all options] (y): 

you show no update for virtualbox-kmp-default-6.1.22_k5.3.18_lp152.81-lp152.2.30.2.x86_64

but you output shows virtualbox-kmp-default-6.1.24_k5.3.18_lp152.19-607.1 which is the update for it.

I don’t understand why you have so many old versions - I only have the current 6.1.22.

Also I don’t know why you have the real time os loading as well kernel-prempt is for real time and is not normally used with virtualbox - it was accidental installed a few releases ago an I removed it from my system.

Your Installation is the rpm from the Oracle Repo, but your zypper up will install the package from the Update Repo…

Show:

zypper lr -d

And please now show the whole output, otherwise use
paste.opensuse.org

I see this in your output - that is for 15.0 - that looks like Oracle’s version and not openSUSE’s version.

6.1.22_144080_openSUSE150-1

for 15.2 it should look like this - have a lp152 in the name not 150-1

[FONT=courier new]6.1.22_k5.3.18_59.5-lp152.2.3.2

[FONT=arial]The above line reads as version 6.1.22 for openSUSE kernel 5.3.18-59.5 for leap 15.2

If it were my machine I would uninstall via zypper rm vritualbox*

That would not remove any virtual machines - just the virtualbox libraries

and then reboot and zypper in virtualbox (clean from openSUSE libraries)

then add the virtualbox extension pack for the version you install from Oracle - that is the only thing you need for the server.[/FONT]

[/FONT]

#  | Alias                                 | Name                                | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                           | Service
---+---------------------------------------+-------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------+--------
 1 | Virtualization                        | Virtualization (openSUSE_Leap_15.2) | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/repositories/Virtualization/openSUSE_Leap_15.2/ | 
 2 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/            | 
 3 | https-download.opensuse.org-a888d837  | Virtualization                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Virtualization/openSUSE_Leap_15.2/ | 
 4 | packman                               | packman                             | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/            | 
 5 | repo-debug                            | Debug Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/           | 
 6 | repo-debug-update                     | Update Repository (Debug)           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/oss                       | 
 7 | repo-non-oss                          | Non-OSS Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/             | 
 8 | repo-oss                              | openSUSE-Leap-15.2-Oss              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                 | 
 9 | repo-source                           | Source Repository                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/          | 
10 | repo-update                           | openSUSE-Leap-15.2-Update           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss/                            | 
11 | repo-update-non-oss                   | Update Repository (Non-Oss)         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/                        | 
12 | x86_64                                | x86_64                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.virtualbox.org/virtualbox/rpm/opensuse/15.0/x86_64  

I like your suggestion. I would love to clean this up a bit. Can you give me the exact command to "zypper in virutalbox (clean from the openSUSE libraries)? Just to be safe :slight_smile:

I see you have way too many ways to get virtualbox and you don’t need any

so here is my way to cleanup

1 . disable unneed repos
2. remove old versions
3. install the new versions

these commands will do that (run as root or sudo them)

zypper mr -d 1 3 4 6 12
zypper rm virtualbox\*
zypper in virtualbox

I have a script to install the virtualbox extension pack ( run it after the install but before you run virtualbox )

this installs it - run it as root addvbext

cat >> addvbext <<EOF
vbv=`/usr/bin/VBoxManage --version | tr "r" "_"`
if  ! -d "/tmp" ]
then 
echo make tmp
mkdir /tmp
chmod 777 /tmp
fi
echo update VirtualBox
VBOX_VERSION=`/usr/bin/VBoxManage --version | awk -F_ {'print $1'}`
VBOX_EXT_VERSION=`/usr/bin/VBoxManage --version | awk -F_ {'print $1'}`
# echo Virtualbox version installed is $VBOX_VERSION and $VBOX_EXT_VERSION
VBOX_EXT=`echo Oracle_VM_VirtualBox_Extension_Pack-${VBOX_EXT_VERSION}.vbox-extpack`
# echo File is $VBOX_EXT
cd /tmp
/usr/bin/wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/$VBOX_EXT
echo y | /usr/bin/VBoxManage extpack install --replace $VBOX_EXT
rm -f $VBOX_EXT
EOF
chmod 755 addvbext

Here are the results for the first 3 commands:

zypper mr -d 1 3 4 6 12
Repository 'Virtualization' has been successfully disabled.
Repository 'https-download.opensuse.org-a888d837' has been successfully disabled.
Repository 'packman' has been successfully disabled.
Repository 'repo-debug-update' has been successfully disabled.
Repository 'x86_64' has been successfully disabled.

zypper rm virtualbox\*
Reading installed packages...
Resolving package dependencies...

The following 5 packages are going to be REMOVED:
  virtualbox virtualbox-host-source virtualbox-kmp-default-6.1.22_k5.3.18_lp152.78-lp152.2.27.2 virtualbox-kmp-default-6.1.22_k5.3.18_lp152.81-lp152.2.30.2 virtualbox-qt

5 packages to remove.
After the operation, 114.0 MiB will be freed.
Continue? [y/n/v/...? shows all options] (y): y
(1/5) Removing virtualbox-host-source-6.1.22-604.1.noarch ........................................................................................................................[done]
(2/5) Removing virtualbox-qt-6.1.22-604.1.x86_64 .................................................................................................................................[done]
(3/5) Removing virtualbox-6.1.22-604.1.x86_64 ....................................................................................................................................[done]
(4/5) Removing virtualbox-kmp-default-6.1.22_k5.3.18_lp152.81-lp152.2.30.2.x86_64 ................................................................................................[done]
(5/5) Removing virtualbox-kmp-default-6.1.22_k5.3.18_lp152.78-lp152.2.27.2.x86_64 ................................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.
 

zypper in virtualbox
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 3 NEW packages are going to be installed:
  virtualbox virtualbox-kmp-default virtualbox-qt

The following recommended package was automatically selected:
  virtualbox-qt

3 new packages to install.
Overall download size: 35.2 MiB. Already cached: 0 B. After the operation, additional 107.2 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package virtualbox-kmp-default-6.1.22_k5.3.18_lp152.81-lp152.2.30.2.x86_64                                                              (1/3), 545.3 KiB (  1.7 MiB unpacked)
Retrieving: virtualbox-kmp-default-6.1.22_k5.3.18_lp152.81-lp152.2.30.2.x86_64.rpm ...................................................................................[done (2.4 MiB/s)]
Retrieving package virtualbox-6.1.22-lp152.2.30.2.x86_64                                                                                           (2/3),  31.5 MiB ( 84.7 MiB unpacked)
Retrieving: virtualbox-6.1.22-lp152.2.30.2.x86_64.rpm ................................................................................................................[done (5.3 MiB/s)]
Retrieving package virtualbox-qt-6.1.22-lp152.2.30.2.x86_64                                                                                        (3/3),   3.1 MiB ( 20.8 MiB unpacked)
Retrieving: virtualbox-qt-6.1.22-lp152.2.30.2.x86_64.rpm .............................................................................................................[done (1.7 MiB/s)]

Checking for file conflicts: ....................................................................................................................................................[error]
Detected 97 file conflicts:

File /usr/bin/VBoxHeadless
  from install of
     virtualbox-6.1.22-lp152.2.30.2.x86_64 (openSUSE-Leap-15.2-Update)
  conflicts with file from package
     VirtualBox-5.2-5.2.44_139111_openSUSE150-1.x86_64 (@System)


The first command appears to work as expected. But I noticed only one version was removed with the second command. I was expecting more. Then with the third command, I stopped there because of the conflict. I only copied one of the 97 conflicts to avoid a messy post. Before moving forward I wanted your feedback.

Thanks for the guidance.

I see the problem - some are installed with capital letters add this to step two and new step 3

now just do the additional two commands below to fix things - I forgot that some had capital letters in them.

I forgot to remove these
VirtualBox-5.2

zypper rm VirtualBox\*
zypper in virtualbox --allow-vendor-change

Ok. Success with removing 5.2. But when I run the second command, this is what I get:

zypper in virtualbox --allow-vendor-change
Loading repository data...
Reading installed packages...
'-allow-vendor-change' is not a package name or capability.

Omit the “–allow-vendor-change” and it should then work.

Success!

I also installed the corresponding ext pack and it starts up… but it gives a non-fatal error message as follows:


The image file '/usr/share/virtualbox/VBoxGuestAdditions.iso' is inaccessible and is being ignored. Please select a different image file for the virtual DVD drive..


Error ID: 
DvdOrFloppyImageInaccessible
Severity: 
Warning

Should I take any action because of that?

Remove it from an Virtual CD drive in one of the VirtualBox machines.

Got it. This problem is completely fixed.

Thanks everyone who helped!