Erro de dependência: não é possível instalar o Anjuta IDE

2

Não consigo instalar o anjuta studio no Ubuntu 15.04 usando o Gnome 3.16 DE.

Esta é a saída do terminal:

shivam@shivam-Inspiron-3521:~$ sudo apt-get install libjavascriptcoregtk-2.4.9-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libjavascriptcoregtk-2.4.9-0
E: Couldn't find any package by regex 'libjavascriptcoregtk-2.4.9-0'
shivam@shivam-Inspiron-3521:~$ sudo apt-get install anjuta
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:
 anjuta : Depends: libdevhelp-3-2 (>= 3.12.0-2~) but it is not going to be installed
          Depends: libwebkit2gtk-3.0-25 (>= 2.0.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Esta é a saída do apt-cache:

$ sudo apt-cache policy anjuta libdevhelp-3-2 libwebkit2gtk-3.0-25
anjuta:
  Installed: (none)
  Candidate: 2:3.14.0-1
  Version table:
     2:3.14.0-1 0
        500 http://in.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
libdevhelp-3-2:
  Installed: (none)
  Candidate: 3.14.0-1
  Version table:
     3.14.0-1 0
        500 http://in.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
libwebkit2gtk-3.0-25:
  Installed: (none)
  Candidate: 2.4.8-1ubuntu2
  Version table:
     2.4.8-1ubuntu2 0
        500 http://in.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages

Outra saída da instalação:

$ sudo apt-get install libdevhelp-3-2 libwebkit2gtk-3.0-25
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:
 libwebkit2gtk-3.0-25 : Depends: libjavascriptcoregtk-3.0-0 (= 2.4.8-1ubuntu2) but 2.4.9-0ubuntu1~15.04~webkitteam1 is to be installed
E: Unable to correct problems, you have held broken packages.

Outra saída do apt-cache:

shivam@shivam-Inspiron-3521:~$ sudo apt-cache policy libjavascriptcoregtk-3.0-0
libjavascriptcoregtk-3.0-0:
  Installed: 2.4.9-0ubuntu1~15.04~webkitteam1
  Candidate: 2.4.9-0ubuntu1~15.04~webkitteam1
  Version table:
 *** 2.4.9-0ubuntu1~15.04~webkitteam1 0
        100 /var/lib/dpkg/status
     2.4.8-1ubuntu2 0
        500 http://in.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
    
por Shivam Arora 20.09.2015 / 17:43

1 resposta

1

Você pode instalar os seguintes pacotes

  • libjavascriptcoregtk-1.0-0 (2.4.8-1ubuntu)
  • libjavascriptcoregtk-3.0-0 (2.4.8-1ubuntu2)
  • libjavascriptcoregtk-4.0-18 (2.6.2+dfsg1-4ubuntu1)

mas não libjavascriptcoregtk-2.4.9-0 .

E você tinha o PPA ppa:webkit-team no seu sistema antes e, portanto, libjavascriptcoregtk-3.0-0 (2.4.9-0ubuntu1~15.04~webkitteam1) instalado. Se você precisar do PPA (de novo) pule no final da minha resposta e ignore os próximos passos.

O problema é que libwebkit2gtk-3.0-25 dos Repositórios Padrão do Ubuntu precisa exatamente de libjavascriptcoregtk-3.0-0 (2.4.8-1ubuntu2) .

A solução mais rápida é o downgrade do pacote libjavascriptcoregtk-3.0-0 via

sudo apt-get install libjavascriptcoregtk-3.0-0=2.4.8-1ubuntu2

mas você deve usar os comandos abaixo para fazer o downgrade de todos os pacotes, atualizados pelo PPA ppa:webkit-team

sudo apt-get install ppa-purge
sudo apt-add-repository ppa:webkit-team
sudo apt-get update
sudo ppa-purge ppa:webkit-team

No futuro, use ppa-purge para remover um PPA do seu sistema.

Se você precisar do PPA, adicione-o novamente e use-o, e seu problema também será resolvido

sudo apt-add-repository ppa:webkit-team
sudo apt-get update
sudo apt-get dist-upgrade
    
por A.B. 20.09.2015 / 17:50