package bumblebee 3.2.1-5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4

Bug #1401816 reported by jasonmckelvin
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
bumblebee (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

tried to install bumblebee but always throws error during install

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: bumblebee 3.2.1-5
ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
Uname: Linux 3.13.0-43-generic x86_64
NonfreeKernelModules: symap_custom_dkms_x86_64 nvidia
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
Date: Fri Dec 12 10:06:58 2014
DuplicateSignature: package:bumblebee:3.2.1-5:subprocess installed post-installation script returned error exit status 4
ErrorMessage: subprocess installed post-installation script returned error exit status 4
InstallationDate: Installed on 2014-07-15 (150 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: bumblebee
Title: package bumblebee 3.2.1-5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
jasonmckelvin (jasonmckelvin-c) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Vincent Cheng (vincent-c) wrote :

According to your dpkg terminal log:

Setting up bumblebee (3.2.1-5) ...
groupadd: Invalid configuration: SYS_GID_MIN (101), GID_MIN (100), SYS_GID_MAX (99)

Huh? That's unusual, and shouldn't happen on a default install; any package that you install that creates a new unix group would end up failing. Did you happen to e.g. change stuff in /etc/login.defs?

Changed in bumblebee (Ubuntu):
status: New → Incomplete
Revision history for this message
jasonmckelvin (jasonmckelvin-c) wrote : Re: [Bug 1401816] Re: package bumblebee 3.2.1-5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4
Download full text (11.5 KiB)

On 2014-12-12 11:30, Vincent Cheng wrote:
> According to your dpkg terminal log:
>
> Setting up bumblebee (3.2.1-5) ...
> groupadd: Invalid configuration: SYS_GID_MIN (101), GID_MIN (100), SYS_GID_MAX (99)
>
> Huh? That's unusual, and shouldn't happen on a default install; any
> package that you install that creates a new unix group would end up
> failing. Did you happen to e.g. change stuff in /etc/login.defs?
>
not that i am aware off... possibly my system is too mixed up as i had
used xorg-edgers and did not correctly purge the versions? how can i
check that?

my login.defs
#
# /etc/login.defs - Configuration control definitions for the login package.
#
# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
# If unspecified, some arbitrary (and possibly incorrect) value will
# be assumed. All other items are optional - if not specified then
# the described action or option will be inhibited.
#
# Comment lines (lines beginning with "#") and blank lines are ignored.
#
# Modified for Linux. --marekm

# REQUIRED for useradd/userdel/usermod
# Directory where mailboxes reside, _or_ name of file, relative to the
# home directory. If you _do_ define MAIL_DIR and MAIL_FILE,
# MAIL_DIR takes precedence.
#
# Essentially:
# - MAIL_DIR defines the location of users mail spool files
# (for mbox use) by appending the username to MAIL_DIR as defined
# below.
# - MAIL_FILE defines the location of the users mail spool files as the
# fully-qualified filename obtained by prepending the user home
# directory before $MAIL_FILE
#
# NOTE: This is no more used for setting up users MAIL environment variable
# which is, starting from shadow 4.0.12-1 in Debian, entirely the
# job of the pam_mail PAM modules
# See default PAM configuration files provided for
# login, su, etc.
#
# This is a temporary situation: setting these variables will soon
# move to /etc/default/useradd and the variables will then be
# no more supported
MAIL_DIR /var/mail
#MAIL_FILE .mail

#
# Enable logging and display of /var/log/faillog login failure info.
# This option conflicts with the pam_tally PAM module.
#
FAILLOG_ENAB yes

#
# Enable display of unknown usernames when login failures are recorded.
#
# WARNING: Unknown usernames may become world readable.
# See #290803 and #298773 for details about how this could become a security
# concern
LOG_UNKFAIL_ENAB no

#
# Enable logging of successful logins
#
LOG_OK_LOGINS no

#
# Enable "syslog" logging of su activity - in addition to sulog file
logging.
# SYSLOG_SG_ENAB does the same for newgrp and sg.
#
SYSLOG_SU_ENAB yes
SYSLOG_SG_ENAB yes

#
# If defined, all su activity is logged to this file.
#
#SULOG_FILE /var/log/sulog

#
# If defined, file which maps tty line to TERM environment parameter.
# Each line of the file is in a format something like "vt100 tty01".
#
#TTYTYPE_FILE /etc/ttytype

#
# If defined, login failures will be logged here in a utmp format
# last, when invoked as lastb, will read /var/log/btmp, so...
#
FTMP_FILE /var/log/btmp

#
# If defined, the command name to display when running "s...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for bumblebee (Ubuntu) because there has been no activity for 60 days.]

Changed in bumblebee (Ubuntu):
status: Incomplete → Expired
Erez Hadad (erezh)
Changed in bumblebee (Ubuntu):
status: Expired → New
Revision history for this message
Ryan Kersh (ryankersh) wrote :

Ran into the same thing here. Any workarounds? Any information I can provide that would be useful?

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in bumblebee (Ubuntu):
status: New → Confirmed
Revision history for this message
Ryan Kersh (ryankersh) wrote :

With the following changes to /etc/login.defs, the bumblebee and primus packages installed fine on my machine:

<diff>
--- a/login.defs
+++ b/login.defs
@@ -177,8 +177,8 @@ PASS_WARN_AGE 7
 UID_MIN 1000
 UID_MAX 60000
 # System accounts
-#SYS_UID_MIN 100
-#SYS_UID_MAX 999
+SYS_UID_MIN 100
+SYS_UID_MAX 999

 #
 # Min/max values for automatic gid selection in groupadd
@@ -186,8 +186,8 @@ UID_MAX 60000
 GID_MIN 100
 GID_MAX 60000
 # System accounts
-#SYS_GID_MIN 100
-#SYS_GID_MAX 999
+SYS_GID_MIN 100
+SYS_GID_MAX 999

 #
 # Max number of login retries if password is bad. This will most likely be
</diff>

Here's the snippet from /var/log/apt/term.log

<snip>
Log started: 2015-08-11 13:07:50
Selecting previously unselected package bumblebee.
(Reading database ... 295665 files and directories currently installed.)
Preparing to unpack .../bumblebee_3.2.1-5_amd64.deb ...
Unpacking bumblebee (3.2.1-5) ...
Selecting previously unselected package primus.
Preparing to unpack .../primus_0~20131127-2_amd64.deb ...
Unpacking primus (0~20131127-2) ...
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-61-generic
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up bumblebee (3.2.1-5) ...
Adding members from group(s) 'adm sudo admin' to 'bumblebee':
rkersh syslog
Adding user rkersh to group bumblebee
Adding user syslog to group bumblebee
Selecting 01:00:0 as discrete nvidia card. If this is incorrect,
edit the BusID line in /etc/bumblebee/xorg.conf.nouveau .
bumblebeed start/running, process 17662
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-61-generic
Processing triggers for ureadahead (0.100.0-16) ...
Setting up primus (0~20131127-2) ...
Log ended: 2015-08-11 13:08:39
</snip>

Note, that if I do "man login.defs" I see the following:

BUGS
       Much of the functionality that used to be provided by the shadow
       password suite is now handled by PAM. Thus, /etc/login.defs is no
       longer used by passwd(1), or less used by login(1), and su(1). Please
       refer to the corresponding PAM configuration files instead.

Could that explain why on my Ubuntu 14.04, the fact that the previous settings for SYS_GID_MIN, SYS_GID_MAX were not causing any problems? Is the bumblebee package relying on something that it shouldn't? I have no idea if this is the case ... just throwing the information out there.

More details:
Personally, I never touched /etc/login.defs since the original installation of Ubuntu. I tried to do a dpkg-reconfigure of the login package, but this didn't seem to do anything.

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.