Problem with .deb packages on Ubuntu 16.04

Solution 1:

This is bug #1573026. Make sure you click the "this affects me too".

This bug has now been fixed upstream. Hopefully an update will be issued promptly.

What are the workarounds?

You can use the GDebi package manager, available in the software centre or with sudo apt-get install gdebi via the command line.

Then, to install the package, open GDebi and click File -> Open and navigate to the downloaded DEB file.

It can take a little while to add the open the package - it took around 10 seconds for me.

Then check everything is OK, and click install.

It will finish, and the program will be installed.


Or we can use the command line. While apt-get cannot install from a DEB file, all apt-get does is download the file and then call dpkg. We can do those tasks ourselves really simply.

Open a terminal and navigate to our download location with cd.

And run the command:

sudo dpkg -i FileName.deb

replacing FileName with the name of the file.

Finally, run this:

sudo apt-get install -f

This "fixes" everything - it resolves all dependencies etc.

Solution 2:

All .deb files which you manually install are considered to come from 'third party' locations where the system cannot verify the license on the software. The Google Chrome installer as such originates from Google, a third party, and not the Ubuntu repositories - the warning message here indicates this, but since it can't verify the license terms, it also says it may be non-free. Google Chrome is still OK to use.

The message you see there serves as a warning in the event that you want to make sure it's a 'valid' install or something able to be trusted, and is just a notice that the software doesn't originate from the Ubuntu repositories; it also indicates that some of the software from there may be non-free and may have other license restrictions on it.

It is more or less a way to let you know there may be other things to keep in mind - that the software is not Ubuntu-maintained, or may have non-free license restrictions - before you install the software from that .deb file.

This is not an error - it's a warning message. You can still click "Install" and install the Google Chrome browser or anything else from .deb files at your leisure, as it won't stop you from clicking that "Install" button. (except for if there's dependency issues - that's a different, unrelated issue)


If the new software center isn't working, chances are it's a bug - that message isn't related to it./

Lets go and use the manual method of installing.

In the terminal, we can manually install. I'm assuming you saved the .deb to your user's Downloads folder. Replace "PACKAGE" with the actual filename here.

sudo dpkg -i ~/Downloads/PACKAGE.deb
sudo apt-get install -f

You should also run apt-get install -f after the dpkg -i just in case there's dependencies that need resolved - apt-get is capable of determining the dependencies issues, but dpkg is not.

Solution 3:

For me in case of Google Chrome apt-get install -f correctly resolves dependencies only after apt-get update:

sudo apt-get update
sudo dpkg -i google-chrome-stable-...-amd64.deb
sudo apt-get install -f