packagekit postinst is restarting packagekit:

deb-systemd-invoke try-restart 'packagekit-offline-update.service'
'packagekit.service'

so yes, that's what's causing the issue. I don't think I agree with the
importance High, though. PackageKit is not normally used for upgrading,
only for installing and removing packages. You have to manually force
this by using pkcon, hence it should be Medium I think.

** Also affects: packagekit (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: packagekit (Ubuntu)
       Status: New => Triaged

** Changed in: packagekit (Ubuntu Bionic)
       Status: New => Triaged

** Changed in: packagekit (Ubuntu)
   Importance: High => Medium

** Changed in: packagekit (Ubuntu Bionic)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to packagekit in Ubuntu.
https://bugs.launchpad.net/bugs/1790613

Title:
  Regression: packagekit crashes updating itself to
  1.1.9-1ubuntu2.18.04.1

Status in packagekit package in Ubuntu:
  Triaged
Status in packagekit source package in Bionic:
  Triaged

Bug description:
  Bionic: 18.04
  Version: 1.1.9-1ubuntu2 upgrading itself to 1.1.9-1ubuntu2.18.04.1

  Updating with pkcon upgrade or plasma-discover crashes packagekit mid
  transaction, requiring user intervention on the command line.

  In plasma-discover the gui reports the crash briefly, but then stalls
  in apparent mid update, requiring the user to force close it and again
  resolve the issue on the command line.

  Example transactions:

  $ pkcon update
  Getting updates               [=========================]         
  Finished                      [=========================]         
  Loading cache                 [=========================]         
  Testing changes               [=========================]         
  Finished                      [                         ] (0%)  
  The following packages have to be updated:
   gir1.2-packagekitglib-1.0-1.1.9-1ubuntu2.18.04.1.amd64 GObject introspection 
data for the PackageKit GLib library
   libpackagekit-glib2-18-1.1.9-1ubuntu2.18.04.1.amd64    Library for accessing 
PackageKit using GLib
   packagekit-1.1.9-1ubuntu2.18.04.1.amd64        Provides a package management 
service
   packagekit-tools-1.1.9-1ubuntu2.18.04.1.amd64  Provides PackageKit 
command-line tools
  Proceed with changes? [N/y] y

                                [=========================]         
  Updating packages             [=========================]         
  Waiting for authentication    [=========================]         
  Loading cache                 [=========================]         
  Running                       [=========================]         
  Installing packages           [====================     ] (80%)  The daemon 
crashed mid-transaction!

  $ sudo apt-get upgrade 
  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to 
correct the problem.

  and obviously after that doing anything meaningful with packagekit
  like installing a package fails

  $pkcon install kaffeine
  Resolving                     [=========================]         
  Testing changes               [=========================]         
  Finished                      [                         ] (0%)  
  The following packages have to be installed:
   kaffeine-2.0.14-1.amd64        versatile media player for KDE
  Proceed with changes? [N/y] y

                                [=========================]         
  Installing                    [=========================]         
  Waiting for authentication    [=========================]         
  Waiting for package manager lock[=========================]         
  Finished                      [=========================]         
  Fatal error: E: dpkg was interrupted, you must manually run 'dpkg --configure 
-a' to correct the problem.
  --- 
  ProblemType: Bug
  ApportVersion: 2.20.9-0ubuntu7.2
  Architecture: amd64
  CurrentDesktop: KDE
  DistroRelease: Ubuntu 18.04
  InstallationDate: Installed on 2018-06-26 (69 days ago)
  InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64 
(20180426)
  Package: packagekit 1.1.9-1ubuntu2.18.04.1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 4.15.0-33.36-generic 4.15.18
  Tags:  bionic
  Uname: Linux 4.15.0-33-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1790613/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to