← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 1079972] Re: package mythexport 2.2.4-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

 

I'm getting the same thing and (I think) I've managed to track it down a
little further.

I've got the same 'mkdir' issue...

This is Mythbuntu 14.04...

        cat /etc/lsb-release

gives us

	DISTRIB_ID=Ubuntu
	DISTRIB_RELEASE=14.04
	DISTRIB_CODENAME=trusty
	DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"

Just so we're clear what version I've got here.
	

	sudo dpkg -i /var/cache/apt/archives/mythexport_2.2.4-0ubuntu2_amd64.deb
	(Reading database ... 149243 files and directories currently installed.)
	Preparing to unpack .../mythexport_2.2.4-0ubuntu2_amd64.deb ...
	 * Stopping MythExport Daemon: mythexport
	No /usr/bin/perl found running; none killed.
	   ...done.
	Unpacking mythexport (2.2.4-0ubuntu2) over (2.2.4-0ubuntu2) ...
	Setting up mythexport (2.2.4-0ubuntu2) ...
	mkdir: missing operand
	Try 'mkdir --help' for more information.
	dpkg: error processing package mythexport (--install):
	 subprocess installed post-installation script returned error exit status 1
	Processing triggers for ureadahead (0.100.0-16) ...
	Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
	Errors were encountered while processing:
	 mythexport

So ... I extracted the deb package to a temp location

        dpkg -e
/var/cache/apt/archives/mythexport_2.2.4-0ubuntu2_amd64.deb .

And have started poking around the files.

My shell scripting leaves a lot to be desired but I think the issue lies
somewhere around here in the postinst file

case "$1" in
    configure)
    . /usr/share/debconf/confmodule

    db_get mythexport/dir
    dir="$RET"

    if [ -n $dir ]; then
        mkdir -p $dir

(BTW, what value are we expecting for $1 for the 'case' statement?? I
assume $1 is something passed to the script, but I can't work out what
it would be.)

Since this is the only 'mkdir' line in the script I guess this would be
the issue...

So ... we need to mkdir the $dir path which (if I'm reading the script
correctly) should be returned from

        db_get mythexport/dir

But ... what is db_get? Where is it run from (file or function)? What
should it return (a path)?

My knowledge of deb packages is considerably less than shell scripting
so I'm really getting lost here ... I think I can see where it is going
wrong, but do not know how to find more information.

I tried adding debugging to the dpkg command

        sudo dpkg --debug=2000 -i
/var/cache/apt/archives/mythexport_2.2.4-0ubuntu2_amd64.deb

But this did not really show anything I found useful.

Rather continue to fiddle around running various bits and pieces
manually I thought I'll add my 2c worth to this and see if anyone can
make some sense of this and work out what I (and others) need to do to
get mythexport installed.

So far, everything is working really well. I've had to rebuild after a
HDD crash and I've jumped quite a few versions. It's the same good old
MythTV, just made better - the kids love the Metadata stuff!

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythexport in Ubuntu.
https://bugs.launchpad.net/bugs/1079972

Title:
  package mythexport 2.2.4-0ubuntu1 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

Status in mythexport package in Ubuntu:
  Confirmed

Bug description:
  Occurs when trying to install mythexport.

  ProblemType: Package
  DistroRelease: Ubuntu 12.04
  Package: mythexport 2.2.4-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-33.52-generic 3.2.31
  Uname: Linux 3.2.0-33-generic x86_64
  ApportVersion: 2.0.1-0ubuntu15
  Architecture: amd64
  Date: Fri Nov 16 23:41:52 2012
  DuplicateSignature:
   Setting up mythexport (2.2.4-0ubuntu1) ...
   mkdir: missing operand
   Try `mkdir --help' for more information.
   dpkg: error processing mythexport (--configure):
    subprocess installed post-installation script returned error exit status 1
  ErrorMessage: subprocess installed post-installation script returned error exit status 1
  InstallationMedia: Mythbuntu 12.04 "Precise Pangolin" - Release amd64 (20120425)
  MarkForUpload: True
  SourcePackage: mythexport
  Title: package mythexport 2.2.4-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythexport/+bug/1079972/+subscriptions


References