Kernel ata exception — found workaround.

2010-07-20 2 min read Fedora Linux

I have been getting the below errors in my system for quite sometime now, I think since F9 or before that. The offending hardware is CD drive. I looked all around the net for a solution but did not find anything. Will keep looking to solve the problem. I found various solutions being suggested like adding noirq or nobiosirq or noacpi and such. None of this helped. So for now I am happy with turning off the haldaemon as soon as the system comes up. Problem: it takes lot of time to go down 🙁

Continue reading

Bash completion error — quote_readline.

2010-04-11 1 min read Bash

There is a problem with bash completion with quote_readline that causes the completion to fail. The problem is fixed in the bash completion package but there are still some other programs which are using the problematic code. Here is a way to find and resolve it.

First find the problematic program, most likely the recent one after which you started having the problems. Once that is found, find the file containing the definition of the function ”_filedirs()”. Now, delete this file and create a symbolic link to the bash_completion file in the /etc directory. If this file is not present then you need to install the bashcompletion package.

Continue reading

unbound variable – bash completion not working and having issues with other stuff like command not found.

2010-03-23 1 min read Bash Learning Linux

I generally use vi/vim for all my practical purposes of working with text files. And I have all the vi/vim plugins required to work with the files. This causes the following to be in the skeleton for all the bash scripts that I create:

set -o nounset                              # Treat unset variables as an error

With this all the unbound variables as errors and was problem with all the shell scripts that was being sourced in the startup of bash. So all I had to do was remove this from all the startup scripts and then from the skeleton of the bash script in vim :).

Continue reading

Packagekit Error

2010-02-04 1 min read Fedora

With the latest update on my Fedora 10(F10) I started getting this error when ever I wanted to use the gnome package kit (I was able to use yum though):
failed to get a TID: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface ”org.freedesktop.PackageKit.Transaction” member ”SetLocale” error name ”(unset)” destination ”org.freedesktop.PackageKit”) (0)

I searched couple of forums but did not find any good resource on what was happening. Finally I decided to rollback Packagekit and dbus. And Yahoooooooooooo, it started working again.

Continue reading

internal error from PackageKit — packagekit Error Type: <type 'exceptions.TypeError'>

2009-11-25 1 min read Fedora

If you get the below error then there is a bug files <a href="https://bugzilla.redhat.com/show_bug.cgi?id=476352" target="_blank">here.

Error Type:
Error Value: &#8217;NoneType&#8217; object is unsubscriptable
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2280, in

main()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2277, in main
backend.dispatcher(sys.argv[1:])
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 600, in
dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 526, in
dispatch_command
self.refresh_cache()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1130, in
refresh_cache
self.yumbase.repos.populateSack(which=[repo.id], mdtype=&#8217;metadata&#8217;,
cacheonly=1)
File : /usr/lib/python2.5/site-packages/yum/repos.py, line 223, in
populateSack
self.doSetup()
File : /usr/lib/python2.5/site-packages/yum/repos.py, line 71, in doSetup
self.ayum.plugins.run(&#8217;postreposetup&#8217;)
File : /usr/lib/python2.5/site-packages/yum/plugins.py, line 178, in run
func(conduitcls(self, self.base, conf, **kwargs))
File : /usr/lib/yum-plugins/rpm-warm-cache.py, line 31, in postreposetup_hook
if commands[0] in (&#8217;upgrade&#8217;, &#8217;install&#8217;, &#8217;remove&#8217;):

Continue reading