Only half of this was a duplicate of bug 561046. I’ve repurposed this bug for the other half and unmarked it as duplicate.
** Summary changed: - command_not_found_handle misbehaves when command-not-found is uninstalled + command_not_found_handle shows no errors when command-not-found is uninstalled ** Description changed: Binary package hint: bash There are two problems with the command_not_found_handle hook in /etc/bash.bashrc: - • If command-not-found is uninstalled but command-not-found-data remains - installed, then bad commands yield a mysterious python error: - - and...@balanced-tree:~$ badcommand - /usr/bin/python: can't find '__main__.py' in '/usr/share/command-not-found' - and...@balanced-tree:~$ - - because /usr/share/command-not-found is an executable directory, instead - of an executable Python script that the function seems to be expecting. + • [The first one was a dupe of bug 561046, removed.] • If both packages are uninstalled but a shell remains open from when one of them was installed, then bad commands yield no error message at all: and...@balanced-tree:~$ badcommand and...@balanced-tree:~$ ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: bash 4.1-2ubuntu2 ProcVersionSignature: Ubuntu 2.6.32-20.29-generic 2.6.32.11+drm33.2 Uname: Linux 2.6.32-20-generic x86_64 NonfreeKernelModules: openafs wl nvidia Architecture: amd64 Date: Sun Apr 11 22:57:27 2010 EcryptfsInUse: Yes InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate amd64 (20091020.3) ProcEnviron: - PATH=(custom, user) - LANG=en_US.utf8 - SHELL=/bin/bash + PATH=(custom, user) + LANG=en_US.utf8 + SHELL=/bin/bash SourcePackage: bash ** Description changed: Binary package hint: bash There are two problems with the command_not_found_handle hook in /etc/bash.bashrc: • [The first one was a dupe of bug 561046, removed.] - • If both packages are uninstalled but a shell remains open from when - one of them was installed, then bad commands yield no error message at - all: + • If both command-not-found and command-not-found-data are uninstalled + but a shell remains open from when command-not-found was installed, then + bad commands yield no error message at all: and...@balanced-tree:~$ badcommand and...@balanced-tree:~$ ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: bash 4.1-2ubuntu2 ProcVersionSignature: Ubuntu 2.6.32-20.29-generic 2.6.32.11+drm33.2 Uname: Linux 2.6.32-20-generic x86_64 NonfreeKernelModules: openafs wl nvidia Architecture: amd64 Date: Sun Apr 11 22:57:27 2010 EcryptfsInUse: Yes InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate amd64 (20091020.3) ProcEnviron: PATH=(custom, user) LANG=en_US.utf8 SHELL=/bin/bash SourcePackage: bash ** This bug is no longer a duplicate of bug 561046 [lucid] command-not-found can't be removed properly using apt -- command_not_found_handle shows no errors when command-not-found is uninstalled https://bugs.launchpad.net/bugs/561155 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
