ruby-rvm's maintainer scripts expect the admin group to exist

Bug #894311 reported by Stefano Rivera
This bug affects 174 people
Affects Status Importance Assigned to Milestone
ruby-rvm (Ubuntu)
Fix Released
Medium
Unassigned
Precise
Fix Released
Medium
Unassigned

Bug Description

== SRU Justification ==

= Impact =
The Package fails to install on new installs without the admin group.
This was noticed fairly early but wasn't fixed before precise released.

I've requested that this package be removed from quantal, as it isn't being cared for (LP: #881007)

= Testcase =

On a machine that was installed from precise:
$ apt-get install ruby-rvm

If it installs successfully, you haven't run into this issue.

= Regression Potential =

A minor change to the postinst script. Previously rvm's files were owned by the admin group, now they'll be owned by the sudo group. These groups are probably fairly equivalent in most installs.

Alternatively, we could continue to use the admin group if it exists...

== Original Report ==
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
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 ruby-rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Stefano Rivera (stefanor) wrote :

Brian: You said on IRC that you'd look at it, so I'll be rude and assign the bug to you :P

Changed in ruby-rvm (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Brian Thomason (brian-thomason)
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
Revision history for this message
shawnlandden (shawnlandden) wrote :

here is a patch for precise

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "switch from group admin to group sudo in debian/postinst" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
James P. Carter (jpcarter) wrote :

This is VERY frustrating... When will a package be produced with the patch to begin testing for the LTS release?

Revision history for this message
shawnlandden (shawnlandden) wrote :

@jpcarter to build the package with the patch youself fallow the fallowing steps

sudo apt-get install build-essential
sudo apt-get build-dep ruby-rvm
apt-get source ruby-rvm
cd <to the directory>
patch -p1 < the-downloaded-diff.patch
dpkg-buildpackage

Revision history for this message
shawnlandden (shawnlandden) wrote :
Revision history for this message
James P. Carter (jpcarter) wrote :

@shawnlandden I will give it a go right now on my virtual. Thank you for the quick how-to.

Revision history for this message
James P. Carter (jpcarter) wrote :

OK that did the trick RVM is installed on my i686 virtual. Only issue I have seen at this point is the age of the source and the README file is missing but those are 2 separate existing bug reports. ;-)

I found another write-up online with regards to updating source using uupdate on debian. I may give that a shot and see if I can't bring my package up to the latest available.

Thanks again Shawn for the quick tutoring. +10 for being very cool and very helpful in your response!

Revision history for this message
James P. Carter (jpcarter) wrote :

FYI, for others that may be looking here for their own ruby-rvm package build, I'll try to be as clear as possible...

Prior to going through Shawn's instructions I removed ruby and ruby-rvm and then issued an autoremove and a purge.
---
apt-get remove ruby ruby-rvm -y
apt-get autoremove -y
* Received a complaint from apt that the ruby-rvm group did not exist.
dpkg --purge ruby-rvm
---

At this point I started with Shawn's instructions.
Once I had finished with Shawn's instructions I did the following...
---
dpkg -i ruby-rvm_1.6.9-0ubuntu2_all.deb
* I was informed that I was missing needed dependencies to avoid this make certain the following are installed...
apt-get install zlib1g-dev libreadline-gplv2-dev libxml2-dev libsqlite3-dev libtinfo-dev
---
If you ran through this in the order I did the ruby-rvm package will be installed after the dependencies are installed. You can check this with...
---
rvm usage
---
Which should give you some helpful rvm output.

Revision history for this message
James P. Carter (jpcarter) wrote :

I have added my user to the "sudo" group however I am still unable to use this rvm package mult-user. I can use rvm as root which is great but I think the real strength of RVM is lost if it can not be used multi-user.

I have both groups "admin" and "sudo" enabled in sudoers. This machine (my virtual) is an upgrade from 11.x and still has an "admin" group in /etc/group so I may have been able to install the ruby-rvm package prior to the patch... oh well...

Revision history for this message
James P. Carter (jpcarter) wrote :

As a user:

$ rvm --default use 1.9.3
WARN: ruby ruby-1.9.3 is not installed.
To install do: 'rvm install ruby-1.9.3'
$ rvm install ruby-1.9.3
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3, this may take a while depending on your cpu(s)...

ruby-1.9.3 - #fetching
mkdir: cannot create directory `/usr/share/ruby-rvm/tmp/rvm_src_4111': Permission denied
ruby-1.9.3 - #extracting ruby-1.9.3- to /usr/share/ruby-rvm/src/ruby-1.9.3
touch: cannot touch `/usr/share/ruby-rvm/log/ruby-1.9.3/extract.log': Permission denied
/usr/share/ruby-rvm/scripts/functions/utility: line 142: /usr/share/ruby-rvm/log/ruby-1.9.3/extract.log: Permission denied
/usr/share/ruby-rvm/scripts/functions/utility: line 148: /usr/share/ruby-rvm/log/ruby-1.9.3/extract.log: Permission denied
ERROR: Error running 'bunzip2 < '/usr/share/ruby-rvm/archives/ruby-1.9.3-.tar.bz2' | tar xf - -C /usr/share/ruby-rvm/tmp/rvm_src_4111', please read /usr/share/ruby-rvm/log/ruby-1.9.3/extract.log
ERROR: There has been an error while trying to extract the source.
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

Revision history for this message
James P. Carter (jpcarter) wrote :

Disregard post #12 for now... I forgot that I had done some troubleshooting already. I have cleared out the failed download and now run as a user "cleanly". I have added this user to the "sudo" group. This user was already a member of the "admin" group for sudo access.

$ rvm install ruby-1.9.3-p125
mkdir: cannot create directory `/usr/share/ruby-rvm/gems/ruby-1.9.3-p125': Permission denied
mkdir: cannot create directory `/usr/share/ruby-rvm/log/ruby-1.9.3-p125': Permission denied
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...

ruby-1.9.3-p125 - #fetching
ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0Warning: Failed to create the file ruby-1.9.3-p125.tar.bz2: Permission denied
  0 9505k 0 4164 0 0 564 0 4:47:38 0:00:07 4:47:31 1909
curl: (23) Failed writing body (0 != 4164)
ERROR: There was an error, please check /usr/share/ruby-rvm/log/ruby-1.9.3-p125/*.log. Next we'll try to fetch via http.
Trying http:// URL instead.
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file ruby-1.9.3-p125.tar.bz2: Permission denied
  0 9505k 0 1087 0 0 3132 0 0:51:47 --:--:-- 0:51:47 6356
curl: (23) Failed writing body (0 != 1087)
ERROR: There was an error, please check /usr/share/ruby-rvm/log/ruby-1.9.3-p125/*.log
ERROR: There has been an error while trying to fetch the source.
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

Revision history for this message
James P. Carter (jpcarter) wrote :

There appears to still be some issues installing even as root.

Installing a ruby version as root:

# rvm install ruby-1.9.3-p125
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...

ruby-1.9.3-p125 - #fetching
ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 9505k 100 9505k 0 0 134k 0 0:01:10 0:01:10 --:--:-- 193k
100 9505k 100 9505k 0 0 134k 0 0:01:10 0:01:10 --:--:-- 134kruby-1.9.3-p125 - #extracting ruby-1.9.3-p125 to /usr/share/ruby-rvm/src/ruby-1.9.3-p125
ruby-1.9.3-p125 - #extracted to /usr/share/ruby-rvm/src/ruby-1.9.3-p125
ruby-1.9.3-p125 - #configuring
ruby-1.9.3-p125 - #compiling
ruby-1.9.3-p125 - #installing
Removing old Rubygems files...
-e:1: Use RbConfig instead of obsolete and deprecated Config.
Installing rubygems dedicated to ruby-1.9.3-p125...
Retrieving rubygems-1.6.2
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 236k 100 236k 0 0 559k 0 --:--:-- --:--:-- --:--:-- 802k
Extracting rubygems-1.6.2 ...
Installing rubygems for /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby
ERROR: Error running 'GEM_PATH="/usr/share/ruby-rvm/gems/ruby-1.9.3-p125:/usr/share/ruby-rvm/gems/ruby-1.9.3-p125@global:/usr/share/ruby-rvm/gems/ruby-1.9.3-p125:/usr/share/ruby-rvm/gems/ruby-1.9.3-p125@global" GEM_HOME="/usr/share/ruby-rvm/gems/ruby-1.9.3-p125" "/usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby" "/usr/share/ruby-rvm/src/rubygems-1.6.2/setup.rb"', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p125/rubygems.install.log
WARN: Installation of rubygems did not complete successfully.
ruby-1.9.3-p125 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p125 - #importing default gemsets (/usr/share/ruby-rvm/gemsets/)
Install of ruby-1.9.3-p125 - #complete

Revision history for this message
shawnlandden (shawnlandden) wrote :

@jpcarter

adding a user to the sudo group gives them root privileges through the "sudo" command

rvm can be installed either user-wide, system-wide, or mixed-mode, of which both system-wide and user-wide are a subset of mixed-mode (with the exception that mixed-mode doesn't allow upgrading of rvm itsself by an unprivlidged user)

I'm not sure if system-wide is meant to allow sudo-group users to run rvm without root (this would be a security issue, although the site seems to mention the specific issues), but even non-sudo-members should be able to use system ruby to install into their ~

I wish there was more of a maintainer of this package..... I don't have privlidges to push this patch, and despite getting an auto email that patches are reviewed, that has not happened.

Revision history for this message
James P. Carter (jpcarter) wrote :

@shawnlandden
No worries. I understand sudo... I appreciate all your assistance. I hope I have not blown up your inbox. ;-)

On other systems I am using rvm directly from the maintainer and has actually solved quite a few issues for me. I have been struggling with attempting to use Ruby for quite some time. Come to find out it is actually the Debian/Ubuntu packages which is unfortunate and actually blows my mind. People are recommending fedora/centos over ubuntu because of it. -sigh-

Currently I am attempting to create a new package with the latest RVM on top of the source with your patch. We'll see how that goes. In the end I may just yank it all out and use RVM direct as the whole goal is for me to learn/use Ruby. If I do yank the package out I will later reinvest time into helping to solve these out of date / installation issues.

A Debian/Ubuntu package with an upgrade path is preferred to software culled from around the net.

Revision history for this message
Brian Thomason (brian-thomason) wrote :

Hey guys,

Sorry, I dropped the ball here. I was maintaining this when I worked at Canonical and have since moved on to another position and have been working on another set of packages. I have added it to my checklist and will get this patch in before final freeze. (I'm also looking into another bug reported about readline versions causing issues)

Revision history for this message
James P. Carter (jpcarter) wrote :

This package also looks for the ruby-rvm group which does not get created however the package will attempt to remove it when removing the package.

# apt-get remove ruby-rvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ruby-rvm
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1,709 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 344449 files and directories currently installed.)
Removing ruby-rvm ...
The group `ruby-rvm' does not exist.
Processing triggers for man-db ...

Revision history for this message
James P. Carter (jpcarter) wrote :

No worries Brian glad to have you back in the mix.

Revision history for this message
Taiwo Oyeniyi (muyiwaoyeniyi) wrote :

Hello...I'm new to ubuntu and I'm having the same problem stated above. I followed Shawn and James instructions but it isnt working....maybe I'm missing a step or something...please can you break down the steps to patch up this problem?

Thanks.
Taiwo

Revision history for this message
Taiwo Oyeniyi (muyiwaoyeniyi) wrote :

@Shawn....above you said cd <to the directory>....please which directory are you referring to?

Thanks.
Taiwo

Revision history for this message
shawnlandden (shawnlandden) wrote :

cd rvm-<version>

Revision history for this message
Taiwo Oyeniyi (muyiwaoyeniyi) wrote :

thanks for the response....everything worked until the last step...i got this error

aiwo@ubuntu:~$ cd ruby-rvm-1.6.9
taiwo@ubuntu:~/ruby-rvm-1.6.9$ patch -p1 < the-downloaded-diff.patch
-bash: the-downloaded-diff.patch: No such file or directory
taiwo@ubuntu:~/ruby-rvm-1.6.9$ patch -p1 < the-downloaded-diff.patch
patching file debian/postinst
taiwo@ubuntu:~/ruby-rvm-1.6.9$ dpkg-buildpackage
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package ruby-rvm
dpkg-buildpackage: source version 1.6.9-0ubuntu2
dpkg-buildpackage: source changed by Matthias Klose <email address hidden>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build ruby-rvm-1.6.9
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
 dpkg-source -b ruby-rvm-1.6.9
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building ruby-rvm using existing ./ruby-rvm_1.6.9.orig.tar.gz
dpkg-source: info: local changes detected, the modified files are:
 ruby-rvm-1.6.9/the-downloaded-diff.patch
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/ruby-rvm_1.6.9-0ubuntu2.diff.laMRMK
dpkg-buildpackage: error: dpkg-source -b ruby-rvm-1.6.9 gave error exit status 2
taiwo@ubuntu:~/ruby-rvm-1.6.9$

please do you know how I can get around this?

Thanks.
Taiwo

Revision history for this message
shawnlandden (shawnlandden) wrote :
Revision history for this message
Taiwo Oyeniyi (muyiwaoyeniyi) wrote :

I used the patch...but I still cant get rvm to work properly...I cant get the latest version of ruby

Revision history for this message
Taiwo Oyeniyi (muyiwaoyeniyi) wrote :

@Shawn....finally got rvm and ruby to install...though I didnt do dpkg-buildpackage

Thanks.
Taiwo

Revision history for this message
Dale (a-dale-clarke) wrote :

@Taiwo... I'm having the same issue you were having. What did you do to get it to build/install?

Thanks,
Dale

Revision history for this message
Taiwo Oyeniyi (muyiwaoyeniyi) wrote :

@Dale...I basically followed some of instruction Shawn posted above:

      sudo apt-get install build-essential
      sudo apt-get build-dep ruby-rvm
     apt-get source ruby-rvm

Then I followed the instruction from another post on this site using this file:

https://bugs.launchpad.net/ubuntu/+source/ruby-rvm/+bug/894311/+attachment/2843545/+files/0001-postinst-Ubuntu-has-switched-from-admin-to-sudo-as-t.patch

*****
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
*****

Everything worked fine at the end.

Hope this works for you.

Taiwo

Revision history for this message
Taiwo Oyeniyi (muyiwaoyeniyi) wrote :

@Dale....actually you dont need the file I attached above. You just need to open the rvm post inst file, find and replace all "admin" with "sudo".....then save the new file on your desktop and then use the copy command to change the rvm post inst file. Note that I did this because one can't edit the rvm post inst file directly...

Revision history for this message
shawnlandden (shawnlandden) wrote :

sudo nano /var/lib/dpkg/info/ruby-rvm.postinst

or even:

gksu gedit /var/lib/dpkg/info/ruby-rvm.postinst

to edit in place (however editing system files is risky)

Revision history for this message
Dale (a-dale-clarke) wrote :

@Taiwo and @shawnlandden... thank you for clarifying. I was able to get it working.

Revision history for this message
Daniel St.Jacques (stjacques-daniel) wrote :

I just added a dummy admin group to get it working. One liner to do it below.

sudo chmod 777 /etc/group && echo $(grep sudo /etc/group | sed "s/sudo/admin/" | sed "s/[0-9][0-9]*/4567/") >> /etc/group && sudo chmod 644 /etc/group

Revision history for this message
Przemyslaw Szulczynski (investeo-pl) wrote :

My sed oneliner

sudo sed -i s/admin/sudo/g /var/lib/dpkg/info/ruby-rvm.postinst

and later once again

sudo apt-get install ruby-rvm

Revision history for this message
Stefano Rivera (stefanor) wrote :

OK, it's pretty clear that nobody is caring about this package. I've requested removal in quantal (LP: #881007) and will SRU the bug fix for this into precise.

Changed in ruby-rvm (Ubuntu):
assignee: Brian Thomason (brian-thomason) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-rvm - 1.6.9-0ubuntu3

---------------
ruby-rvm (1.6.9-0ubuntu3) quantal; urgency=low

  * Use the sudo group instead of admin in postinst (LP: #894311)
 -- Stefano Rivera <email address hidden> Sun, 01 Jul 2012 12:55:00 +0200

Changed in ruby-rvm (Ubuntu):
status: Confirmed → Fix Released
Changed in ruby-rvm (Ubuntu Precise):
importance: Undecided → Medium
status: New → Triaged
description: updated
Changed in ruby-rvm (Ubuntu Precise):
status: Triaged → Fix Committed
Revision history for this message
shawnlandden (shawnlandden) wrote :

Thanks Stefano for clearing this up.

Revision history for this message
Stefano Rivera (stefanor) wrote : Re: [Bug 894311] Re: ruby-rvm's maintainer scripts expect the admin group to exist

> Thanks Stefano for clearing this up.

I reported this, I should have done it ages ago. I was just grumpy about
yet another package someone added in Ubunut-only (not Debian), without
looking after it :)

Revision history for this message
shawnlandden (shawnlandden) wrote :

On Mon, 2012-07-02 at 15:48 +0000, Stefano Rivera wrote:
> > Thanks Stefano for clearing this up.
>
> I reported this, I should have done it ages ago. I was just grumpy
> about
> yet another package someone added in Ubunut-only (not Debian), without
> looking after it :)

If it even does end up in Debian proper, i'd like it to have the ability
to install ruby gem2deb created debs into it's environments, avoiding
recompilation in some cases.
--
-Shawn Landden

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Stefano, or anyone else affected,

Accepted ruby-rvm into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/ruby-rvm/1.6.9-0ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Jeremy Hale (jeremy-hale) wrote :

I followed the instructions at https://wiki.ubuntu.com/Testing/EnableProposed and attempted to re-install ruby-rvm but the same problem occured. I'm new to this so perhaps I've made an error. Either way, here is the output.

$ sudo aptitude install ruby-rvm/precise-proposed
The following packages will be upgraded:
  ruby-rvm
1 packages upgraded, 0 newly installed, 0 to remove and 279 not upgraded.
Need to get 713 kB of archives. After unpacking 548 kB will be freed.
Do you want to continue? [Y/n/?] y
Get: 1 http://archive.ubuntu.com/ubuntu/ precise-proposed/universe ruby-rvm all 1.6.9-0ubuntu2.1 [713 kB]
Fetched 713 kB in 8s (87.0 kB/s)
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
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 ruby-rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
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

Revision history for this message
Stefano Rivera (stefanor) wrote : Re: [Bug 894311] Re: ruby-rvm's maintainer scripts expect the admin group to exist

Hi Jeremy (2012.07.08_20:15:00_+0200)
> Setting up ruby-rvm (1.6.9-0ubuntu2) ...
> dpkg-statoverride: error: syntax error: unknown group 'admin' in statoverride file

It's still trying to configure tho old version. You need to kill it with
fire first.

dpkg --purge ruby-rvm

Then try and install it again.

Revision history for this message
nemonik (g-launchpad-com) wrote :

Same thing happens for me:

I purge like the previous... and install ruby-rvm/precise-proposed to the warm embrace of:

puppet@puppet1:~$ sudo dpkg --purge ruby-rvm
(Reading database ... 54478 files and directories currently installed.)
Removing ruby-rvm ...
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
dpkg-statoverride: warning: No override present.
The group `ruby-rvm' does not exist.
Purging configuration files for ruby-rvm ...
Processing triggers for man-db ...
puppet@puppet1:~$ sudo dpkg --purge ruby-rvm
dpkg: warning: there's no installed package matching ruby-rvm
puppet@puppet1:~$ sudo dpkg --purge ruby-rvm
dpkg: warning: there's no installed package matching ruby-rvm
puppet@puppet1:~$ sudo aptitude install ruby-rvm/precise-proposed
Unable to find an archive "precise-proposed" for the package "ruby-rvm"
Unable to find an archive "precise-proposed" for the package "ruby-rvm"
The following NEW packages will be installed:
  ruby-rvm
0 packages upgraded, 1 newly installed, 0 to remove and 56 not upgraded.
Need to get 0 B/709 kB of archives. After unpacking 2,257 kB will be used.
Selecting previously unselected package ruby-rvm.
(Reading database ... 54221 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
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 ruby-rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
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

Revision history for this message
Stefano Rivera (stefanor) wrote :

Meh, I must have missed something. I'll look at it again...

tags: added: verification-failed
removed: verification-needed
Revision history for this message
Tom Morris (tfmorris) wrote :

The package appears to have been removed from precise-proposed so I was unable to test whether it works. Hand patching the installer (ugh!) did work.

tags: added: verification-needed
removed: verification-failed
Revision history for this message
Stefano Rivera (stefanor) wrote :

No, I didn't miss anything:

> Setting up ruby-rvm (1.6.9-0ubuntu2) ...

That's the old version, not the new one.

> The package appears to have been removed from precise-proposed

No, it hasn't been. Your mirror may be out of date.

Revision history for this message
Stéphane Graber (stgraber) wrote :

Works fine here. Reproduced the crash with old version in a container, got another clean container but with proposed enabled, no more crash.

Marking verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-rvm - 1.6.9-0ubuntu2.1

---------------
ruby-rvm (1.6.9-0ubuntu2.1) precise-proposed; urgency=low

  * Use the sudo group instead of admin in the postinst maintainer script.
    The admin group doesn't exist any more. (LP: #894311)
 -- Stefano Rivera <email address hidden> Sun, 01 Jul 2012 12:55:00 +0200

Changed in ruby-rvm (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.