← Back to team overview

touch-packages team mailing list archive

[Bug 1426933] Re: add-apt-repository crashed with IndexError in mangle_ppa_shortcut(): string index out of range

 

The problem is the leading slash in the PPA name and there are
surprising number occurrences of this at errors.ubuntu.com.

https://errors.ubuntu.com/bucket/?id=/usr/bin/add-apt-
repository%3AIndexError%3A/usr/bin/add-apt-
repository%40119%3Ashortcut_handler%3Ashortcut_handler%3A__init__%3Amangle_ppa_shortcut

The instructions for adding a PPA on Launchpad don't display a leading
slash but it still seems worth fixing.

** Changed in: software-properties (Ubuntu)
       Status: Confirmed => In Progress

** Changed in: software-properties (Ubuntu)
     Assignee: (unassigned) => Brian Murray (brian-murray)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1426933

Title:
  add-apt-repository crashed with IndexError in mangle_ppa_shortcut():
  string index out of range

Status in software-properties package in Ubuntu:
  In Progress
Status in software-properties source package in Vivid:
  Triaged

Bug description:
  from terminal try to add repository

  ProblemType: Crash
  DistroRelease: Ubuntu 15.04
  Package: software-properties-common 0.96.4
  ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0
  Uname: Linux 3.19.0-7-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.16.1-0ubuntu2
  Architecture: amd64
  CrashCounter: 1
  Date: Sun Mar  1 18:16:57 2015
  ExecutablePath: /usr/bin/add-apt-repository
  InstallationDate: Installed on 2015-03-01 (0 days ago)
  InstallationMedia: Xubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150224)
  InterpreterPath: /usr/bin/python3.4
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/add-apt-repository ppa:/gottcode/gcppa
  PythonArgs: ['/usr/bin/add-apt-repository', 'ppa:/gottcode/gcppa']
  SourcePackage: software-properties
  Title: add-apt-repository crashed with IndexError in mangle_ppa_shortcut(): string index out of range
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1426933/+subscriptions