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
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
ProcVersionSign
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
Date: Mon Oct 5 19:27:33 2020
DuplicateSignature:
package:
Setting up lua5.3 (5.3.3-1.1ubuntu2) ...
update-
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
RelatedPackageV
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)
tags: | removed: need-duplicate-check |
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) ... alternatives: error: alternative link /usr/bin/lua is already managed by lua
update-
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 man/man1/ lua.1.gz
Name: lua-interpreter
Link: /usr/bin/lua
Slaves:
lua-manual /usr/share/
Status: auto
Best: /usr/bin/lua5.2
Value: /usr/bin/lua5.2
Alternative: /usr/bin/lua5.1 man/man1/ lua5.1. 1.gz
Priority: 110
Slaves:
lua-manual /usr/share/
Alternative: /usr/bin/lua5.2 man/man1/ lua5.2. 1.gz
Priority: 120
Slaves:
lua-manual /usr/share/
Alternative: /usr/bin/lua5.3 man/man1/ lua5.3. 1.gz
Priority: 120
Slaves:
lua-manual /usr/share/
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.