command not found – packagekit plugin

2010-05-27 0 min read Fedora Linux
\"Example
Image via Wikipedia

If you run into problems where you run some command and the command is not found and you have to install it and run the program again then why not use the command not found <a class="zem_slink freebase/en/plugin" title="Plug-in (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Plug-in_%28computing%29">plugin for Packagekit. Here is the description:

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 File \”/usr/share/PackageKit/helpers/yum/yumBackend.py\”, line 1215, in _get_depends_not_installed – Resolved

2010-02-04 1 min read Fedora

In packagekit, if you getting the error below:

Traceback (most recent call last):
File &#8221;/usr/share/PackageKit/helpers/yum/yumBackend.py&#8221;, line 1215, in _get_depends_not_installed
rc, msgs =  self.yumbase.buildTransaction()
File &#8221;/usr/lib/python2.6/site-packages/yum/__init__.py&#8221;, line 719, in buildTransaction
self.plugins.run(&#8217;postresolve&#8217;, rescode=rescode, restring=restring)
File &#8221;/usr/lib/python2.6/site-packages/yum/plugins.py&#8221;, line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File &#8221;/usr/lib/yum-plugins/remove-with-leaves.py&#8221;, line 71, in postresolve_hook
if opts.remove_leaves or remove_always:
AttributeError: &#8217;NoneType&#8217; object has no attribute &#8217;remove_leaves&#8217;

then you can resolve it. The solution to the problem is there in the traceback, luckily this time.

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 &#8221;org.freedesktop.PackageKit.Transaction&#8221; member &#8221;SetLocale&#8221; error name &#8221;(unset)&#8221; destination &#8221;org.freedesktop.PackageKit&#8221;) (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