command-not-found missing versioned dependency on python3-commandnotfound

Bug #1753858 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Fix Released
High
Unassigned

Bug Description

command-not-found and python3-commandnotfound should generally be updated at the same time, but cnf doesn't have a versioned dependency on the python3 package. If an older python3-commandnotfound is installed, you get:

Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.3
Python version: 3.6.4 final 0
Distributor ID: Ubuntu
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
Codename: bionic
Exception information:

type object 'CommandNotFound' has no attribute 'CommandNotFound'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 89, in main
    cnf = CommandNotFound.CommandNotFound(options.data_dir)
AttributeError: type object 'CommandNotFound' has no attribute 'CommandNotFound'

Revision history for this message
Steve Langasek (vorlon) wrote :

A versioned dep on command-not-found-data is also needed, as the data file format has changed incompatibly.

Michael Vogt (mvo)
Changed in command-not-found (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

command-not-found (18.04.0~pre2) bionic; urgency=medium

  * add versionized dependencies from command-not-found on
    command-not-found-data and python3-commandnotfound
  * update changelog to the latest agreement

 -- Michael Vogt <email address hidden> Wed, 07 Mar 2018 14:58:22 +0100

Changed in command-not-found (Ubuntu):
status: Triaged → Fix Released
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.