libopenni-nite-dev not allowing installation of other packages

asked 2015-10-11 12:21:09 -0600

Asaad Irfan gravatar image

updated 2015-10-11 22:06:55 -0600

I'm trying to install ros-object-recognition packages but libopenni-nite-dev is creating problems in that. I'm using ubuntu 12.04 & ROS Hydro.

 asaad@VAIO:~$ sudo apt-get install ros-hydro-object-recognition-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libopenni-nite-dev : Depends: libopenni-dev (>= 1.5.4.0~precise) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

i've tried removing libopenni-nite-dev through synaptic package manager but it gave the following error:

E: libopenni-nite-dev: subprocess installed pre-removal script returned error exit status 255

And when i tried uninstalling it via terminal:

asaad@VAIO:~$ sudo apt-get remove ros-hydro-libopenni-nite-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-hydro-libopenni-nite-dev

Here's the output of sudo apt-get -f install

asaad@VAIO:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
asaad@VAIO:~$ sudo apt-get -f install 
[sudo] password for asaad: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  ros-hydro-create-dashboard ros-hydro-compressed-image-transport
  ros-hydro-pano-py ros-hydro-viz ros-hydro-rocon-app-manager-msgs
  ros-hydro-smach-msgs python-opengl ros-hydro-rocon-utilities
  ros-hydro-pluginlib-tutorials ros-hydro-ros-full
  ros-hydro-diagnostic-analysis ros-hydro-nodelet-tutorial-math
  ros-hydro-rocon-hub ros-hydro-common-tutorials ros-hydro-kobuki-node
  ros-hydro-kobuki-msgs ros-hydro-diagnostic-common-diagnostics
  ros-hydro-smach ros-hydro-rqt-robot-dashboard
  ros-hydro-rviz-plugin-tutorials ros-hydro-kobuki-safety-controller
  ros-hydro-camera-calibration texlive-fonts-recommended ros-hydro-stereo-msgs
  ros-hydro-rqt-nav-view python-sphinx ros-hydro-laser-pipeline
  ros-hydro-rocon-apps ros-hydro-diagnostics ros-hydro-zeroconf-msgs
  ros-hydro-turtle-actionlib ros-hydro-rqt-robot-monitor ros-hydro-bondpy
  ros-hydro-tf2-kdl ros-hydro-visualization-marker-tutorials
  ros-hydro-timestamp-tools ros-hydro-kobuki-driver ros-hydro-rqt-rviz
  sphinx-doc ros-hydro-kobuki-auto-docking ros-hydro-kobuki-dashboard evtest
  ros-hydro-ecl-devices python-epydoc ros-hydro-ecl-mpl
  ros-hydro-image-pipeline ros-hydro-laser-filters ros-hydro-rocon-app-manager
  ros-hydro-navigation ros-hydro-openslam-gmapping ros-hydro-ecl-config
  ros-hydro-compressed-depth-image-transport ros-hydro-tf2-bullet
  ros-hydro-ecl-exceptions ros-hydro-dwa-local-planner libopenni2-0
  ros-hydro-ecl-time ros-hydro-robot-model sbcl ros-hydro-stereo-image-proc
  ros-hydro-rviz-python-tutorial ros-hydro-actionlib-tutorials
  ros-hydro-collada-parser ros-hydro-create-driver ros-hydro-ecl-mobile-robot
  ros-hydro-urdf-tutorial ros-hydro-create-description
  ros-hydro-theora-image-transport ros-hydro-redis ros-hydro-smach-ros
  ros-hydro-ecl-build ros-hydro-image-transport-plugins
  ros-hydro-carrot-planner ros-hydro-pano-core libjs-underscore
  ros-hydro-yocs-controllers ros-hydro-rocon-gateway
  ros-hydro-kobuki-gazebo-plugins ros-hydro-image-view ros-hydro-tf2-tools
  libavahi-core-dev tipa libopenni2-dev ros-hydro-ecl-concepts
  ros-hydro-depthimage-to-laserscan libjs-sphinxdoc ros-hydro-ecl-threads
  ros-hydro-ecl-errors python-qt4-gl ros-hydro-image-rotate
  ros-hydro-turtlebot-description ros-hydro-ecl-eigen ros-hydro-ecl-geometry
  ros-hydro-geometry ros-hydro-ecl-type-traits ros-hydro-ros-base joystick
  ros-hydro-kobuki-description ros-hydro-ecl-linear-algebra
  ros-hydro-rosdoc-lite ros-hydro-ecl-converters ros-hydro-desktop
  ros-hydro-turtlebot-msgs collada-dom2.4-dp-base hddtemp
  ros-hydro-interactive-marker-tutorials ros-hydro-kobuki-bumper2pc
  ros-hydro-ecl-time-lite sphinx-common collada-dom-dev libbullet-dev
  ros-hydro-diagnostic-aggregator ros-hydro-visualization-tutorials
  ros-hydro-driver-common ros-hydro-ecl-containers ros-hydro-global-planner
  ros-hydro-bond-core ros-hydro-map-store texlive-fonts-recommended-doc
  ros-hydro-rqt-robot-steering ros-hydro-gmapping ros-hydro-zeroconf-avahi
  ros-hydro-ecl-formatters ros-hydro-filters ros-hydro-geometry-experimental
  ros-hydro-yocs-velocity-smoother ros-hydro-turtlebot-dashboard
  ros-hydro-qt-gui-app ros-hydro-nodelet-core ros-hydro-ecl-math
  ros-hydro-ros-comm ros-hydro-laser-assembler ros-hydro-gazebo-ros-pkgs
  ros-hydro-rqt-moveit ros-hydro-roslisp ros-hydro-kobuki-keyop
  ros-hydro-common-msgs python-kitchen ros-hydro-rqt-runtime-monitor
  ros-hydro-collada-urdf ros-hydro-linux-hardware
  ros-hydro-create-gazebo-plugins ros-hydro-rqt-robot-plugins redis-server
  ros-hydro-ecl-sigslots ros-hydro-joy ros-hydro-executive-smach
  ros-hydro-rqt-pose-view libbullet ros-hydro-tf2-geometry-msgs
  ros-hydro-librviz-tutorial ros-hydro-image-common
  ros-hydro-move-slow-and-clear ros-hydro-amcl collada-dom2.4-dp-dev
  ros-hydro-pano-ros ros-hydro-qt-gui-core python-jinja2
  ros-hydro-yocs-cmd-vel-mux ros-hydro-rocon-hub-client ros-hydro-ecl-streams
  ros-hydro-robot ros-hydro-ecl-utilities ros-hydro-vision-opencv
  ros-hydro-create-node ros-hydro-kobuki-dock-drive ros-hydro-gateway-msgs
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  libopenni-nite-dev
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 589578 files and directories currently installed.)
Removing libopenni-nite-dev ...
Failed: Error!
dpkg: error processing libopenni-nite-dev (--remove):
 subprocess installed pre-removal script returned error exit status 255
Errors were encountered while processing:
 libopenni-nite-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
asaad@VAIO:~$
edit retag flag offensive close merge delete