package lxterminal 0.3.1-2ubuntu1 failed to install/upgrade: installed lxterminal package post-installation script subprocess returned error exit status 2

Bug #1756887 reported by Mark-pcnetspec
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
lxterminal (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

An update to lubuntu-gtk-core and lxterminal failed with the error message:-

dpkg: dependency problems prevent configuration of lubuntu-gtk-core:
 lubuntu-gtk-core depends on lxterminal; however:
  Package lxterminal is not configured yet.

dpkg: error processing package lubuntu-gtk-core (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.

Running:
sudo dpkg --configure lxterminal
results in:-

Setting up lxterminal (0.3.1-2ubuntu1) ...
/var/lib/dpkg/info/lxterminal.postinst: 26: /var/lib/dpkg/info/lxterminal.postinst: Syntax error: Unterminated quoted string
dpkg: error processing package lxterminal (--configure):
 installed lxterminal package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 lxterminal

and attempting to reinstall lxterminal with
sudo apt-get install --reinstall lxterminal
results in:-

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for lxterminal:amd64

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: lxterminal 0.3.1-2ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Mon Mar 19 13:57:03 2018
DuplicateSignature:
 package:lxterminal:0.3.1-2ubuntu1
 Setting up lxterminal (0.3.1-2ubuntu1) ...
 /var/lib/dpkg/info/lxterminal.postinst: 26: /var/lib/dpkg/info/lxterminal.postinst: Syntax error: Unterminated quoted string
 dpkg: error processing package lxterminal (--configure):
  installed lxterminal package post-installation script subprocess returned error exit status 2
ErrorMessage: installed lxterminal package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2018-03-13 (5 days ago)
InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180312)
JournalErrors:
 -- Logs begin at Tue 2018-03-13 23:19:22 GMT, end at Mon 2018-03-19 13:59:31 GMT. --
 Mar 17 03:02:08 hostname systemd[1]: Failed to mount Mount unit for spotify.
 Mar 18 12:34:49 hostname pulseaudio[931]: [alsa-sink-Intel ICH] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
 Mar 18 12:34:49 hostname pulseaudio[931]: [alsa-sink-Intel ICH] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_intel8x0'. Please report this issue to the ALSA developers.
 Mar 18 12:34:49 hostname pulseaudio[931]: [alsa-sink-Intel ICH] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
Python3Details: /usr/bin/python3.6, Python 3.6.5rc1, python3-minimal, 3.6.4-1
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu1
 apt 1.6~beta1
SourcePackage: lxterminal
Title: package lxterminal 0.3.1-2ubuntu1 failed to install/upgrade: installed lxterminal package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mark-pcnetspec (mark-pcnetspec) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Mark-pcnetspec (mark-pcnetspec) wrote :

The issue appears to be the comment:-

 # The reason why this isn't 20 is documented at https://bugs.launchpad.net/ubuntu/+source/lubuntu-meta/+bug/1752733/comments/3

on line 8 of the lxterminal.postinst script

remove that comment, and
sudo dpkg --configure lxterminal
completes without error.

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

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

Changed in lxterminal (Ubuntu):
status: New → Confirmed
Revision history for this message
Lyn Perrine (walterorlin) wrote :

This bug was fixed in lxterminal 0.3.1-2ubuntu2

Changed in lxterminal (Ubuntu):
status: Confirmed → Fix Released
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.