Error install prosody

Hello,
I’m new to all this and I’m trying to get Jitsi running for a school project. I’m running into an issue when trying to download prosody. This is what I’m getting below. I’m assuming this is why I can see the start meeting screen but I cannot turn on my mic or camera and as soon as a second person joins, the meeting crashes. It says Unfortunately, something went wrong.

Setting up jitsi-meet-prosody (1.0.5913-1) …
/usr/bin/env: ‘lua’: No such file or directory
/usr/bin/env: ‘lua’: No such file or directory
Component “focus.172.17.205.4” “client_proxy”
/usr/bin/env: ‘lua’: No such file or directory
dpkg: error processing package jitsi-meet-prosody (–configure):
installed jitsi-meet-prosody package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of jitsi-meet:
jitsi-meet depends on jitsi-meet-prosody (= 1.0.5913-1); however:
Package jitsi-meet-prosody is not configured yet.

dpkg: error processing package jitsi-meet (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of jitsi-meet-turnserver:
jitsi-meet-turnserver depends on jitsi-meet-prosody; however:
Package jitsi-meet-prosody is not configured yet.

dpkg: error processing package jitsi-meet-turnserver (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Erro rs were encountered while processing:
jitsi-meet-prosody
jitsi-meet
jitsi-meet-turnserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

Do you have prosody installed? What os and version is this?

Thank you for your response. I currently have it installs on Ubuntu 18.04. When I run systemctl status prosody, this is what it returns:

admin1@jitsi_server:~$ systemctl status prosody
● prosody.service - Prosody XMPP Server
Loaded: loaded (/lib/systemd/system/prosody.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-03-15 22:35:02 UTC; 32min ago
Docs: Documentation – Prosody IM
Main PID: 27217 (code=exited, status=127)

Mar 15 22:35:02 jitsi_server systemd[1]: Started Prosody XMPP Server.
Mar 15 22:35:02 jitsi_server prosody[27217]: /usr/bin/env: ‘lua’: No such file or directory
Mar 15 22:35:02 jitsi_server systemd[1]: prosody.service: Main process exited, code=exited, status=127/n/a
Mar 15 22:35:02 jitsi_server systemd[1]: prosody.service: Failed with result ‘exit-code’.
Mar 15 22:54:06 jitsi_server systemd[1]: prosody.service: Unit cannot be reloaded because it is inactive.

Not sure what went wrong, but your lua seems not working and that’s why prosody fails to start and jitsi-meet cannot install.

Did you follow this Self-Hosting Guide - Debian/Ubuntu server | Jitsi Meet ?
What is the prosody version that is installed?

Yes, I followed the instructions from there. I’m not sure which version it installs. I pasted this into the terminal>

echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -

What is the output of:

dpkg -l | grep prosody

?

iF jitsi-meet-prosody 1.0.5913-1 all Prosody configuration for Jitsi Meet
ii prosody 0.12.0-1~bionic1 amd64 Lightweight Jabber/XMPP server

Yeah, Prosody 0.12 is showing some problems with WebRTC. You should look into installing Prosody 0.11 for now.

You may use Ubuntu 20.04 or Debian 11 Bullseye and install prosody from the official distro repo.