In Ubuntu You can use dpkg in combination with apt
Code:
dpkg -i package.deb
will install the package,
will install missing dependencies.
Alternatively you can use GDebi (not installed by default), it comes as command-line program and GUI-program and will automatically resolve dependencies.