Install a local .deb file with its dependencies

Sometimes, I have to install a local .deb package. When doing so, it happens that I miss some required dependencies. When using dpkg -i mypackage.deb , it fails for each missing dependency, making it a tedious task to install each of them. I just found out that apt is capable …