package openafs-client 1.8.4~pre1-1ubuntu2 failed to install/upgrade: installed openafs-client package post-installation script subprocess returned error exit status 1

Bug #1882407 reported by Colin Hockaday
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openafs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

New to Linux, installing a package to enable sys commands.

Installation failed and got the following summary at the end:

DKMS: install completed.
Setting up openafs-client (1.8.4~pre1-1ubuntu2) ...
update-alternatives: using /usr/bin/pagsh.openafs to provide /usr/bin/pagsh (pag
sh) in auto mode
Created symlink /etc/systemd/system/multi-user.target.wants/openafs-client.servi
ce → /lib/systemd/system/openafs-client.service.
Created symlink /etc/systemd/system/remote-fs.target.wants/openafs-client.servic
e → /lib/systemd/system/openafs-client.service.
Job for openafs-client.service failed because the control process exited with er
ror code.
See "systemctl status openafs-client.service" and "journalctl -xe" for details.
invoke-rc.d: initscript openafs-client, action "start" failed.
● openafs-client.service - OpenAFS client
     Loaded: loaded (/lib/systemd/system/openafs-client.service; enabled; vendor
 preset: enabled)
     Active: failed (Result: exit-code) since Sun 2020-06-07 11:36:33 AEST; 49ms
 ago
    Process: 78141 ExecStartPre=/usr/share/openafs/openafs-client-precheck (code
=exited, status=0/SUCCESS)
    Process: 78153 ExecStart=/sbin/afsd $AFSD_ARGS (code=exited, status=1/FAILUR
E)
    Process: 78154 ExecStopPost=/sbin/rmmod $KMOD (code=exited, status=0/SUCCESS
)

Jun 07 11:36:33 colin-Linux systemd[1]: Starting OpenAFS client...
Jun 07 11:36:33 colin-Linux afsd[78153]: afsd: some file missing or bad in /etc/
openafs/
Jun 07 11:36:33 colin-Linux systemd[1]: openafs-client.service: Control process
exited, code=exited, status=1/FAILURE
Jun 07 11:36:33 colin-Linux systemd[1]: openafs-client.service: Failed with resu
lt 'exit-code'.
Jun 07 11:36:33 colin-Linux systemd[1]: Failed to start OpenAFS client.
dpkg: error processing package openafs-client (--configure):
 installed openafs-client package post-installation script subprocess returned e
rror exit status 1
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.1) ...
Errors were encountered while processing:
 openafs-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

I searched for the error "E: Sub-process /usr/bin/dpkg returned an error code (1)" and tried all of the suggestions in the following link "https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1" and none worked.

Errors were "E: Unable to locate package –f" when running "sudo apt-get install –f" and E: Unable to locate package ––purge when running "sudo apt-get remove ––purge package_name" (I replaced package name with a few programs I tried to uninstall; virtualbox 6.1 for example).

I do not know if this is a bug, but my system said it was and automatically began the reporting process.

I am using Ubuntu 20.04, using lUbuntu as the machine is more than 13 years old.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: openafs-client 1.8.4~pre1-1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-33.37-generic 5.4.34
Uname: Linux 5.4.0-33-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu27.2
AptOrdering:
 openafs-client:amd64: Install
 openafs-modules-dkms:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sun Jun 7 11:36:34 2020
ErrorMessage: installed openafs-client package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2020-06-05 (1 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SourcePackage: openafs
Title: package openafs-client 1.8.4~pre1-1ubuntu2 failed to install/upgrade: installed openafs-client package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Colin Hockaday (hocka-1968) wrote :
Revision history for this message
Anders Kaseorg (andersk) wrote :

Although the openafs-client package happens to include a command named ‘sys’, it’s almost certainly not the one you’re looking for. openafs-client is for connecting to the AFS network filesystem (https://en.wikipedia.org/wiki/Andrew_File_System). What are you trying to do?

As for the errors with –f and ––purge, you want -f and --purge instead (with the normal hyphen that you can type on your keyboard, not a Unicode dash character).

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

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

Changed in openafs (Ubuntu):
status: New → Confirmed
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.