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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898588

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1898588/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to