2
0
I'm trying to upgrade VirtualBox using a .deb
:
sudo dpkg -i ~/downloads/virtualbox-4.3_4.3.12-93733\~Debian\~wheezy_amd64.deb
but it fails with:
dpkg: regarding .../virtualbox-4.3_4.3.12-93733~Debian~wheezy_amd64.deb containing virtualbox-4.3: virtualbox-4.3 conflicts with virtualbox
virtualbox-4.2 provides virtualbox and is present and installed.dpkg: error processing /home/atc/downloads/virtualbox-4.3_4.3.12-93733~Debian~wheezy_amd64.deb (--install): conflicting packages - not installing virtualbox-4.3 Errors were encountered while processing: /home/atc/downloads/virtualbox-4.3_4.3.12-93733~Debian~wheezy_amd64.deb
According to searches and documentation, the -i
flag to dpkg
should upgrade if it's installed, but as the error suggests that won't work in this scenario.
How do I upgrade the package in this example? I'd prefer not to remove VirtualBox first. Furthermore, I know rpm
has the --upgrade
flag for this. Is there something similar in dpkg
?
Did you try with
– Hastur – 2014-07-01T10:51:15.350--update-avail
? Here there is the solution with apt-get install: they report some conflicts between 4.2 and 4.3. So I'm afraid you should remove it before. Remove onlyvirtualbox
not the virtual machine! :-) If that computer is offline You can always download the packages and install withapt-get
with a temporary cache directory--update-avail
didnt' help either. It still complained. I'll just have to remove & reinstall. – Alex – 2014-07-02T06:57:26.807AFAIR 'vanilla' virtualbox.org packages are created in such a way, that
virtualbox-X.N
andvirtualbox-X.M
are unrelated (but conflicting), so you will have to remove*-4.2
first. – barti_ddu – 2014-07-02T09:21:40.893