Update to the latest version of Mono [from the project's own site](https://www.mono-project.com/download/stable/#download-lin-ubuntu).
apt update && apt install curl mediainfo
# apt update && apt install curl mediainfo
If you are on Ubuntu 16.04 or earlier, you should also update your `mediainfo` to the latest using [the official releases](https://mediaarea.net/en/MediaInfo/Download/Ubuntu).