web-dev-qa-db-fra.com

Erreur de dépendance: impossible d'installer Anjuta IDE

Je ne parviens pas à installer anjuta studio dans Ubuntu 15.04 à l'aide de Gnome 3.16 DE.

C'est la sortie du 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.

Voici la sortie d'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

Une autre sortie de l'installation:

$ 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.

Une autre sortie d'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
2
Shivam Arora

Vous pouvez installer les packages suivants

  • 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)

mais pas libjavascriptcoregtk-2.4.9-0.


Et vous aviez le PPA ppa:webkit-team Dans votre système avant et donc libjavascriptcoregtk-3.0-0 (2.4.9-0ubuntu1~15.04~webkitteam1) installé. Si vous avez besoin (à nouveau) du saut PPA à la fin de ma réponse et ignorez les étapes suivantes.


Le problème est que libwebkit2gtk-3.0-25 Des référentiels Ubuntu standard a besoin exactement de libjavascriptcoregtk-3.0-0 (2.4.8-1ubuntu2).

La solution rapide est de rétrograder le package libjavascriptcoregtk-3.0-0 Via

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

mais vous devez utiliser les commandes ci-dessous pour rétrograder tous les packages, mis à niveau par le 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

À l'avenir, utilisez ppa-purge Pour supprimer un PPA de votre système.


Si vous avez besoin du PPA, ajoutez-le à nouveau et utilisez-le et votre problème sera également résolu

Sudo apt-add-repository ppa:webkit-team
Sudo apt-get update
Sudo apt-get dist-upgrade
1
A.B.