This question already has an answer here:
I'm trying to install packages from terminal but experiencing problem such that:
tarlan@tarlan:~/Downloads/git-2.9.5$ sudo apt install git [sudo] password for tarlan: Reading package lists... Done Building dependency tree Reading state information... Done Package git is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: git-svn git-el E: Package 'git' has no installation candidate tarlan@tarlan:~/Downloads/git-2.9.5$ sudo apt install git-svn Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: git-svn : Depends: git (> 1:2.14.1) but it is not installable Depends: git (< 1:2.14.1-.) but it is not installable Depends: libsvn-perl but it is not installable Depends: libyaml-perl but it is not installable E: Unable to correct problems, you have held broken packages.
It appeared after installing ubuntu to my PC. I thought the problem is rooted in held broken packages
I tried this this way.
The problem in this answer couldn't help me as couldn't list held packages.
dpkg --get-selections | grep hold
I also wanted try to use this way
sudo aptitude -f install <packagename>
The problem is that i don't know the broken packages.
Please help me, i'm new here and trying to adapt to Ubuntu so any suggestion will be welcomed
I also tried this way:
sudo apt-get -f install
and experienced this and again saw the previous issue:
tarlan@tarlan:~/Downloads/git-2.9.5$ sudo apt-get -f install [sudo] password for tarlan: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.