package gconf2 3.2.6-3ubuntu1 failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gconf (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Traceback (most recent call last):
File "/usr/sbin/
trim(
File "/usr/sbin/
langs.
TypeError: 'str' does not support the buffer interface
dpkg: 处理软件包 gconf2 (--unpack)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
在处理时有错误发生:
update-
gconf2
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: gconf2 3.2.6-3ubuntu1
ProcVersionSign
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:
ErrorMessage: 子进程 已安装 post-installation 脚本 返回错误状态 1
InstallationDate: Installed on 2015-06-23 (1 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
RelatedPackageV
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)
tags: | removed: need-duplicate-check |
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