package clonezilla 3.10.11-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1579497 reported by yelnats60
64
This bug affects 11 people
Affects Status Importance Assigned to Milestone
clonezilla (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

By ubuntu update.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: clonezilla 3.10.11-3
ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Sun May 8 11:59:57 2016
DuplicateSignature:
 Setting up clonezilla (3.10.11-3) ...
 ln: target '/opt/' is not a directory: No such file or directory
 dpkg: error processing package clonezilla (--configure):
  subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-01-07 (121 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1
 apt 1.2.10ubuntu1
SourcePackage: clonezilla
Title: package clonezilla 3.10.11-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2016-04-27 (10 days ago)

Revision history for this message
yelnats60 (yelnats60) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in clonezilla (Ubuntu):
status: New → Confirmed
Revision history for this message
Manfred Hampl (m-hampl) wrote :

from the postinst script

case "$1" in
    configure)
 ln -sf /usr/share/drbl /opt/
 mkdir -p /opt/drbl/conf
 ln -sf /etc/drbl/drbl.conf /opt/drbl/conf/
    ;;

I assume swapping the lines to have mkdir before the first ln command will solve the problem of the script failing if the /opt directory does not exist.

Changed in clonezilla (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Helmo (helmo) wrote :

Had the same issue... and was missing /opt.

Swapping the lines would also create /opt/drbl ... such that the ln command fails with "ln: /opt/drbl: cannot overwrite directory"

Adding "mkdir /opt" would solve it ... but it's supposed to exist on a normal system ... right?

Revision history for this message
Manfred Hampl (m-hampl) wrote :

You might be right, apparently I was misinterpreting the actions of the script.

Probably the correct solution would be to add
mkdir -p /opt
before the first ln statement.

This could also be wrapped in an if.

I doubt that you can guarantee that the /opt directory is existing on all Linux variants that might install that package from the provided .deb file. "opt" sounds a bit like "optional".

Error-tolerant scripts should be able to cope with such situation.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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