default of python 2.5 breaks CommandNotFound import
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Fix Released
|
Undecided
|
Michael Vogt |
Bug Description
Binary package hint: command-not-found
mgundlach@ubuntu:~$ apt-cache policy command-not-found
command-not-found:
Installed: 0.2.34ubuntu3
Candidate: 0.2.34ubuntu3
Version table:
*** 0.2.34ubuntu3 0
500 http://
100 /var/lib/
mgundlach@ubuntu:~$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
This is related to https:/
mgundlach@ubuntu:~$ sudo rm /usr/bin/python && sudo ln -s /usr/bin/python2.5 /usr/bin/python
mgundlach@ubuntu:~$ l
Traceback (most recent call last):
File "/usr/lib/
import CommandNotFound
ImportError: No module named CommandNotFound
mgundlach@ubuntu:~$ sudo rm /usr/bin/python && sudo ln -s /usr/bin/python2.6 /usr/bin/python
mgundlach@ubuntu:~$ l
bash: l: command not found
mgundlach@ubuntu:~$
Interestingly, I tried modifying /usr/lib/
Related branches
Changed in command-not-found (Ubuntu): | |
assignee: | nobody → Michael Vogt (mvo) |
status: | Confirmed → Fix Committed |
With digging, I found the problem in /etc/bash.bashrc . A patch is attached that fixes the problem.