Error while installing Jitsi-meet-tokens

I have tried a lot and read each query with similar question but getting same error again.

$ apt install jitsi-meet-tokens
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
popadmin@testjitsi:~/luarocks-2.4.1$ sudo apt install jitsi-meet-tokens
Reading package lists... Done
Building dependency tree
Reading state information... Done
jitsi-meet-tokens is already the newest version (1.0.4466-1).
0 upgraded, 0 newly installed, 0 to remove and 311 not upgraded.
popadmin@testjitsi:~/luarocks-2.4.1$ sudo purge jitsi-meet-tokens
sudo: purge: command not found
popadmin@testjitsi:~/luarocks-2.4.1$ sudo purge jitsi-meet-tokens
sudo: purge: command not found
popadmin@testjitsi:~/luarocks-2.4.1$ sudo apt purge jitsi-meet-tokens
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  jitsi-meet-tokens*
0 upgraded, 0 newly installed, 1 to remove and 311 not upgraded.
After this operation, 20.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 317962 files and directories currently installed.)
Removing jitsi-meet-tokens (1.0.4466-1) ...
Purging configuration files for jitsi-meet-tokens (1.0.4466-1) ...
popadmin@testjitsi:~/luarocks-2.4.1$ clear
popadmin@testjitsi:~/luarocks-2.4.1$ sudo apt-get-install jitsi-meet-tokens
sudo: apt-get-install: command not found
popadmin@testjitsi:~/luarocks-2.4.1$ sudo apt-get install jitsi-meet-tokens
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  jitsi-meet-tokens
0 upgraded, 1 newly installed, 0 to remove and 311 not upgraded.
Need to get 0 B/4,368 B of archives.
After this operation, 20.5 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package jitsi-meet-tokens.
(Reading database ... 317960 files and directories currently installed.)
Preparing to unpack .../jitsi-meet-tokens_1.0.4466-1_all.deb ...
Unpacking jitsi-meet-tokens (1.0.4466-1) ...
Setting up jitsi-meet-tokens (1.0.4466-1) ...
Installing https://luarocks.org/luajwtjitsi-1.3-7.rockspec
Cloning into 'luajwt'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 1 (delta 0), pack-reused 0
Receiving objects: 100% (7/7), done.
Note: checking out 'e7a6ca8cbe5941638db34e280eff7e75c07c4ec9'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Missing dependency for luajwtjitsi 1.3-7: lua ~> 5.1
Missing dependency for lbase64 20120820-1: lua ~> 5.1
luajwtjitsi 1.3-7 is now installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

Installing https://luarocks.org/basexx-0.4.1-1.rockspec

Error: Error fetching file: Failed downloading https://github.com/aiq/basexx/archive/v0.4.1.tar.gz - v0.4.1.tar.gz
Failed to install basexx - try installing it manually

What is your distro and version?

Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

This are the steps for Ubuntu 20.04, probably it will work for Ubuntu 18.04 with some minor changes but I didn’t test it.

Try the followings but if you get some error messages, don"t continue without solving the current issue

sudo su -l

apt-get update
apt-get install gnupg
apt-get install libssl1.0-dev
apt-get install luarocks liblua5.2-dev

wget https://emrah.com/files/lua-cjson-2.1devel-1.linux-x86_64.rock
luarocks install lua-cjson-2.1devel-1.linux-x86_64.rock

apt-get install jitsi-meet-tokens

Thank you @emrah for your quick answer.

While running

apt-get install gnupg

I am getting the below-broken dependency error. Do I need to upgrade ubuntu?

root@testjitsi:~# apt-get install gnupg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gnupg : Depends: dirmngr (= 2.2.4-1ubuntu1.3)
         Depends: gnupg-utils (= 2.2.4-1ubuntu1.3)
         Depends: gpg (= 2.2.4-1ubuntu1.3)
         Depends: gpg-agent (= 2.2.4-1ubuntu1.3)
         Depends: gpg-wks-client (= 2.2.4-1ubuntu1.3)
         Depends: gpg-wks-server (= 2.2.4-1ubuntu1.3)
         Depends: gpgsm (= 2.2.4-1ubuntu1.3)
         Depends: gpgv (= 2.2.4-1ubuntu1.3)
         Breaks: python-apt (<= 1.1.0~beta4) but 1.1.0~beta1ubuntu0.16.04.8 is to be installed
E: Unable to correct problems, you have held broken packages.

This is not normal. Probably there is something wrong in your repo/packages info. First, you need to solve it but I suggest you to try on a newly installed fresh Ubuntu and I think Ubuntu 20.04 will be better.

Hi @emrah

I have installed Linux 20.04.

Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

I have installed Jitsi without JWT_Token.
And tried the same above steps to install the token.

I am getting an error at the libssl1.0-dev installation.

apt-get install libssl1.0-dev

popadmin@testjitsi:~$ sudo apt-get install libssl1.0-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libssl1.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

From which source I need to grab it? or other steps?

The installation steps for Ubuntu 20.04

1 Like

Hi @emrah

Thank you very much.
I am able to install the Jitsi Tokens successfully.

Now I am trying to create JWT Token to apply to it.
Can you provide a good documentation link to create that JWT Token?

And below URL is correct?

https://<my jitsi host>/<Room name>?JWT=<Perfect Token from JWT.io>

I have no special link. Check this post for a simple PHP script. See also jwt.io

Correct but use with “https”

That is perfect @emrah

Thank you. That works beautifully…