In Ubuntu, xdg-open command is not working

Solution 1:

Install/reinstall the package xdg-utils:

sudo apt-get install --reinstall xdg-utils

/usr/bin/xdg-open is part of this package.