Can't install apps via clicking on apt url

Bug #1726327 reported by Alan Pope 🍺🐧🐱 πŸ¦„ on 2017-10-23
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apturl (Ubuntu)
High
Unassigned
Artful
Undecided
Unassigned

Bug Description

[ Description ]

Slashes are being appended to URLs passed to apturl, which it isn't prepared to handle.

[ QA ]

Test 1.

1. Open a terminal
2. Run `xdg-open apt://gnome-terminal'

You should see an error message if it is broken, and either a message about gnome-terminal being already installed or an installation prompt from apturl if it is not broken.

Test 2.

1. Click this link: apt://gnome-terminal

As above (assuming your browser is configured to correctly pass apt URLs over to the system's mimetype handler).

[ Regression potential ]

If the fix works, apturl will start working. A potential regression is that apturl is broken in some way that causes damage to systems.

[ Original description ]

Running latest artful.
Visit http://www.videolan.org/vlc/download-ubuntu.html
Click big orange "Available on the software center" button (which links to apt://vlc

Expected outcome:-

GNOME Software which would find vlc in the archive

Actual outcome:-

A dialog box appears
"Invalid URL: 'apt://vlc/' given, exiting
Invalid package name 'vlc/'"

See screenshot.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: apturl 0.5.2ubuntu12
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 23 10:30:09 2017
InstallationDate: Installed on 2017-08-02 (81 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170712)
SourcePackage: apturl
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Will Cooke (willcooke) on 2017-10-23
Changed in apturl (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Iain Lane (laney) wrote :

thx, probs a simple fix as in the attached branch

Iain Lane (laney) on 2017-10-23
description: updated

Hello Alan, or anyone else affected,

Accepted apturl into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apturl/0.5.2ubuntu13 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-artful to verification-done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-artful. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in apturl (Ubuntu Artful):
status: New → Fix Committed
tags: added: verification-needed verification-needed-artful
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apturl - 0.5.2ubuntu13

---------------
apturl (0.5.2ubuntu13) artful; urgency=medium

  * AptUrl/parser.py: Strip trailing slashes that are added by xdg-open/gio
    and which make package names invalid. (LP: #1726327)

 -- Iain Lane <email address hidden> Mon, 23 Oct 2017 14:47:07 +0100

Changed in apturl (Ubuntu):
status: Confirmed → Fix Released
Paul (polalbert) wrote :

I'm affected too... very annoying

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers