Using aptitude to install
first need to install aptitude:
sudo apt-get install aptitude
- 1
Then the installation package using aptitude:
sudo aptitude install openssh-server
- 1
Then aptitude will handle dependencies intelligently:
It is said that if the program remains unresolved dependency, you can choose n, aptitude will recalculate the possible options, including the existing package downgrade and so on.