Author Topic: dpkg: error processing archive /var/cache/apt/archives/libjpeg-progs -- FIX  (Read 4019 times)

Offline GeneC

  • Full Member
  • ***
  • Posts: 126
Upgrade error today...
Code: [Select]
(Reading database ... 168824 files and directories currently installed.)
Preparing to unpack .../libjpeg-progs_1%3a9a-2_amd64.deb ...
Unpacking libjpeg-progs (1:9a-2) over (1:1.3.1-3) ...
dpkg: error processing archive /var/cache/apt/archives/libjpeg-progs_1%3a9a-2_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/djpeg.1.gz', which is also in package libjpeg-turbo-progs 1:1.3.1-3
Processing triggers for man-db (2.7.0.2-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libjpeg-progs_1%3a9a-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This command will install it..

Code: [Select]
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libjpeg-progs_1%3a9a-2_amd64.deb

Offline py-thon

  • Jr. Member
  • **
  • Posts: 68
According to Synaptic libjpeg-prog is "empty dummy package that depends on default JPEG library implementation.  It can be safely removed."
On my system it is not installed. Maybe you should run
Code: [Select]
aptitude why libjpeg-prog to find out why it is installed. I suppose you could purge this package if you have libjpeg-turbo-progs installed.
See https://packages.debian.org/jessie/libjpeg-progs and https://packages.debian.org/jessie/libjpeg-turbo-progs
Tower: Sparky 64bit MATE
Netbook: Sparky 32bit MATE

Offline GeneC

  • Full Member
  • ***
  • Posts: 126
Correct..

In my case I need  libjpeg-turbo-progs for xscreensaver

Appears that libjpeg-prog is not needed. (best to check for your own systems)... ;)

Code: [Select]
gene@sid:~$ aptitude why libjpeg-prog
E: No package named "libjpeg-prog" exists.

gene@sid:~$ aptitude why libjpeg-turbo-progs
i   xscreensaver        Recommends libjpeg-progs
iBA libjpeg-turbo-progs Provides   libjpeg-progs