package identification is awful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Recently I reported a bug against the kernel - apport made this very difficult.
The instructions at <https:/
"ubuntu-bug linux" reports that linux is not installed!
After some head-scratching I tried "ubuntu-bug linux-image", that also failed. It did finally work with "ubuntu-bug linux-image-
So, I tried to report a bug against ubuntu-bug with "ubuntu-bug ubuntu-bug", not installed! According to the web site <https:/
If you want feedback from ordinary users, bugs in the bug reporting system are serious.
When apport is given a name that is not a package name it could follow a few simple steps to at lest provide hints to user;
"ls -l $(which ubuntu-bug)" shows that it is a link,
"ls -l --dereference $(which ubuntu-bug)" shows what it links to, and
"dpkg-query --search $(ls --dereference $(which ubuntu-bug))" even reports "apport: /usr/bin/
That would be a useful clue to most users. Note, "dpkg-query --search ubuntu-bug" is less useful.
As for kernel bugs, it should at least behave as documented. Please add an extra line of code so that as a special case both "ubuntu-bug linux" and "ubuntu-bug kernel" work.
There have been many times that apport has stated that a bug could not be reported and I had believed that it was because there were non-standard packages installed, now I am not so sure.
TIA
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apport 2.19.4-0ubuntu2
ProcVersionSign
Uname: Linux 4.4.0-2-generic x86_64
ApportVersion: 2.19.4-0ubuntu2
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Feb 28 13:06:32 2016
InstallationDate: Installed on 2016-02-03 (24 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160202)
PackageArchitec
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
Addressing the specific issue of not being able to use "ubuntu-bug linux", I've tried to recreate on two systems running xenial and a fresh install of xenial and was unsuccessful. We can see that apport in appor/ui.py has special casing for linux.
391 def run_report_ bug(self, symptom_ script= None): package == 'linux': packaging. get_kernel_ package( )
392 '''Report a bug.
...
441 # "Do what I mean" for filing against "linux"
442 if self.options.
443 self.cur_package = apport.
Then in apport/packaging.py we have:
621 def get_kernel_ package( self):
622 '''Return the actual Linux kernel package name.
623
624 This is used when the user reports a bug against the "linux" package.
625 '''
626 # TODO: Ubuntu specific
627 return 'linux-image-' + os.uname()[2]
Do you have linux-image- 4.4.0-2- generic installed?