Thats good info! Could this be fixed in by changing how gnome-software is
invoked during local installs or would it need to be done within the
program itself? Its not uncommon for a software (especially one run with
root permissions) to need a full system path. It would also explain why the
"~/" doesn't work as it is a built in alias for /home/$username <---which
changes once the software starts.

On Fri, Mar 24, 2017 at 12:06 PM Marcos Alano <1672...@bugs.launchpad.net>
wrote:

> I found a plot twist: the package doesn't install if in the same path as
> user.
>
> So:
> # both user and package are in ~/Downloads. Don't work
> marcos@marcos-laptop:~/Downloads$ gnome-software
> --local-filename=google-chrome-stable_current_amd64.deb
>
> # user is in one directory and package are in a subdirectory. Works
> marcos@marcos-laptop:~$ gnome-software
> --local-filename=Downloads/google-chrome-stable_current_amd64.deb
>
> # same as before, but indicating the full path using til. Don't work
> marcos@marcos-laptop:~$ gnome-software
> --local-filename=~/Downloads/google-chrome-stable_current_amd64.deb
>
> # same as before, but indicating the full path normally. Works
> marcos@marcos-laptop:~$ gnome-software
> --local-filename=/home/marcos/Downloads/google-chrome-stable_current_amd64.deb
>
> # different paths, but indicating the relative path using two dots. Don't
> work
> marcos@marcos-laptop:~/Downloads$ gnome-software
> --local-filename=../google-chrome-stable_current_amd64.deb
>
> # same path, but indicating the relative path using one dot. Works
> marcos@marcos-laptop:~$ gnome-software
> --local-filename=./google-chrome-stable_current_amd64.deb
>
> May be you could understand I can't understand. :)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1672424
>
> Title:
>   Cannot install Debian files outside of the repositories
>
> 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
>
> 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/+source/gnome-software/+bug/1672424/+subscriptions
>

-- 
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:
  Cannot install Debian files outside of the repositories

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

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/+source/gnome-software/+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

Reply via email to