When s390-tools-zkey package is not installed 'zkey -h' lists wrong package name in apt hint

Bug #1802462 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
Medium
Canonical Foundations Team
command-not-found (Ubuntu)
Fix Released
Medium
Steve Langasek
Cosmic
Fix Released
Undecided
Unassigned

Bug Description

[SRU Justification]
The contents of command-not-found-data in cosmic are out of date with respect to the archive, resulting in misleading suggestions offered to users for some commands.

[Test case]
1. Install command-not-found
2. . /etc/bash.bashrc
3. Install btrfs-progs.
4. Ensure that the package cloud-init is not installed.
5. Type 'btrfs-debug-tree'. Observe that bash suggests installing btrfs-progs, even though btrfs-progs is installed (and does not provide a btrfs-debug-tree command).
6. Type 'cloud-id'. Observe that bash returns the general 'command not found' error.
7. Install command-not-found from -proposed.
8. Type 'btrfs-debug-tree' again. Observe that bash correctly reports 'command not found'.
9. Type 'cloud-id' again. Observe that bash suggests to install the cloud-init package.

[Regression potential]
In the event that there is bad data in the database update, command-not-found may return wrong suggestions after this SRU. It is already doing so currently, and there are no known instances of bad data in the database updates, so this possibility is not a reason to block the SRU.

OS: Ubuntu 18.10 providing s390-tools_2.6.0-0ubuntu7_s390x.deb
When the 's390-tools-zkey' package is NOT installed, the installation hint given by zkey -h is not as expected

Environment:
IBM Z 13 or Z 14 LPAR or z/VM

Details
=======
On an IBM Z13 or Z14 based Ubuntu 18.10 system where the 'zkey' tool is not yet installed,
the installation hint given by zkey is misleading.
The hint should read: 'apt install s390-tools-zkey'

The apt-cache search for zkey displays the expected package name, though.

Ran the above install command which succeeded as expected, the zkey tool was available.

---uname output---
Linux system 4.18.0-10-generic #11-Ubuntu SMP Thu Oct 11 15:06:06 UTC 2018 s390x s390x s390x GNU/Linux

Machine Type = IBM Type: 3906 LIC Identifier: 505724ff5b747876

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 1.) Install Ubuntu 18.10 onto an LPAR or z/VM system
2.) Ensure the zkey tool is not installed
3.) run: zkey -h
# zkey -h

Command 'zkey' not found, but can be installed with:

apt install s390-tools

Userspace tool common name: apt

The userspace tool has the following bit modes: 64bit

Userspace rpm: s390-tools_2.6.0-0ubuntu7_s390x.deb

Userspace tool obtained from project website: na

*Additional Instructions for <email address hidden>:
-Attach ltrace and strace of userspace application.

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-172984 severity-medium targetmilestone-inin1810
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → linux (Ubuntu)
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Revision history for this message
Steve Langasek (vorlon) wrote :

This points to the fact that the command-not-found package was never uploaded to cosmic at time of beta release like it is supposed to be.

affects: linux (Ubuntu) → command-not-found (Ubuntu)
Changed in command-not-found (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
assignee: Skipper Bug Screeners (skipper-screen-team) → Steve Langasek (vorlon)
Steve Langasek (vorlon)
description: updated
description: updated
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello bugproxy, or anyone else affected,

Accepted command-not-found into cosmic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/command-not-found/18.10.0~pre2 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-cosmic to verification-done-cosmic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-cosmic. In either case, without details of your testing we will not be able to proceed.

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

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in command-not-found (Ubuntu Cosmic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-cosmic
tags: added: id-5be5e7bd932a8c3dfc675c8d
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: Triaged → In Progress
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2018-11-15 12:05 EDT-------
(In reply to comment #6)
> This points to the fact that the command-not-found package was never
> uploaded to cosmic at time of beta release like it is supposed to be.

Interesting - I found the -pre1 version of 'command-not-found' to be installed on our system:
# apt search command-not-found
Sorting... Done
Full Text Search... Done
command-not-found/cosmic,now 18.10.0~pre1 all [installed]
Suggest installation of packages in interactive bash sessions

command-not-found-data/cosmic,now 18.10.0~pre1 s390x [installed]
Set of data files for command-not-found.

packagekit-command-not-found/cosmic 1.1.10-1ubuntu7 s390x
Offer to install missing programs automatically

python3-commandnotfound/cosmic,now 18.10.0~pre1 all [installed]
Python 3 bindings for command-not-found.

# dpkg -l|grep command-not-found
ii command-not-found 18.10.0~pre1 all Suggest installation of packages in interactive bash sessions
ii command-not-found-data 18.10.0~pre1 s390x Set of data files for command-not-found.
ii python3-commandnotfound 18.10.0~pre1 all Python 3 bindings for command-not-found.

Running 'zkey -h' issued a help, but pointing to the wrong package:
# zkey -h

Command 'zkey' not found, but can be installed with:

apt install s390-tools.

Will test the -pre2 version as a next step.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2018-11-15 12:25 EDT-------
Hello Steve,

verified successfully the package hint for the 'zkey' tool is correct now.
Thanks for the fix.

To verify, I enabled the cosmic-proposed repositories and created a preferences file to limit updates to the command-not-found package. Next, I uninstalled the s390-tools-zkey package.

Ran 'apt-get update' and 'apt-get upgrade command-not-found' successfully:
...
Preparing to unpack .../05-command-not-found_18.10.0~pre2_all.deb ...
Unpacking command-not-found (18.10.0~pre2) over (18.10.0~pre1) ...
...
Preparing to unpack .../07-command-not-found-data_18.10.0~pre2_s390x.deb ...
Unpacking command-not-found-data (18.10.0~pre2) over (18.10.0~pre1) ...
...

# zkey -h

Command 'zkey' not found, but can be installed with:

apt install s390-tools-zkey

------- Comment From <email address hidden> 2018-11-15 12:26 EDT-------
Successfully verified the -proposed package.
Progressing the defect state to 'tested'.

Thanks,
Christian

Steve Langasek (vorlon)
tags: added: verification-done verification-done-cosmic
removed: verification-needed verification-needed-cosmic
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I'll accept it into -updates and then forward bin-copy to disco.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package command-not-found - 18.10.0~pre2

---------------
command-not-found (18.10.0~pre2) cosmic; urgency=medium

  * Update data for state as of release. LP: #1802462.

 -- Steve Langasek <email address hidden> Fri, 09 Nov 2018 12:17:44 -0800

Changed in command-not-found (Ubuntu Cosmic):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for command-not-found has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: In Progress → Fix Committed
Frank Heimes (fheimes)
Changed in command-not-found (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package command-not-found - 18.10.0~pre2

---------------
command-not-found (18.10.0~pre2) cosmic; urgency=medium

  * Update data for state as of release. LP: #1802462.

 -- Steve Langasek <email address hidden> Fri, 09 Nov 2018 12:17:44 -0800

Changed in command-not-found (Ubuntu):
status: Fix Committed → Fix Released
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: Fix Committed → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2018-11-23 10:36 EDT-------
IBM Bugzilla status-> closed, Fix Released by Canonical

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.