Note that --local-filename=~/filename.deb doesn't work because '~' is a shell expansion that doesn't occur. It would have been substituted if the command line was --local-filename ~/filename.deb.
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-software in Ubuntu. https://bugs.launchpad.net/bugs/1672424 Title: Installing .debs from the command line fails for non-absolute paths Status in Release Notes for Ubuntu: Fix Released Status in gnome-software package in Ubuntu: Confirmed Status in gnome-software source package in Xenial: Confirmed Status in gnome-software source package in Yakkety: Confirmed Status in gnome-software source package in Zesty: Confirmed Bug description: Impact ------ It is not possible to use the default Software app to install .debs for packages that are not already available in Ubuntu. Test Case --------- 1. a. Download the .deb for a simple app for your version of Ubuntu directly from Launchpad. For 16.10, try https://launchpad.net/ubuntu/+source/gnome-clocks/3.22.1-0ubuntu1/ Click amd64 then download the last .deb on that page. b. Open the .deb with gnome-software: gnome-software --local-filename=gnome-clocks_3.22.1-0ubuntu1_amd64.deb gnome-software should open to a page with an Install button for the package. This test case should already work. 2. a. Download a .deb that is not already in Ubuntu. It is important that the package not be available in your local apt cache. For this, I made sure that I was not using the GNOME3 Staging PPA. As of today, switcheroo-control is not accepted into Ubuntu 17.04. So I downloaded https://launchpad.net/~gnome3-team/+archive/ubuntu/gnome3-staging/+files /switcheroo-control_1.1-0ubuntu0~zesty1_amd64.deb b. Open the .deb with gnome-software gnome-software --local-filename=switcheroo-control_1.1-0ubuntu0~zesty1_amd64.deb I only suggested using switcheroo-control because I know it's not because the package isn't packaged correctly. Alternatively, this test case should also work with one of these: https://www.google.com/chrome/ https://itch.io/app gnome-software should open to a page with an Install button for the package. What Happens ------------ The second test fails. On Ubuntu 17.04, I get a popup "Sorry this did not work The file is not supported" On Ubuntu 16.04 LTS or 16.10, I get "Sorry this did not work No file_to_app results to show" Regression Potential -------------------- Original Bug Report ------------------- .deb files fail to install from non repository locations i.e. The file manager gnome-software claims "this file type is not supported". Using dpkg from the command line works as expected so the files aren't corrupt. This happened last distribution as well when it was first released. Might be a regression caused by adding snap package capabilities to the software-center? ProblemType: Bug DistroRelease: Ubuntu 17.04 Package: gnome-software 3.22.6-0ubuntu1 ProcVersionSignature: Ubuntu 4.10.0-13.15-generic 4.10.1 Uname: Linux 4.10.0-13-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia ApportVersion: 2.20.4-0ubuntu2 Architecture: amd64 CurrentDesktop: Unity:Unity7 Date: Mon Mar 13 10:02:00 2017 InstallationDate: Installed on 2017-02-20 (20 days ago) InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2) ProcEnviron: LANGUAGE=en_US PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: gnome-software UpgradeStatus: Upgraded to zesty on 2017-02-28 (12 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-release-notes/+bug/1672424/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp