package colord 0.1.16-2 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
colord (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
Critical
|
Chris Halse Rogers |
Bug Description
[Impact]
Upgrades from 11.10 to 12.04 fail indicating "exit status 1" from installing/
[Discussion]
/var/lib/
addgroup --quiet --system scanner
Running it without the --quiet option reveals the error:
sudo addgroup --system scanner
addgroup: The group `scanner' already exists and is not a system group. Exiting.
So there's the problem: the group is already there but is not a system group. Taking a look at the group I see:
$ grep scanner /etc/group
scanner:
Indeed it is not a system group, and it only seems to be used by colord.
[Test Case]
1. Install Ubuntu 11.10
2. ???
3. Upgrade to Ubuntu 12.04
Expected: Successful upgrade with no errors
Actual: Upgrade hits this error - "package colord 0.1.16-2 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1"
[Workaround]
sudo delgroup scanner
sudo apt-get install -f
[Original Report]
No idea. The installation was going on and suddenly this message appears.
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: colord 0.1.16-2
ProcVersionSign
Uname: Linux 3.2.0-24-
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu6
Architecture: i386
Date: Fri Apr 27 18:46:43 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
SourcePackage: colord
Title: package colord 0.1.16-2 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-04-27 (0 days ago)
description: | updated |
Changed in colord (Ubuntu Precise): | |
assignee: | nobody → Canonical Desktop Team (canonical-desktop-team) |
tags: | added: rls-q-incoming |
Changed in colord (Ubuntu Precise): | |
milestone: | ubuntu-12.04.2 → ubuntu-12.04.3 |
Changed in colord (Ubuntu Precise): | |
status: | Triaged → Confirmed |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
Solution:
$ sudo delgroup scanner
$ sudo apt-get install colord
Details: dpkg/info/ colord. postinst) even if you run it manually. Taking a look inside, the first command is:
I'm seeing the same problem after upgrading to 12.04. There is no helpful output from the post install script (/var/lib/
addgroup --quiet --system scanner
which fails with no output (thanks to --quiet). Running without --quiet gives:
$ sudo addgroup --system scanner
addgroup: The group `scanner' already exists and is not a system group. Exiting.
So there's the problem: the group is already there but is not a system group. Taking a look at the group I see:
$ grep scanner /etc/group x:1001: colord
scanner:
Indeed it is not a system group, and it only seems to be used by colord. So I took the liberty of removing it:
$ sudo delgroup scanner
Removing group `scanner' ...
Done.
Then reinstalling colord:
$ sudo apt-get install colord
Reading package lists... Done
Building dependency tree
Reading state information... Done
colord is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up colord (0.1.16-2) ...
$
And viola, the problem is solved.