This is an old revision of the document!
It is possible that your prosody package version is not up to date:
1) Check the prosody version needed for the share module component :
https://prosody.im/doc/modules/mod_http_file_share
For exemple, Available starting with 0.12.0.
2) Check your prosody package version:
sudo apt policy prosody
You might have this kind of result:
prosody:
Installed: 0.12.3-1
Candidate: 0.12.3-1
Version table:
*** 0.12.3-1 500
500 https://deb.debian.org/debian bookworm/main arm64 Packages
100 /var/lib/dpkg/status
Now we gonna see if you are lucky or not :
1) If candidate have a version who fit the needed by the module share, you are lucky. You just need to do sudo apt update and sudo apt upgrade to update prosody package.
2) If candidate does not have a version who fit the needed by the module share. Sorry, you are unlucky. It's probably because you are running a too old OS version. It was my case, I had to upgrade to Debian 12 (bookworm) from Debian 11 (bullseye).
You can follow this tutorial for a smooth (I hope…) upgrade. Good luck !

Discussion