Upgrade and Uninstall Failing

Discussions related to using VirtualBox on Linux hosts.
Post Reply
griff365
Posts: 3
Joined: 22. Nov 2015, 14:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: Windows & Linux

Upgrade and Uninstall Failing

Post by griff365 »

I have VBox 5.0.4 installed on Centos 6. It's working fine.
I have tried to upgrade it to 5.0.10 but the upgrade fails.
I've tried to uninstall it. That also fails.
Seems I'm stuck with 5.0.4 forever.
Anyone got any ideas on what has happened?
Thx in advance
Griff

Output from YUM and grep is below:

LIST

Code: Select all

[root@vmhost ~]# yum list *VirtualBox*
Installed Packages
VirtualBox-5.0.x86_64                                                              5.0.4_102546_el6-1                                                                @virtualbox
Available Packages
VirtualBox-3.2.x86_64                                                              3.2.28_100435_el6-1                                                               virtualbox 
VirtualBox-4.0.x86_64                                                              4.0.36_104075_el6-1                                                               virtualbox 
VirtualBox-4.1.x86_64                                                              4.1.44_104071_el6-1                                                               virtualbox 
VirtualBox-4.2.x86_64                                                              4.2.36_104064_el6-1                                                               virtualbox 
VirtualBox-4.3.x86_64                                                              4.3.34_104062_el6-1                                                               virtualbox 
VirtualBox-5.0.x86_64                                                              5.0.10_104061_el6-1                                                               virtualbox 
[root@vmhost ~]# 
UPGRADE ATTEMPT

Code: Select all

[root@vmhost ~]# yum upgrade *VirtualBox*
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-5.0.x86_64 0:5.0.4_102546_el6-1 will be updated
---> Package VirtualBox-5.0.x86_64 0:5.0.10_104061_el6-1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================
 Package                                     Arch                                Version                                          Repository                               Size
================================================================================================================================================================================
Updating:
 VirtualBox-5.0                              x86_64                              5.0.10_104061_el6-1                              virtualbox                               72 M

Transaction Summary
================================================================================================================================================================================
Upgrade       1 Package(s)

Total download size: 72 M
Is this ok [y/N]: y
Downloading Packages:
VirtualBox-5.0-5.0.10_104061_el6-1.x86_64.rpm                                                                                                            |  72 MB     00:04     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
A copy of VirtualBox is currently running.  Please close it and try again.
Please note that it can take up to ten seconds for VirtualBox (in particular
the VBoxSVC daemon) to finish running.
error: %pre(VirtualBox-5.0-5.0.10_104061_el6-1.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package VirtualBox-5.0-5.0.10_104061_el6-1.x86_64
error:   install: %pre scriptlet failed (2), skipping VirtualBox-5.0-5.0.10_104061_el6-1
VirtualBox-5.0-5.0.4_102546_el6-1.x86_64 was supposed to be removed but is not!
  Verifying  : VirtualBox-5.0-5.0.4_102546_el6-1.x86_64                                                                                                                     1/2 
  Verifying  : VirtualBox-5.0-5.0.10_104061_el6-1.x86_64                                                                                                                    2/2 

Failed:
  VirtualBox-5.0.x86_64 0:5.0.4_102546_el6-1                                             VirtualBox-5.0.x86_64 0:5.0.10_104061_el6-1                                            

Complete!
[root@vmhost ~]# 
UNINSTALL ATTEMPT

Code: Select all

[root@vmhost ~]# yum erase *VirtualBox*
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-5.0.x86_64 0:5.0.4_102546_el6-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================
 Package                                     Arch                                Version                                         Repository                                Size
================================================================================================================================================================================
Removing:
 VirtualBox-5.0                              x86_64                              5.0.4_102546_el6-1                              @virtualbox                              165 M

Transaction Summary
================================================================================================================================================================================
Remove        1 Package(s)

Installed size: 165 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
A copy of VirtualBox is currently running.  Please close it and try again.
Please note that it can take up to ten seconds for VirtualBox (in particular
the VBoxSVC daemon) to finish running.
error: %preun(VirtualBox-5.0-5.0.4_102546_el6-1.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package VirtualBox-5.0
VirtualBox-5.0-5.0.4_102546_el6-1.x86_64 was supposed to be removed but is not!
  Verifying  : VirtualBox-5.0-5.0.4_102546_el6-1.x86_64                                                                                                                     1/1 

Failed:
  VirtualBox-5.0.x86_64 0:5.0.4_102546_el6-1                                                                                                                                    

Complete!
[root@vmhost ~]# 
GREP OUTPUT

Code: Select all

[root@vmhost ~]# ps -ef | grep Box
root      3049     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3050     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3051     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3052     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3053     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3054     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3055     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3056     2  0 12:43 ?        00:00:00 [iprt-VBoxWQueue]
root      3057     2  0 12:43 ?        00:00:00 [iprt-VBoxTscThr]
root      6236  5140  0 13:07 pts/0    00:00:00 grep Box
[root@vmhost ~]# 
Regards
GRIFF
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Upgrade and Uninstall Failing

Post by Perryg »

I would like to see a guests log file ( as an attachment )
Also which version of VirtualBox are you running? Distro repo or the official version from virtualbox.org?
griff365
Posts: 3
Joined: 22. Nov 2015, 14:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: Windows & Linux

Re: Upgrade and Uninstall Failing

Post by griff365 »

It's the official download - as far I'm aware.
All the guests are currently running fine - no issues.

It's only when I try and upgrade or uninstall the package that I get an error.
It happens whether I use Yum or run the official .rpm download from Oracle.
VBox.Windows7Guest.log
Windows Guest Log File
(3.35 KiB) Downloaded 32 times
VBox.UbuntuGuest.zip
Ubuntu Guest Log File
(25.52 KiB) Downloaded 18 times
I previously upgraded from v4.x to 5.0.4.
Regards
GRIFF
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Upgrade and Uninstall Failing

Post by Perryg »

1) you should read the log you posted for the Windows guest and take action as you are heading for a problem.
2) You may need to stay with the version of VirtualBox that works. Your host ( kernel ) is very old and some of the new code in VirtualBox is going to not work properly.
3) You can post a ticket at bugtracker posting your information and see if the DEVs are willing to fix the compatibility issue.
griff365
Posts: 3
Joined: 22. Nov 2015, 14:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: Windows & Linux

Re: Upgrade and Uninstall Failing

Post by griff365 »

Good Advice.
You're right - I need to upgrade to a current version CentOS.
First a backup. then I'll upgrade

That wasnt' causing the problem though.
I found some old autostart configuration files in /etc/vbox.
They were obsolete, but hadn't caused a problem until I upgraded to Version 5.
They seem to make the current version think that there is a VM running even if there is not.
I deleted them. rebooted. , and the problem is resolved. I've now upgraded to V5.0.10.
As you say - now I'd better upgrade CentOS ASAP.

Thanks
GRIFF
ThetaPhi
Posts: 8
Joined: 18. Jul 2014, 14:08

Re: Upgrade and Uninstall Failing

Post by ThetaPhi »

Hi which files are obsolete? I have an autostart configuration.
This prevents me from updating on Ubuntu. I cannot understand why Oracle is not able to fix this. There are millions of requests and bug reports about this. And answer is always same: You have a VBoxSvc running somewhere. Answer: NO I HAVENT! PERIOD! (it is impossible to do the update, not even when machine has rebooted and really nothing is running!)
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Upgrade and Uninstall Failing

Post by socratis »

@ThetaPhi
Why did you piggyback on this thread? The OP was on a CentOS. You're on Ubuntu. Shouldn't you be opening your own thread?
ThetaPhi wrote:I cannot understand why Oracle is not able to fix this.
Fix what? The only thing that you mentioned so far, is that you have an "autostart configuration". Surely you can't mean that...
ThetaPhi wrote:There are millions of requests and bug reports about this.
From the millions, I'd like you to point me to (a significantly/statistically small sample of) about a hundred of them. That's less than 0.01% of the requests/bugs, so that should be easy.
ThetaPhi wrote:And answer is always same:
If the problem is the same, yes, I don't see any reason why the answer should change. Unless it's a multiple choice one, then yes. But, we still don't know your problem. Yet...
ThetaPhi wrote:(it is impossible to do the update, not even when machine has rebooted and really nothing is running!)
Is that the problem? In the parentheses? You can't update VirtualBox? Well, as I said from the beginning, since your host is Ubuntu, and the OP's was CentOS, please open a new thread, where you describe the problem in detail, including logs and exact error messages.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
CDeck
Posts: 1
Joined: 3. Oct 2017, 23:04

Re: Upgrade and Uninstall Failing

Post by CDeck »

Hello i had a similar problem and in Ubuntu 16.04.2 i just did this and this worked for me

sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-5.1 dkms

mabey if you yum install linux-headers-$(uname -r) build-essential virtualbox-5.1 dkms it wil work for you too
Post Reply