How do I update a program installed from a manually-downloaded deb package?

I would like to update VirtualBox on my 32 bit Ubuntu 15.04 machine from 4.3.26 to 4.3.28, using a Debian package I manually downloaded from here. But simply double-clicking the package opens up the Software Centre which gives an error that installing it would break an existing package (the exact message was:

Breaks existing package 'virtualbox' conflict: virtualbox-4.3 ()

and it does not appear to have an option to ignore this and proceed with the installation anyway. Is there a command-line work-around this problem, perhaps?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

A better solution would be to add the oracle virtualbox ppa as described here

Add the following line to your /etc/apt/sources.list:

deb xenial contrib

(or even better to a new .list file in /etc/apt/sources.list.d)
The Oracle public key for apt-secure can be downloaded here. You can add this key with

sudo apt-key add oracle_vbox_2016.asc

or combine downloading and registering:

wget -q -O- | sudo apt-key add -

The key fingerprint is

B9F8 D658 297A F3EF C18D  5CDF A2F6 83C5 2980 AECF
Oracle Corporation (VirtualBox archive signing key) <[email protected]>
<[email protected]>

To install VirtualBox, do

sudo apt-get update
sudo apt-get install virtualbox-5.1

If you want to stick to the cumbersome unlinuxy manual way, please try it using the command line, so that we can see which package would break.

dpkg -i package-file-name

Solution 2

Try to install it using the command line not the Software Center.

sudo dpkg -i virtualbox-4.3_4.3.28-100309~Ubuntu~raring_i386.deb

This would replace the old version without destroying your configurations and old machines.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply