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

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 http://download.virtualbox.org/virtualbox/debian 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 https://www.virtualbox.org/download/oracle_vbox_2016.asc -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.