add-apt-repository: stacktrace on missing template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Reproduce:
1. Upgrade base-files to saucy, keep python-apt-common old.
2. Try to add some repository.
Result:
root# add-apt-repository ppa:webupd8team
Traceback (most recent call last):
File "/usr/bin/
sp = SoftwarePropert
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
(self.id, self.codename))
aptsources.
Expected:
root# add-apt-repository ppa:webupd8team
Error: could not find a distribution template for Ubuntu/saucy in /usr/share/
There are number of problems:
1. program dies with stacktrace, though it's not code error. Applicable environment errors (i.e. user-level errors like wrong data or missing files) must not show stack traces!
2. error message doesn't give user a clue about how to fix the problem. Yes, it tells him about missing 'distribution template', but user doesn't know what is it and where to find it to fix it. Giving him template location ' /usr/share/
$ dpkg -S /usr/share/
python-
3. the root of problem lies behind the fact, that there is no correct version dependencies between packages base-files, software-
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: software-
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Tue May 13 07:58:03 2014
InstallationDate: Installed on 2010-02-04 (1558 days ago)
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Beta amd64 (20090929.2)
MarkForUpload: True
PackageArchitec
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.