package gconf2 3.2.6-3ubuntu1 failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1

Bug #1468199 reported by 罗颉
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gconf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/sbin/gconf-schemas", line 125, in <module>
    trim(os.path.join(defaults_dest,"%gconf-tree.xml"), get_valid_languages())
  File "/usr/sbin/gconf-schemas", line 18, in get_valid_languages
    langs.add(l.split('_')[0])
TypeError: 'str' does not support the buffer interface
dpkg: 处理软件包 gconf2 (--unpack)时出错:
 子进程 已安装 post-installation 脚本 返回错误状态 1
在处理时有错误发生:
 update-notifier-common
 gconf2
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: gconf2 3.2.6-3ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-21.21-generic 3.19.8
Uname: Linux 3.19.0-21-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
Date: Wed Jun 24 14:26:54 2015
DuplicateSignature: package:gconf2:3.2.6-3ubuntu1:子进程 已安装 post-installation 脚本 返回错误状态 1
ErrorMessage: 子进程 已安装 post-installation 脚本 返回错误状态 1
InstallationDate: Installed on 2015-06-23 (1 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
RelatedPackageVersions:
 dpkg 1.17.25ubuntu1
 apt 1.0.9.7ubuntu4
SourcePackage: gconf
Title: package gconf2 3.2.6-3ubuntu1 failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
罗颉 (coolrly) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Antti Nilakari (andyn) wrote :

This happens if /usr/bin/python points to a Python 3 interpreter.

The gconf2 python scripts at /usr/sbin/gconf-schemas and /usr/bin/update-gconf-defaults expect a python2 environment.

One way to fix it in live is to edit those files and change the first line to #!/usr/bin/python2

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gconf (Ubuntu):
status: New → Confirmed
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.