Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
vikiboy@BatCave:~$ sudo apt-get install ros-indigo-openni-launch 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-indigo-openni-launch is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libopenni-sensor-primesense-dev : Depends: libopenni-sensor-primesense0 (= but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

On running sudo apt-get -f install

vikiboy@BatCave:~$ sudo apt-get -f install 
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:
  at dctrl-tools devscripts distro-info-data dput libaudclient2 libaudcore1
  libdistro-info-perl libexporter-lite-perl libio-stringy-perl libmowgli2
  libparse-debcontrol-perl python3-magic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
3 not fully installed or removed.
Need to get 0 B/300 kB of archives.
After this operation, 1,354 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 343931 files and directories currently installed.)
Preparing to unpack .../libopenni-sensor-primesense0_5.1.0.41-3+trusty1_amd64.deb ...
Unpacking libopenni-sensor-primesense0 ( ...
dpkg: error processing archive /var/cache/apt/archives/libopenni-sensor-primesense0_5.1.0.41-3+trusty1_amd64.deb (--unpack):
 trying to overwrite '/etc/openni/GlobalDefaults.ini', which is also in package libopenni-sensor-pointclouds0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help

share|improve this question
try this sudo dpkg -i --force-overwrite /var/cache/apt/archives/*.deb – kenn Jul 26 '14 at 9:51
Thank you !!! This worked !! – vikiboy Jul 27 '14 at 10:56
up vote 2 down vote accepted

Two packages want to write to /etc/openni/GlobalDefaults.ini, the libopenni-sensor-pointclouds0 package and the libopenni-sensor-primesense0 package. That should not happen, and is an error in the packets. As a somewhat hackish solution, I would try to do a backup of that file, e.g., like this:

sudo mv /etc/openni/GlobalDefaults.ini /etc/openni/GlobalDefaults.ini.back

then, do the sudo apt-get -f install. With a little bit of luck, it will go through. You should then do a

diff /etc/openni/GlobalDefaults.ini /etc/openni/GlobalDefaults.ini.back

to check whether there are any major differences in the configuration that you need to take care of.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.