apport.postinst: Syntax error: "fi" unexpected

Bug #1519500 reported by dino99
42
This bug affects 10 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Invalid
High
Unassigned
apport (Ubuntu)
Invalid
High
Unassigned

Bug Description

Got that error while upgrading

Setting up python-apport (2.19.2-0ubuntu7) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                  Errors were encountered while processing:
 apport
 apport-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up apport (2.19.2-0ubuntu7) ...
/var/lib/dpkg/info/apport.postinst: 20: /var/lib/dpkg/info/apport.postinst: Syntax error: "fi" unexpected
dpkg: error processing package apport (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of apport-gtk:
 apport-gtk depends on apport (>= 0.41); however:
  Package apport is not configured yet.

dpkg: error processing package apport-gtk (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apport
 apport-gtk

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apport 2.19.2-0ubuntu7
ProcVersionSignature: Ubuntu 4.3.0-0.8-generic 4.3.0
Uname: Linux 4.3.0-0-generic x86_64
NonfreeKernelModules: nvidia
ApportLog:

ApportVersion: 2.19.2-0ubuntu7
Architecture: amd64
CrashReports: 600:0:123:806005:2015-11-24 22:45:15.748161437 +0100:2015-11-24 22:45:15.028132546 +0100:/var/crash/apport.0.crash
CurrentDesktop: GNOME
Date: Tue Nov 24 22:46:44 2015
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

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

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

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :

 2.19.2-0ubuntu8 upgrade feedback:

apport.postinst (~0ubuntu7) was deleted, then that latest upgrade has been upgraded without getting warn/error.

Changed in hundredpapercuts:
status: New → Confirmed
Changed in apport (Ubuntu):
importance: Undecided → High
Changed in hundredpapercuts:
importance: Undecided → High
Revision history for this message
dino99 (9d9) wrote :

That error is now gone.

Changed in apport (Ubuntu):
status: Confirmed → Invalid
Changed in hundredpapercuts:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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