51

Whenever I double click a deb file, it'd be opened in software center. However, when I click "install" button, it'd change to "installing" for a second but then turn back to "install" and nothing happens. It also says "This software comes from a 3rd party and may contain non-free components" at the bottom. I have enabled all the options in Software & Updates and also tried reinstalling software center but nothing helped.

Hee Jin
  • 886
  • 10
  • 23
aaa
  • 2,624
  • 6
    This is a bug, please add this as "also effects" here https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1573206 – Mark Kirby Apr 23 '16 at 12:48
  • 4
    @MarkKirby i cannot believe they should release the official version without fixing such simple bugs – aaa Apr 23 '16 at 13:05
  • 1
    Seems to affect alot of people too. Issue is in Gnome software, that replaced the software center in 16.04, hopefully. if people sign the bug report they will patchy it fast. – Mark Kirby Apr 23 '16 at 13:15
  • It looks like they've released a fix for this according to launchpad but I still am having this issue after doing a software update. – Ian Apr 26 '16 at 03:44
  • @IanLantzy how did you update it? – aaa Apr 26 '16 at 10:09
  • Using the Software Updater program and 'sudo apt-get update && sudo apt-get upgrade' – Ian Apr 26 '16 at 20:19
  • there are several issues here , bugs in gnome software center and the retirement of sha1 from the APT system in favour of SHA256 or SHA512. – Amias May 05 '16 at 16:06

4 Answers4

50

If you want to install programs via .deb files, I suggest to use Gdebi.

It's a lightweight application that is better at installing .deb packages, and is quicker as well. If there are dependencies, it notifies that as well.

In the terminal, type:

sudo apt install gdebi

You can right click on .deb file and select to open it with Gdebi.

If you like Gdeb, you can make it default to have it open all the .deb files in future.

Read this: http://itsfoss.com/gdebi-default-ubuntu-software-center/

abhishek
  • 2,696
12

If you need to install software that is not in the repositories, and the Software Center is not working, there is an alternative but it requires the terminal. You must first navigate to the folder where you downloaded the debian package, which is usually in the 'Downloads' folder.

You can open the terminal from that folder by right-clicking and pressing "Open Terminal", or you can navigate to it via the Terminal by:

cd /path/to/folder

After that you just run this command:

sudo dpkg -i nameofpackage.deb
Mario Kamenjak
  • 1,043
  • 3
  • 16
  • 25
1

This is not specifically a bug in ubuntu its an APT thing . Its just very unfortunate timing for the 16.04 release that the SHA1 has is being retired. SHA1 is used by the APT system extensively to checksum packages , its being deprecated in favour of SHA256 or SHA512 which is safer.

If you notice a package is not working then please contact the repo maintainer and ask them to update their SHA implementation.

Debians writeup of effected repos and how to update https://wiki.debian.org/Teams/Apt/Sha1Removal

How and why the apt system secures its packages and repositories https://wiki.debian.org/SecureApt

As suggested by others the work around is to manually download the file and verify it yourself before installing with a non repository aware tool like dpkg or gdebi.

Amias
  • 5,246
0

If you need to install a software you have two options

  1. using Software Center
  2. using terminal

If you are facing some problem with first method you can go for second method.

  1. Add PPA using following command

    sudo add-apt-repository ppa:<ppa_name>
    

    If the above command does not work, try following command

    sudo -E add-apt-repository ppa:<ppa_name>
    
  2. Then write following command:

    sudo apt-get update
    

    then

    sudo apt-get install <software-name>
    
muru
  • 197,895
  • 55
  • 485
  • 740