package openafs-client 1.6.1-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1

Bug #996394 reported by Laurynas Riliskis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openafs (Ubuntu)
New
Undecided
Unassigned

Bug Description

crash occured during uppgrade from 11.10 to 12.04. The message I got was the the process could not be stoped, note here that I had not innitiated afs connection before the uppgrade. After restart afs is working fine.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: openafs-client 1.6.1-1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: openafs nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Tue May 8 10:11:15 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: openafs
Title: package openafs-client 1.6.1-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-05-08 (0 days ago)

Revision history for this message
Laurynas Riliskis (laurynas-riliskis-gmail) wrote :
Revision history for this message
Laurynas Riliskis (laurynas-riliskis-gmail) wrote :

when updating packages the problem percist.
I tryed to reinstall the packete but getting not so descriptive error

E: openafs-client: subprocess installed post-installation script returned error exit status 1

Revision history for this message
Laurynas Riliskis (laurynas-riliskis-gmail) wrote :

Here is some more infor, when I was trying to solev the problem
I removed the open-afs packet
then run apt-get autoremove
reinstalled open-afs .
sudo apt-get install openafs-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  openafs-modules-dkms
Suggested packages:
  openafs-doc
The following NEW packages will be installed:
  openafs-client openafs-modules-dkms
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,249 kB/5,042 kB of archives.
After this operation, 14.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://se.archive.ubuntu.com/ubuntu/ precise/universe openafs-modules-dkms all 1.6.1-1 [1,249 kB]
Fetched 1,249 kB in 0s (7,804 kB/s)
Preconfiguring packages ...
openafs-client failed to preconfigure, with exit status 1
Selecting previously unselected package openafs-client.
(Reading database ... 328024 files and directories currently installed.)
Unpacking openafs-client (from .../openafs-client_1.6.1-1_amd64.deb) ...
Selecting previously unselected package openafs-modules-dkms.
Unpacking openafs-modules-dkms (from .../openafs-modules-dkms_1.6.1-1_all.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up openafs-client (1.6.1-1) ...
update-alternatives: using /usr/bin/pagsh.openafs to provide /usr/bin/pagsh (pagsh) in auto mode.
dpkg: error processing openafs-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up openafs-modules-dkms (1.6.1-1) ...
Loading new openafs-1.6.1 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-24-generic
Building initial module for 3.2.0-24-generic
Done.

openafs:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-24-generic/updates/dkms/

depmod....

DKMS: install completed.
Errors were encountered while processing:
 openafs-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

it seems that with the kernel updated the module does not get included.

Revision history for this message
Anders Kaseorg (andersk) wrote :

What happens when you run
sudo /etc/init.d/openafs-client start
?

Revision history for this message
Laurynas Riliskis (laurynas-riliskis-gmail) wrote :

The afs is working, when manualy started as I stated previosly. However every update is givving same error messege.

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 openafs-client (1.6.1-1) ...
dpkg: error processing openafs-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 openafs-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Björn Torkelsson (torkel) wrote :

Have you tried:
sudo apt-get -f install
?

Revision history for this message
Laurynas Riliskis (laurynas-riliskis-gmail) wrote :

yes, I have tryed to remove afs kernel module and reinstall it, it gives same errors

sudo dpkg --debug=400 --configure openafs-client
D000400: checking group ...
D000400: checking possibility -> libc6
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> libkrb5-3
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> libncurses5
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> libtinfo5
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> debconf
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking breaker openafs-krb5 virtbroken <none>
Setting up openafs-client (1.6.1-1) ...
dpkg: error processing openafs-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 openafs-client

openafs-krb5 is installed.

Revision history for this message
Anders Kaseorg (andersk) wrote :

Hmm, I can’t see what’s going wrong from that log. Can you temporarily edit the top of /var/lib/dpkg/info/openafs-client.postinst to replace ‘set -e’ with ‘set -ex’ and try again?

Revision history for this message
Laurynas Riliskis (laurynas-riliskis-gmail) wrote :

I have tryed other debug flags with even less info. your suggested changes gives following output:
->sudo dpkg --debug=400 --configure openafs-client
D000400: checking group ...
D000400: checking possibility -> libc6
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> libkrb5-3
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> libncurses5
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> libtinfo5
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> debconf
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking breaker openafs-krb5 virtbroken <none>
Setting up openafs-client (1.6.1-1) ...
+ [ configure = configure ]
+ update-alternatives --install /usr/bin/pagsh pagsh /usr/bin/pagsh.openafs 100 --slave /usr/share/man/man1/pagsh.1.gz pagsh.1.gz /usr/share/man/man1/pagsh.openafs.1.gz
+ update-alternatives --install /usr/bin/klog klog /usr/bin/klog.afs 10 --slave /usr/share/man/man1/klog.1.gz klog.1.gz /usr/share/man/man1/klog.afs.1.gz
+ test -d /afs
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/openafs-client.postinst configure 1.6.0-1
dpkg: error processing openafs-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 openafs-client

Revision history for this message
Anders Kaseorg (andersk) wrote :

Huh. What do these three commands say?

debconf-show debconf
echo "$DEBIAN_FRONTEND"
sudo env DEBCONF_DEBUG=developer dpkg --configure openafs-client

Revision history for this message
Laurynas Riliskis (laurynas-riliskis-gmail) wrote :

->debconf-show debconf
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
  debconf-apt-progress/preparing:
  debconf/frontend: Dialog
  debconf-apt-progress/title:
  debconf/priority: high
  debconf-apt-progress/info:
  debconf-apt-progress/media-change:

->echo "$DEBIAN_FRONTEND"
empty output

sudo env DEBCONF_DEBUG=developer dpkg --configure openafs-client
[sudo] password for xxx:
Setting up openafs-client (1.6.1-1) ...
+ [ configure = configure ]
+ update-alternatives --install /usr/bin/pagsh pagsh /usr/bin/pagsh.openafs 100 --slave /usr/share/man/man1/pagsh.1.gz pagsh.1.gz /usr/share/man/man1/pagsh.openafs.1.gz
+ update-alternatives --install /usr/bin/klog klog /usr/bin/klog.afs 10 --slave /usr/share/man/man1/klog.1.gz klog.1.gz /usr/share/man/man1/klog.afs.1.gz
+ test -d /afs
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/openafs-client.postinst configure 1.6.0-1
debconf (developer): frontend started
debconf (developer): frontend running, package name is openafs-client
debconf (developer): starting /var/lib/dpkg/info/openafs-client.config configure 1.6.0-1
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
dpkg: error processing openafs-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 openafs-client

Revision history for this message
Torbjörn Moa (moa-physto) wrote :

I have been experiencing the same problem, when upgrading to openafs-client 1.6.1-1+ubuntu0.1. After some testing I found the reason:

In /var/lib/dpkg/info/openafs-client.config, the statement

    read cell < /etc/openafs/ThisCell

croaked, because there was no newline after the cell name in ThisCell. Thus, you can easily get around the problem by making sure that ThisCell has a newline (CR) after the cell name.

Hope this helps. It certainly did for me.

Revision history for this message
Aaron Staley (astaley) wrote :

I have this same problem. Attempted the fix in #12 to no avail.

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.