Hi everyone,
I am running 11.0 and don’t wish to upgrade to 11.1 at this time, though I would like to implement the command-not-found feature of it. I seem to have run into a snag on implementing it however - rather surprising as it should be pretty simple, but still - I can’t seem to get it to work.
I was working from command-not-found for openSUSE | sticklog and the repos of Pavol Rusnak
I found the one-click install from Software.openSUSE.org fails, but was able to manually get the packages I needed from ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/prusnak:/scout and others.
I did contact Pavol Rusnak (who created the command-not-found package) and he made the suggestion that I was not running the patched bash required, but in fact I am running it. I also appear to have all the required packages, etc.
Specifics:
The packages I have are:
Callandor:~ # rpm -qa | grep -e scout -ecommand-not-found -e python-satsolver
scout-bin-suse110-2008.10.07-15.1
python-satsolver-0.13.0-20.1
command-not-found-0.1.0-45.1
scout-0.1.0-45.1
Callandor:~ # rpm -q --provides bash
bash(CommandNotFound)
bash = 3.2-148.1
I have modified my /etc/bash.bashrc.local and my local bash profile for root and a user account:
Callandor:/usr/src # cat /etc/bash.bashrc.local
if -f /etc/bash_command_not_found ]; then
. /etc/bash_command_not_found
fi
Despite the above, command-not-found does not work.
I believe the issue may be that scout does not appear to be working correctly?
<code>
Callandor:~ # scout bin -l
Traceback (most recent call last):
File “/usr/bin/scout”, line 10, in <module>
ret = scout.ScoutCore.run()
File “/usr/lib/python2.5/site-packages/scout/init.py”, line 942, in run
result = module.ScoutModule().main(clp.module_args)
File “/usr/lib/python2.5/site-packages/scout/bin.py”, line 61, in init
self._repo_list = scout.RepoList(self._cls.name, (‘zypp’, ))
File “/usr/lib/python2.5/site-packages/scout/init.py”, line 690, in init
self._repos_conf = RepoConfigReader().read()
File “/usr/lib/python2.5/site-packages/scout/init.py”, line 669, in read
self.parser.read([os.path.join(Config.data_path, Config.config_file), ])
File “/usr/lib/python2.5/ConfigParser.py”, line 267, in read
self._read(fp, filename)
File “/usr/lib/python2.5/ConfigParser.py”, line 490, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: /usr/share/scout/repos.conf
[line 7]: '[jpackage50
’
[line 22]: 'packman111
’
</code>
I am running the stock Suse Xen kernel:
Callandor:/usr/src # uname -a
Linux Callandor 2.6.25.18-0.2-xen #1 SMP 2008-10-21 16:30:26 +0200 i686 i686 i386 GNU/Linux
The other odd thing is that even if I source the file manually . /etc/bash_command_not_found I does not see any python processes running - which seems odd. I would think I would see this run in the background continuously to provide the command-not-found parsing functions.
Perhaps I am just missing the boat on this, but it just seems like this should work.
Mr. Rusnak was kind to respond once, however I thought I would get the input of the community members here as well as I am not sure he will have the time to assist me further.
Any suggestions are welcome! Has anyone else gotten this to work on 11.0?
Thanks,
Pete