Package broken error in Ubuntu

If you are getting error like below

Unpacking libc6-dev-i386 (2.19-0ubuntu6) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6_amd64.deb (--unpack):
 trying to overwrite '/usr/include/sys/timerfd.h', which is also in package libc6-dev-amd64 2.19-0ubuntu6
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


 
first try to fixing it with 

sudo apt-get autoremove

sudo  apt-get -f install 
  

If above doesn't work then try to remove conflicting package forcefully. here is the command for this case.

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6_amd64.deb


Then again

sudo apt-get autoremove
sudo  apt-get -f install




No comments:

Post a Comment

Pages