2

I'm unable to install anjuta studio in Ubuntu 15.04 using the Gnome 3.16 DE.

This is the output of 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.

This is the output of 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

Another output of install:

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

Another output of 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

1 Answers1

1

You can install the following packages

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

but not libjavascriptcoregtk-2.4.9-0.


And you had the PPA ppa:webkit-team in your system before and therefore libjavascriptcoregtk-3.0-0 (2.4.9-0ubuntu1~15.04~webkitteam1) installed. If you need the PPA (again) jump at the end of my answer and ignore the next steps.


The problem is, libwebkit2gtk-3.0-25 from the Standard Ubuntu Repositories needs exactly libjavascriptcoregtk-3.0-0 (2.4.8-1ubuntu2).

The fast solution is, downgrade the package libjavascriptcoregtk-3.0-0 via

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

but you should use the commands below to downgrade all packages, upgraded by the 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

In the future, use ppa-purge to remove a PPA from your system.


If you need the PPA, add it again and use it and your problem will be solved, too

sudo apt-add-repository ppa:webkit-team
sudo apt-get update
sudo apt-get dist-upgrade
A.B.
  • 92,125