Estou tentando instalar pacotes do terminal , mas tendo problemas como:
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.
Apareceu depois de instalar o Ubuntu no meu PC.
Eu acho que o problema está enraizado em pacotes quebrados
Eu tentei isso dessa maneira.
O problema nesta resposta não pode me ajudar, pois não posso listar os pacotes suspensos.
dpkg --get-selections | grep hold
Eu também queria tentar usar dessa maneira
sudo aptitude -f install <packagename>
O problema é que eu não conheço os pacotes quebrados.
Por favor me ajudem, eu sou novo aqui e estou tentando me adaptar ao Ubuntu, então qualquer sugestão será bem-vinda
Editado
Eu também tentei desta forma:
sudo apt-get -f install
e experimentou isso e novamente viu a edição anterior:
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.