Can't update click if we have previously installed packages for users that were later deleted

Bug #1334611 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Earlier I tried to install a new version of click and was met with the following error:

brendand@brendand-yoga:~$ sudo apt-get install click
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  click
  1 to upgrade, 0 to newly install, 0 to remove and 790 not to upgrade.
  4 not fully installed or removed.
  Need to get 0 B/13.4 kB of archives.
  After this operation, 0 B of additional disk space will be used.
  (Reading database ... 351473 files and directories currently installed.)
  Preparing to unpack .../click_0.4.28_amd64.deb ...
  Traceback (most recent call last):
    File "/usr/bin/click", line 86, in <module>
      sys.exit(main())
    File "/usr/bin/click", line 82, in main
      return mod.run(args)
    File "/usr/lib/python3/dist-packages/click/commands/hook.py", line 63, in run
      getattr(hook, per_hook_subcommands[subcommand])(user_name=None)
    gi._glib.GError: Cannot get password file entry for redacted: Success
    dpkg: warning: subprocess old pre-removal script returned error exit status 1
    dpkg: trying script from the new package instead ...
  Traceback (most recent call last):
    File "/usr/bin/click", line 86, in <module>
      sys.exit(main())
    File "/usr/bin/click", line 82, in main
      return mod.run(args)
    File "/usr/lib/python3/dist-packages/click/commands/hook.py", line 63, in run
      getattr(hook, per_hook_subcommands[subcommand])(user_name=None)
   gi._glib.GError: Cannot get password file entry for redacted: Success
   dpkg: error processing archive /var/cache/apt/archives/click_0.4.28_amd64.deb (--unpack):
   subprocess new pre-removal script returned error exit status 1
   Errors were encountered while processing:
   /var/cache/apt/archives/click_0.4.28_amd64.deb
   E: Sub-process /usr/bin/dpkg returned an error code (1)

As per Colin Watsons request, here are the contents of /opt/click.ubuntu.com: http://paste.ubuntu.com/7705310/

Related branches

Colin Watson (cjwatson)
affects: click → click (Ubuntu)
Changed in click (Ubuntu):
status: New → Triaged
importance: Undecided → High
Michael Vogt (mvo)
Changed in click (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click - 0.4.30

---------------
click (0.4.30) utopic; urgency=medium

  [ Colin Watson ]
  * Add many more unit tests to fill in some gaps in the coverage report.

  [ Michael Vogt ]
  * Exclude non-existing users from User.get_user_names()
    (LP: #1334611)

  [ Zoltan Balogh ]
  * Add a set of APIs to the 14.10 frameworks. Add ubuntu-ui-toolkit-doc to
    all frameworks.

  [ Ubuntu daily release ]
  * New rebuild forced
 -- Ubuntu daily release <email address hidden> Wed, 06 Aug 2014 23:33:22 +0000

Changed in click (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.