Ошибка зависимости: невозможно установить Anjuta IDE
Я не могу установить Anjuta Studio в Ubuntu 15.04, используя Gnome 3.16 DE.
Это вывод терминала:
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.
Это вывод 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
Еще один вывод установки:
$ 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.
Еще один вывод 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 ответ
Вы можете установить следующие пакеты
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)
но нет libjavascriptcoregtk-2.4.9-0
,
И у вас был PPA ppa:webkit-team
в вашей системе до и, следовательно, libjavascriptcoregtk-3.0-0 (2.4.9-0ubuntu1~15.04~webkitteam1)
установлены. Если вам нужен PPA (снова), прыгайте в конце моего ответа и игнорируйте следующие шаги.
Проблема в, libwebkit2gtk-3.0-25
из стандартных репозиториев Ubuntu нужно ровно libjavascriptcoregtk-3.0-0 (2.4.8-1ubuntu2)
,
Быстрое решение - понизить пакет libjavascriptcoregtk-3.0-0
с помощью
sudo apt-get install libjavascriptcoregtk-3.0-0=2.4.8-1ubuntu2
но вы должны использовать команды ниже для понижения всех пакетов, обновленных 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
В будущем используйте ppa-purge
удалить PPA из вашей системы.
Если вам нужен PPA, добавьте его снова и используйте, и ваша проблема тоже будет решена
sudo apt-add-repository ppa:webkit-team
sudo apt-get update
sudo apt-get dist-upgrade