package python3 3.2.3-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4

Bug #1024204 reported by Anders Kaseorg
84
This bug affects 18 people
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Fix Released
Critical
Scott Kitterman

Bug Description

Setting up python3 (3.2.3-3) ...
running python rtupdate hooks for python3.2...
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 182, in <module>
    main()
  File "/usr/bin/py3clean", line 174, in main
    files = files & pfiles
TypeError: unsupported operand type(s) for &: 'generator' and 'generator'
error running python rtupdate hook screen-resolution-extra
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 182, in <module>
    main()
  File "/usr/bin/py3clean", line 174, in main
    files = files & pfiles
TypeError: unsupported operand type(s) for &: 'generator' and 'generator'
error running python rtupdate hook ubuntu-drivers-common
dpkg: error processing python3 (--configure):
 subprocess installed post-installation script returned error exit status 4

ProblemType: Package
DistroRelease: Ubuntu 12.10
Package: python3 3.2.3-3
ProcVersionSignature: Ubuntu 3.5.0-4.4-generic 3.5.0-rc6
Uname: Linux 3.5.0-4-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.3-0ubuntu4
Architecture: amd64
Date: Fri Jul 13 01:02:18 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 4
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
PackageArchitecture: all
SourcePackage: python3-defaults
Title: package python3 3.2.3-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Anders Kaseorg (andersk) wrote :
Revision history for this message
Scott Kitterman (kitterman) wrote :

Fixed already. Should hit the archive.ubuntu.com in about 15 minutes.

python3-defaults (3.2.3-3ubuntu1) quantal; urgency=high

  [ Piotr Ożarowski ]
  * py3clean: really close #681389 (LP: #1024016)

 -- Scott Kitterman <email address hidden> Fri, 13 Jul 2012 00:57:43 -0400

Changed in python3-defaults (Ubuntu):
assignee: nobody → Scott Kitterman (kitterman)
importance: Undecided → Critical
status: New → Fix Released
Revision history for this message
asala (asala) wrote :

Well, something very related (for a novice, at least) occurred to me in: Bug #1244198
so it seems some regression might be out there.

My output when upgrading from 13.04 to 13.10...
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python3 (3.3.2-14ubuntu1) ...
running python rtupdate hooks for python3.3...
dpkg-query: package 'ubiquity-frontend-gtk' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 200, in <module>
    main()
  File "/usr/bin/py3clean", line 186, in main
    pfiles = set(dpf.from_package(options.package))
  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of ubiquity-frontend-gtk
error running python rtupdate hook ubiquity-frontend-gtk
dpkg-query: package 'ubiquity' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 200, in <module>
    main()
  File "/usr/bin/py3clean", line 186, in main
    pfiles = set(dpf.from_package(options.package))
  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of ubiquity
error running python rtupdate hook ubiquity
dpkg: error processing python3 (--configure):
 subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of foomatic-db-compressed-ppds:
 foomatic-db-compressed-ppds depends on python3; however:
  Package python3 is not configured yet.

So, I'm stuck for the moment with a non-functional system.

Revision history for this message
asala (asala) wrote :

Seems that the 13.04 to 13.10 upgrade script didn't update ubiquity-frontend-gtk. I changed Bug #1244198 which I reported as a python bug to be an ubiquity bug. However, I'm not a developer so I don't really know what I am doing but
 sudo apt-get install ubiquity-frontend-gtk
seemed to solve everything.

Revision history for this message
Patryk Duński (d+ubuntu) wrote :

I have the same problem with upgrading ubuntu server from 14.04 to 14.10.

Unpacking ubuntu-minimal (1.327) ...
Setting up python3 (3.4.2-1) ...
running python rtupdate hooks for python3.4...
dpkg-query: package 'rhythmbox-plugin-magnatune' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 200, in <module>
    main()
  File "/usr/bin/py3clean", line 186, in main
    pfiles = set(dpf.from_package(options.package))
  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of rhythmbox-plugin-magnatune
error running python rtupdate hook rhythmbox-plugin-magnatune
dpkg-query: package 'rhythmbox-plugin-zeitgeist' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 200, in <module>
    main()
  File "/usr/bin/py3clean", line 186, in main
    pfiles = set(dpf.from_package(options.package))
  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)

Revision history for this message
MBWD (xmbwd) wrote :
Download full text (23.2 KiB)

I am getting a similar error after upgrading from 14.10 to 15.04. The error reported is as follows (installing 'rhythmbox-plugin-magnatune' does not work -- it won't install):

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
93 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3 (3.4.3-1) ...
running python rtupdate hooks for python3.4...
dpkg-query: package 'rhythmbox-plugin-magnatune' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 210, in <module>
    main()
  File "/usr/bin/py3clean", line 196, in main
    pfiles = set(dpf.from_package(options.package))
  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of rhythmbox-plugin-magnatune
error running python rtupdate hook rhythmbox-plugin-magnatune
dpkg: error processing package python3 (--configure):
 subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of python3-apt:
 python3-apt depends on python3 (<< 3.5); however:
  Package python3 is not configured yet.
 python3-apt depends on python3 (>= 3.4~); however:
  Package python3 is not configured yet.

dpkg: error processing package python3-apt (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of language-selector-common:
 language-selector-common depends on python3; however:
  Package python3 is not configured yet.
 language-selector-common depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 language-selector-common depends on python3-apt (>= 0.7.12.0); however:
  Package python3-apt is not configured yet.

dpkg: error processing package language-selector-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-drivers-common:
 ubuntu-drivers-common depends on python3; however:
  Package python3 is not configured yet.
 ubuntu-drivers-common depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 ubuntu-drivers-common depends on python3-apt; however:
  Package python3-apt is not configured yet.

dpkg: error processing package ubuntu-drivers-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-notifier-common:
 update-notifier-common depends on python3:any; however:
  Package python3 is not configured yet.
 update-notifier-common depends on python3-apt; however:
  Package python3-apt is not configured yet.

dpkg: error processing package update-notifier-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-distupgrade:
 python3-distupgrade depends on python3:any (>= 3.3.2-2~); however:
  Package ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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