motion failed to install/upgrade : chown: invalid group: `motion:motion'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
motion (Debian) |
Fix Released
|
Unknown
|
|||
motion (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Karmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: motion
when ubuntu upgraded I lost my ATI driver and now motion fails to upgrade
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: motion 3.2.11-1ubuntu1
SourcePackage: motion
Title: package motion 3.2.11-1ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-13-generic i686
DESCRIPTION:
motion failed to install on Karmic with error
chown: invalid group: `motion:motion'
dpkg: error processing motion (--configure):
subprocess post-installation script returned error exit status 1
when running the post install script and for some reason user 'motion' exists but group 'motion' doesn't
TEST CASE:
# sudo adduser --no-create-home --disabled-password --system --ingroup nogroup motion
Adding system user `motion' (UID 103) ...
Adding new user `motion' (UID 103) with group `nogroup' ...
Not creating home directory `/home/motion'.
# apt-get install motion
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
mysql-client postgresql-client
The following NEW packages will be installed:
motion
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/293kB of archives.
After this operation, 897kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package motion.
(Reading database ... 202389 files and directories currently installed.)
Unpacking motion (from .../motion_
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up motion (3.2.11-2build1) ...
chown: invalid group: `motion:motion'
dpkg: error processing motion (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
motion
E: Sub-process /usr/bin/dpkg returned an error code (1)
#
FIX :
Submitted to Debian and patch available for Ubuntu motion 3.2.11-2build1
Replace the function 'id' with 'getent' to check if group motion exists.
summary: |
- motion install trouble + motion failed to install/upgrade : chown: invalid group: `motion:motion' |
Changed in motion (Ubuntu): | |
status: | New → Confirmed |
Changed in motion (Debian): | |
status: | Unknown → New |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in motion (Ubuntu): | |
status: | Fix Released → Fix Committed |
Changed in motion (Debian): | |
status: | New → Fix Released |
Hello, client' was still in black for me). Click on 'Apply' and watch and see if you receive any errors. When I did this, everything installed without any issues. Hope this helps!!!
I finally got 'motion' to install without any issues. What I did was Completely Remove 'motion' through Synaptic and reboot the computer. Reopen Synaptic, search for 'motion' and 'Mark for Installation'. Next right-click 'motion' again and highlight 'Mark Suggested for Installation' at the bottom of the menu. Click on anything in the new side menu in black letters ('postgresql-
Wolfo