Kpackagekit ask to report some errors

Bug #438279 reported by starslights
538
This bug affects 101 people
Affects Status Importance Assigned to Milestone
packagekit (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: kpackagekit

Kpackagekit have ask to report a bug when it was on do the last update on Karmic

Error Type:
Error Value: "The cache has no package named 'dpkg-exec'"
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1948, in
main()
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1945, in main
run(args, options.single)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1907, in run
backend.dispatcher(args)
File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 647, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 611, in dispatch_command
self.update_packages(package_ids)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 166, in _unlock_cache_afterwards
func(*args, **kwargs)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1095, in update_packages
if not self._commit_changes(): return False
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1620, in _commit_changes
PackageKitInstallProgress(self, install_range))
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 314, in commit
res = self.installArchives(pm, installProgress)
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 289, in installArchives
res = installProgress.run(pm)
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 329, in run
res = self.waitChild()
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 298, in waitChild
self.updateInterface()
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 398, in updateInterface
apt.progress.InstallProgress.updateInterface(self)
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 277, in updateInterface
status_str.strip())
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 372, in statusChange
pkg = self._backend._cache[pkg_name]
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 142, in __getitem__
raise KeyError('The cache has no package named $r' $ key)

ProblemType: Bug
Architecture: amd64
Date: Mon Sep 28 19:37:05 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: kpackagekit 0.4.2-0ubuntu2
ProcEnviron:
 LANGUAGE=
 LANG=fr_CH.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: kpackagekit
Uname: Linux 2.6.31-11-generic x86_64

Related branches

Revision history for this message
starslights (starslights) wrote :
affects: kpackagekit (Ubuntu) → packagekit (Ubuntu)
Revision history for this message
Vincent DAVY (vincentdavy) wrote :

got the same error
my trace :
Error Type:
Error Value: "The cache has no package named 'dpkg-exec'"
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1948, in
main()
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1945, in main
run(args, options.single)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1907, in run
backend.dispatcher(args)
File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 647, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 567, in dispatch_command
self.remove_packages(allowdeps, package_ids)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 166, in _unlock_cache_afterwards
func(*args, **kwargs)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 882, in remove_packages
install_range=(10,90)):
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1620, in _commit_changes
PackageKitInstallProgress(self, install_range))
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 314, in commit
res = self.installArchives(pm, installProgress)
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 289, in installArchives
res = installProgress.run(pm)
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 329, in run
res = self.waitChild()
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 298, in waitChild
self.updateInterface()
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 398, in updateInterface
apt.progress.InstallProgress.updateInterface(self)
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 277, in updateInterface
status_str.strip())
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 372, in statusChange
pkg = self._backend._cache[pkg_name]
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 142, in __getitem__
raise KeyError('The cache has no package named $r' $ key)

Changed in packagekit (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Yasibrah (yasir-seyed) wrote :

Same problem on a fresh installation of Kubuntu Karmic Alpha 6.
My trace is same as starslights'.

Revision history for this message
benzimmer (bz) wrote :

Same here, on a fresh Alpha 6 install with all updates applied.
Same trace as the Bugreporter.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

I have a theory that this crash could be caused by a sudden lack of root priviledges, say bug 436748. Is is possible that losing policykit during the middle of an upgrade could immediately halt the upgrade in such a way that we receive "cannot write to standard output" errors and the PackageKit traceback that we are seeing?

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 438279] Re: Kpackagekit ask to report some errors

On Fri Oct 02 13:20:03 UTC 2009 Jonathan Thomas wrote:
> I have a theory that this crash could be caused by a sudden lack of root
> priviledges, say bug 436748. Is is possible that losing policykit during
> the middle of an upgrade could immediately halt the upgrade in such a
> way that we receive "cannot write to standard output" errors and the
> PackageKit traceback that we are seeing?

What do you mean by "losing policykit?"

Thanks,

James

Revision history for this message
Tudor M Pop (tzepu) wrote :

this is what i get on a fresh install of kubuntu 9.10 beta
Error Type:
Error Value: "The cache has no package named 'dpkg-exec'"
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1948, in
main()
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1945, in main
run(args, options.single)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1907, in run
backend.dispatcher(args)
File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 647, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 553, in dispatch_command
self.install_packages(package_ids)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 166, in _unlock_cache_afterwards
func(*args, **kwargs)
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1201, in install_packages
if not self._commit_changes(): return False
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1620, in _commit_changes
PackageKitInstallProgress(self, install_range))
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 314, in commit
res = self.installArchives(pm, installProgress)
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 289, in installArchives
res = installProgress.run(pm)
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 329, in run
res = self.waitChild()
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 298, in waitChild
self.updateInterface()
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 398, in updateInterface
apt.progress.InstallProgress.updateInterface(self)
File : /usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 277, in updateInterface
status_str.strip())
File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 372, in statusChange
pkg = self._backend._cache[pkg_name]
File : /usr/lib/python2.6/dist-packages/apt/cache.py, line 142, in __getitem__
raise KeyError('The cache has no package named $r' $ key)

about policykit, i just solved the issue regarding kpackagekit telling me that i have no privileges by installing manually policykit
best regards

Revision history for this message
Raz Ziv (raz-ziv) wrote :

From my unlearned investigation this seems to be related to this change in apt 0.7.22:
"...
  * apt-pkg/deb/dpkgpm.cc:
...
    - send "dpkg-exec" message on the status fd when dpkg is run
..."
I think that method "/usr/lib/python2.6/dist-packages/apt/progress/__init__.py, line 277, in updateInterface" wrongly parses this message as a regular package installation status. The message causing this error is:
"pmstatus:dpkg-exec:0:Running dpkg"
HTH

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package packagekit - 0.4.9+20090825-0ubuntu5

---------------
packagekit (0.4.9+20090825-0ubuntu5) karmic; urgency=low

  [ Michael Vogt ]
  * debian/patches/fix_progress_crash.patch:
    - fix crash when dpkg trigger messages are send (LP: #438279)

  [ Sebastian Heinlein ]
  * debian/rules, debian/packagekit.install: Don't build and install the GTK
    module which allows to install required fonts, since it isn't support by
    any of the shipped backends.

 -- Michael Vogt <email address hidden> Mon, 05 Oct 2009 08:59:03 +0200

Changed in packagekit (Ubuntu):
status: Confirmed → Fix Released
Changed in packagekit (Ubuntu):
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Gah, the patch was never merged upstream and has reappeared in PackageKit 0.5.x.

Changed in packagekit (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package packagekit - 0.5.6-0ubuntu2

---------------
packagekit (0.5.6-0ubuntu2) lucid; urgency=low

  * Re-add fix_progress_crash.patch. Never was upstreamed and apparently
    was dropped in 0.5.x (LP: #438279)
 -- Jonathan Thomas <email address hidden> Mon, 15 Feb 2010 21:34:00 -0500

Changed in packagekit (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.