PPC64LE Ubuntu Live image creation: Issue installing nfs-common

Bug #1468089 reported by Adi Gangidi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
In Progress
High
Steve Langasek

Bug Description

We’re in the midst of building an Ubuntu 15.04 based live image for our OpenPOWER servers, which loads via petitboot, from across a network. We’ve run into an issue, described below, with loading an nfs-common package.

I specifically am working to create Ubuntu live image for PPC64LE.

I ran into issues initially creating a live image in a machine that’s already booted up with Live image. But now I am running into the same issue even with a machine booted up with regular ubuntu image.

Details:

Ubuntu Release used: Vivid

Issue: As I follow the attached Live image creation process from line 2, after I chroot into subdirectory with linux base system. I install a package called nfs-common (Refer Line 29 of ‘attached' Live image creation process. Also appended at the end of this email)

apt-get install nfs-common

After trying to install the above package, I am running into an issue where “dpkg” gets corrupted when I am installing this package "nfs-tools" .

After this step, trying to remove and re-install nfs-common or installing any other package does not work and throws out same errors repeatedly.

Below is a snippet

root@IBM-P8-2:/# apt-get install nfs-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 8 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
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up nfs-common (1:1.2.8-9ubuntu8.1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
invoke-rc.d: unknown initscript, /etc/init.d/gssd not found.
dpkg: error processing package nfs-common (--configure): (This error repeats itself if we install any other package or try to remove nfs-common after this step)
 subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 nfs-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am also appending the Live image process steps till this issue occurs (till line 29) below.

 1 Building Live image
 2 apt-get install debootstrap schroot
3 mkdir work
4 mkdir chroot
5 cd work
6 debootstrap --arch=ppc64el vivid chroot http://ports.ubuntu.com/
7
8 sudo cp /etc/hosts chroot/etc/hosts
9 sudo cp /etc/resolv.conf chroot/etc/resolv.conf
10 sudo cp /etc/apt/sources.list chroot/etc/apt/sources.list
11 sudo mount --bind /dev /home/racker/work/chroot/dev
12 sudo chroot chroot
13
14 mount none -t proc /proc
15 mount none -t sysfs /sys
16 mount none -t devpts /dev/pts
17 export HOME=/root
18 export LC_ALL=C
19
20 # set password for root
21 passwd root
22
23 apt-get update
24 # apt-get install tasksel
25 # tasksel
26 pick Ubuntu Server, SSH Servert
27 Using tasksel to install the base Ubuntu Server is important - it makes sure all of the system level facilities ar e present
28
29 # apt-get install nfs-common

Thanks
Adi Gangidi
Systems Engineer

Revision history for this message
Adi Gangidi (adi-gangidi) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

The error ultimately looks to be this line:

invoke-rc.d: unknown initscript, /etc/init.d/gssd not found.

Changed in nfs-utils (Ubuntu):
importance: Undecided → High
description: updated
Changed in nfs-utils (Ubuntu):
status: New → In Progress
assignee: nobody → Steve Langasek (vorlon)
Revision history for this message
Steve Langasek (vorlon) wrote :

The failure here does point to a bug in the nfs-common packages; the init system transitions have led to several reorganizations of the startup scripts for nfs-common, and there are bugs which mean that in some configurations the package may fail to install.

However, you're installing in a chroot as part of a liveCD mastering process. No services should be started anyway, and the fact that they are means that you don't have a properly configured chroot.

The minimum fix for your environment is to install the following script as /usr/sbin/policy-rc.d
 within your chroot before installing any packages, then removing it when the setup is complete:

#!/bin/sh

exit 101

Revision history for this message
Cesar (cetxebe) wrote :

I had the same error when trying to create a livecd myself.
Post-installation script tries to determine if /etc/init.d/idmapd and /etc/init.d/gssd are executable, but those files don't exist so the script crashes.

I just created two empty files and then I installed the package with no errors.

cd /etc/init.d
touch idmapd
touch gssd

It's not the most ellegant solution but it works.

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.