Public bug reported: Binary package hint: command-not-found
I know this is low on the prioirty list and indicative of my bad typing skillz but all the same I thought I should report it. This is not a graceful way of handling an error condition. I need to manually control my /etc/apt/apt.conf file with a Proxy setting because of th e nature of my companies Internet access control. If I have the proxy setting commented out and I type in an unknown command, "command-not-found" seems to have a problem parsing the apt.conf file and barfs. Output is below. ifocnfig -a KABOOOM!!! Whoops, command-not-found has crashed! Please file a bug report at: https://bugs.launchpad.net/ubuntu/+source/command-not-found Please include the following information with the report: E:Syntax error /etc/apt/apt.conf:1: Unsupported directive 'Acquire::http::Proxy' Traceback (most recent call last): File "/usr/lib/command-not-found", line 24, in <module> CommandNotFound(options.data_dir).advise(args[0]) File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", line 72, in __init__ self.sources_list = self._getSourcesList() File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", line 93, in _getSourcesList apt_pkg.init() SystemError: E:Syntax error /etc/apt/apt.conf:1: Unsupported directive 'Acquire::http::Proxy' Python version: 2.5.1 final 0 bash: ifocnfig: command not found cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=7.10 DISTRIB_CODENAME=gutsy DISTRIB_DESCRIPTION="Ubuntu 7.10" apt-cache policy command-not-found command-not-found: Installed: 0.2.8ubuntu2 Candidate: 0.2.8ubuntu2 Version table: *** 0.2.8ubuntu2 0 500 http://us.archive.ubuntu.com gutsy/main Packages 100 /var/lib/dpkg/status ** Affects: command-not-found (Ubuntu) Importance: Undecided Status: New -- unable to handle error-condition: bad proxy setting https://bugs.launchpad.net/bugs/200579 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
