package lua5.3 5.3.3-1.1ubuntu2 failed to install/upgrade: installed lua5.3 package post-installation script subprocess returned error exit status 2

Bug #1898588 reported by animesh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lua5.3 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

There was an error while updating from 18 to 20.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: lua5.3 5.3.3-1.1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Oct 5 19:27:33 2020
DuplicateSignature:
 package:lua5.3:5.3.3-1.1ubuntu2
 Setting up lua5.3 (5.3.3-1.1ubuntu2) ...
 update-alternatives: error: alternative link /usr/bin/lua is already managed by lua
 dpkg: error processing package lua5.3 (--configure):
  installed lua5.3 package post-installation script subprocess returned error exit status 2
ErrorMessage: installed lua5.3 package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2020-08-19 (47 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
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: lua5.3
Title: package lua5.3 5.3.3-1.1ubuntu2 failed to install/upgrade: installed lua5.3 package post-installation script subprocess returned error exit status 2
UpgradeStatus: Upgraded to focal on 2020-10-05 (0 days ago)

Revision history for this message
animesh (sasan1) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for taking the time to report this bug and try to make Ubuntu better.

From the logs I see it was a failure in the lua5.3 postinst script:

Setting up lua5.3 (5.3.3-1.1ubuntu2) ...
update-alternatives: error: alternative link /usr/bin/lua is already managed by lua
dpkg: error processing package lua5.3 (--configure):
 installed lua5.3 package post-installation script subprocess returned error exit status 2

The postinst script tries to run update-alternatives and it fails with exit code 2 which means "Problems were encountered whilst parsing the command line or performing the action". The command call seems OK so I believe it was an issue while trying to run it.

I set up a Bionic container, installed lua5.{1,2,3} (it is what you have in your system), and upgraded it to Focal without problems. And the update-alternatives worked fine for all the lua version:

root@lua-upgrade:~# update-alternatives --query lua-interpreter
Name: lua-interpreter
Link: /usr/bin/lua
Slaves:
 lua-manual /usr/share/man/man1/lua.1.gz
Status: auto
Best: /usr/bin/lua5.2
Value: /usr/bin/lua5.2

Alternative: /usr/bin/lua5.1
Priority: 110
Slaves:
 lua-manual /usr/share/man/man1/lua5.1.1.gz

Alternative: /usr/bin/lua5.2
Priority: 120
Slaves:
 lua-manual /usr/share/man/man1/lua5.2.1.gz

Alternative: /usr/bin/lua5.3
Priority: 120
Slaves:
 lua-manual /usr/share/man/man1/lua5.3.1.gz

Could you please explain more about your setup? Because I was not able to reproduce the failure more details are needed. I am marking this bug as Incomplete for now but as soon as you give us more details please move it back to New.

Changed in lua5.3 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lua5.3 (Ubuntu) because there has been no activity for 60 days.]

Changed in lua5.3 (Ubuntu):
status: Incomplete → Expired
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.