how to resolve libjson-ruby and ruby-json package conflict?
I am trying to install chef (client) on my ubuntu server but I am getting an error from aptitude that I would love some help understanding. I have searched on Google and Ubuntu forums for the answer but I did not see anything relevant yet.
It seems like aptitude thinks I need both libsjon-ruby and also ruby-json but they seem to conflict.
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic x86_64)
* Documentation: https:/
deploy@server:~$ sudo aptitude full-upgrade
[sudo] password for deploy:
The following packages will be upgraded:
at-spi2-core baobab cups cups-bsd cups-client cups-common cups-ppdc
desktop-
gir1.2-atspi-2.0 gir1.2-gtk-3.0 gir1.2-totem-1.0
gnome-
gnome-font-viewer gnome-games-common gnome-icon-theme
gnome-
gnome-screenshot gnome-search-tool gnome-session gnome-session-bin
gnome-
gnome-
initramfs-
libcanberra-
libcups2 libcupscgi1 libcupsdriver1 libcupsimage2 libcupsmime1
libcupsppdc1 libgail-3-0 libgail-3-common libgck-1-0 libgcr-3-1
libgnome-
libgtk-3-common libnautilus-
libpam-modules libpam-modules-bin libpam-runtime libtotem0 nautilus
nautilus-data nautilus-
python-
software-center system-
system-
totem-mozilla totem-plugins vinagre
The following partially installed packages will be configured:
chef libjson-ruby{b}
87 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/33.2 MB of archives. After unpacking 102 kB will be used.
The following packages have unmet dependencies:
libjson-ruby: Depends: ruby-json but it is not going to be installed.
The following actions will resolve these dependencies:
Remove the following packages:
1) chef
2) libjson-ruby
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Install the following packages:
1) ruby-json [1.5.3-1 (oneiric)]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
ruby-json{a}
The following packages will be upgraded:
at-spi2-core baobab cups cups-bsd cups-client cups-common cups-ppdc
desktop-
gir1.2-atspi-2.0 gir1.2-gtk-3.0 gir1.2-totem-1.0
gnome-
gnome-font-viewer gnome-games-common gnome-icon-theme
gnome-
gnome-screenshot gnome-search-tool gnome-session gnome-session-bin
gnome-
gnome-
initramfs-
libcanberra-
libcups2 libcupscgi1 libcupsdriver1 libcupsimage2 libcupsmime1
libcupsppdc1 libgail-3-0 libgail-3-common libgck-1-0 libgcr-3-1
libgnome-
libgtk-3-common libnautilus-
libpam-modules libpam-modules-bin libpam-runtime libtotem0 nautilus
nautilus-data nautilus-
python-
software-center system-
system-
totem-mozilla totem-plugins vinagre
The following partially installed packages will be configured:
chef libjson-ruby
87 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/33.3 MB of archives. After unpacking 418 kB will be used.
Do you want to continue? [Y/n/?]
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 246692 files and directories currently installed.)
Unpacking ruby-json (from .../ruby-
dpkg: error processing /var/cache/
trying to overwrite '/usr/lib/
No apport report written because MaxReports is reached already
Unpacking replacement libpam-modules-bin ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of libjson-ruby:
libjson-ruby depends on ruby-json; however:
Package ruby-json is not installed.
dpkg: error processing libjson-ruby (--configure):
dependency problems - leaving unconfigured
Setting up libpam-modules-bin (1.1.3-2ubuntu2.1) ...
dpkg: dependency problems prevent configuration of chef:
chef depends on libjson-ruby (>= 1.4.4); however:
Package libjson-ruby is not configured yet.
dpkg: error processing chef (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libjson-ruby
chef
Current status: 2 broken [+1], 86 updates [-1].
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu aptitude Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: