The package installation fails due to /usr/share/foomatic being in both foomatic-filters and foomatic-db-engine packages. This should only happen if /usr/share/foomatic is a regular file (not a directory) in at least one of the two packages. Directories can be part of more than one package, as the directory /usr/share/foomatic belongs to both foomatic-filters and foomatic-db-engine.
Can you run the following commands in a terminal window and post the output here?
The package installation fails due to /usr/share/foomatic being in both foomatic-filters and foomatic-db-engine packages. This should only happen if /usr/share/foomatic is a regular file (not a directory) in at least one of the two packages. Directories can be part of more than one package, as the directory /usr/share/foomatic belongs to both foomatic-filters and foomatic-db-engine.
Can you run the following commands in a terminal window and post the output here?
dpkg -S /usr/share/foomatic foomatic$ ' apt/archives/ foomatic- filters_ *.deb | grep '/usr/share/ foomatic/ $' apt/archives/ partial/ foomatic- filters_ *.deb | grep '/usr/share/ foomatic/ $' apt/archives/ foomatic- db-engine_ *.deb | grep '/usr/share/ foomatic/ $'
ls -ld /usr/share/foomatic
dpkg -L foomatic-db-engine | grep '/usr/share/
dpkg -c /var/cache/
dpkg -c /var/cache/
dpkg -c /var/cache/
After having done so, try to recover via the commands:
sudo apt-get clean
sudo apt-get install -f
sudo apt-get install foomatic-filters