Bug 192910 - kpackagekit fails on some packages, though they can be installed by other means
Summary: kpackagekit fails on some packages, though they can be installed by other means
Status: RESOLVED NOT A BUG
Alias: None
Product: kpackagekit
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Steven M. Parrish
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-16 18:41 UTC by ben chang
Modified: 2009-05-21 16:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ben chang 2009-05-16 18:41:32 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

Downloaded a .deb for a third-party application (pd-extended, from www.puredata.info).  Installing with kpackagekit fails, with the message "Sorry, an error occurred."  Command line gives a better idea of what went wrong:

----------------
kpackagekit Pd-0.41.4-extended-rc2-ubuntu-jaunty-i386.deb 
ben@bastet:~/installers$ isFIle                                                    
New transaction with tid "/54_aecedcea_data"                                       
KPackageKit(17057) KpkIcons::actionIcon: action unrecognised:  9                   
enumFromString ( State ) : converted "" to "" , enum value -1                      
KPackageKit(17057) KpkTransaction::errorCode: errorCode:  3 "Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/packagekit/daemonBackend.py", line 109, in run        
    threading.Thread.run(self)                                                                 
  File "/usr/lib/python2.6/threading.py", line 477, in run                                     
    self.__target(*self.__args, **self.__kwargs)                                               
  File "/usr/lib/packagekit/aptDBUSBackend.py", line 168, in wrapper                           
    func(*args, **kwargs)                                                                      
  File "/usr/lib/packagekit/aptDBUSBackend.py", line 1263, in doInstallFiles                   
    if not deb.checkDeb():                                                                     
  File "/usr/lib/packagekit/debfile.py", line 365, in checkDeb                                 
    if not self.checkConflicts():                                                              
  File "/usr/lib/packagekit/debfile.py", line 313, in checkConflicts                           
    if self._checkConflictsOrGroup(or_group):                                                  
  File "/usr/lib/packagekit/debfile.py", line 197, in _checkConflictsOrGroup                   
    if self.pkgName == pkg.name:                                                               
AttributeError: 'DebPackage' object has no attribute 'pkgName'                                 
"                                                                                              
KPackageKit(17057) KpkTransaction::finished: Failed.                                           
KPackageKit(17057) KpkTransaction::finished: Yep, we failed.                                   
KPackageKit(17057) KpkInstallFiles::installFilesFinished: Finished.    
-------------------


Installing the same package using GDebi works fine, with no errors or warnings.  Probably the error is really in the package - should KPackageKit overlook it?
Comment 1 ben chang 2009-05-21 15:59:28 UTC
Installing Java (sun-java6-jre, sun-java6-plugin, etc.), also fails.  KPackageKit claims unresolvable dependencies and crashes, requiring apt-get -f install to repair.  Synaptic or just apt-get are able to install them without complaint.
Comment 2 Daniel Nicoletti 2009-05-21 16:47:56 UTC
Sorry but this bug is your Distro fault Ubuntu.
Ubuntu ships experimental stuff as stable, your backend cannot deal with all .deb packages that's why KPackageKit says it failed to install.
I'm working on a better approach for Debian, but ubuntu should never release the current code imo. I receive bug like this all day :(
Cheers,
Daniel