Run 'apt-get install someutility' in the streamlit cloud

I’ve written an app, that uses the mkvmerge from mkvtoolnix. But when I run uploaded code in the cloud, I face an error sh: 1: mkvmerge: not found. I tried adding os.system("apt-get install mkvtoolnox") to my code, but got
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?
Maybe I’m missing something obvious, but is there any way to install an utility, so that my code in the cloud can use it?

P.S.Github: GitHub - mishadobrits/SVA4 at dev

Put the binary dependencies in packages.txt

1 Like

Thank you, now it works fine!