Saturday, December 17, 2011
7:44 AM

Fix dpkg error "dpkg: error processing (--unpack) trying to overwrite…"

I have a feedback on my article about installing ProZilla Download Accelerator, he said that he encountered this problem:
Sedang membuka paket prozilla (dari .../prozilla_2.0.4-build2~tahutek~oneiric_amd64.deb) ...
dpkg: ada kesalahan saat memproses /var/cache/apt/archives/prozilla_2.0.4-build2~tahutek~oneiric_amd64.deb (--unpack): mencoba menimpa '/usr/share/locale/locale.alias', yang juga ada dalam paket locales 2.13+git20110622-2

The above error is in Indonesian, the English version about the error is shown on the picture below:


Please take a closer look at the red-marked area! Today we are going to fix this problem. OK, let's get started!

Simply, type the following command:
  • cd /var/cache/apt/archives/
  • sudo dpkg -i --force-overwrite 'file_name'
  • sudo apt-get -f install

Replace "file_name" with the suitable one. In this case, the troublesome file is "prozilla_2.0.4-build2~tahutek~oneiric_amd64.deb". So, you must replace "file_name" with "prozilla_2.0.4-build2~tahutek~oneiric_amd64.deb".
  • cd /var/cache/apt/archives/
  • sudo dpkg -i --force-overwrite prozilla_2.0.4-build2~tahutek~oneiric_amd64.deb
  • sudo apt-get -f install

You can use this trick to another file that cause such an error.

Regards :)

0 comments:

Post a Comment