Invoking "python" brings inappropriate response from command-not-found when python3 installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Triaged
|
High
|
Dimitri John Ledkov | ||
Focal |
Triaged
|
High
|
Dimitri John Ledkov | ||
python3-defaults (Ubuntu) |
Triaged
|
Undecided
|
Unassigned | ||
Focal |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Ubuntu Mate 20.04 development release, upgraded from 19.10. I don't have python 2.7 installed, but have python 3 installed as per default.
Please see ascii-cast at https:/
Running `python` brings up text from command-not-found which suggests installing `python3` as a solution to the missing command. `python3` is already installed, is a later version than the one indicated by command-not-found and does not supply a binary or symlink named `python`.
$ apt policy python
python:
Installed: (none)
Candidate: (none)
Version table:
2.7.17-1 -1
100 /var/lib/
$ apt policy python3
python3:
Installed: 3.8.0-3
Candidate: 3.8.0-3
Version table:
*** 3.8.0-3 500
500 http://
100 /var/lib/
$ apt policy command-not-found
command-not-found:
Installed: 19.10.0
Candidate: 19.10.0
Version table:
*** 19.10.0 500
500 http://
500 http://
100 /var/lib/
I don't know whether this is a bug in python3 or command-not-found (the latter of which doesn't seem to have been updated for 20.04 yet). i don't know if it is intentional that `python3` will not provide a binary or symlink named `python`. if that is the case, the output of `command-not-found` should be updated to reflect that.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: python3 3.8.0-3
ProcVersionSign
Uname: Linux 5.4.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
CurrentDesktop: MATE
Date: Mon Feb 17 01:35:16 2020
InstallationDate: Installed on 2019-10-11 (128 days ago)
InstallationMedia: Ubuntu-MATE 19.10 "Eoan Ermine" - Beta amd64 (20190926.2)
SourcePackage: python3-defaults
UpgradeStatus: Upgraded to focal on 2020-02-07 (10 days ago)
tags: | added: champagne |
tags: | removed: champagne |
tags: | added: id-5e4eb982f81e3673a2d90aa6 |
$ apt policy python3- commandnotfound commandnotfound : gb.archive. ubuntu. com/ubuntu focal/main amd64 Packages gb.archive. ubuntu. com/ubuntu focal/main i386 Packages dpkg/status
python3-
Installed: 19.10.0
Candidate: 19.10.0
Version table:
*** 19.10.0 500
500 http://
500 http://
100 /var/lib/