package ruby-rvm 1.6.9-0hostname2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #963662 reported by ramarao kanneganti
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ruby-rvm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I am installing the package, I get the error:

dpkg-statoverride: error: syntax error: unknown group 'admin' in statoverride file
dpkg: error processing ruby-rvm (--configure):
 subprocess installed post-installation script returned error exit status 2

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: ruby-rvm 1.6.9-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-20.32-generic-pae 3.2.12
Uname: Linux 3.2.0-20-generic-pae i686
ApportVersion: 1.95-0ubuntu1
Architecture: i386
Date: Fri Mar 23 21:39:19 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120301)
PackageArchitecture: all
SourcePackage: ruby-rvm
Title: package ruby-rvm 1.6.9-0hostname2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
ramarao kanneganti (ramarao) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ruby-rvm (Ubuntu):
status: New → Confirmed
no longer affects: ruby-rvm
Revision history for this message
Mark Finch (markfinch) wrote :

It still affects RVM on my system. This just occurred (for a few weeks, but not a big rush for me)

$ sudo apt-get install ruby-rvm

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ruby-rvm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 709 kB of archives.
After this operation, 2,257 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe ruby-rvm all 1.6.9-0ubuntu2 [709 kB]
Fetched 709 kB in 28s (25.2 kB/s)
Selecting previously unselected package ruby-rvm.
(Reading database ... 214836 files and directories currently installed.)
Unpacking ruby-rvm (from .../ruby-rvm_1.6.9-0ubuntu2_all.deb) ...
Processing triggers for man-db ...
Setting up ruby-rvm (1.6.9-0ubuntu2) ...
dpkg-statoverride: error: syntax error: unknown group 'admin' in statoverride file
dpkg: error processing ruby-rvm (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 ruby-rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo apt-get upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
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]? y
Setting up ruby-rvm (1.6.9-0ubuntu2) ...
dpkg-statoverride: error: syntax error: unknown group 'admin' in statoverride file
dpkg: error processing ruby-rvm (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 ruby-rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Avi Asher (avindak) wrote :

Hi,
I am a Linux noob but managed to solve this problem on a Ubuntu 12.04 64bit I found out where the rvm post inst file is located at:
/var/lib/dpkg/info/ruby-rvm.postinst
Opened it and replaced the admin group requirement to sudo:

The file contents are attached.
After changing it save it on your desktop and run the following command to copy the fixed file to the original location:

sudo cp ~/Desktop/ruby-rvm.postinst /var/lib/dpkg/info/ruby-rvm.postinst

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.