I encountered this error earlier, and while you may think this is a duplicate, this is an entirely new error I don't think anyone else has written about.
So get this, when I try to install the software in question I get this;
Get:1 [...]/libpng12-0_1.2.54-1ubuntu1_i386.deb libpng12-0 i386 1.2.54-1ubuntu1 [122 kB]
(Reading database ... 429607 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1) ...
dpkg: error processing archive [...]/libpng12-0_1.2.54-1ubuntu1_i386.deb (--unpack):
unable to install new version of '/usr/lib/i386-linux-gnu/libpng12.so.0': No such file or directory
No apport report written because the error message indicates an issue on the local system
Errors were encountered while processing:
[...]/libpng12-0_1.2.54-1ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Why? I need this for a piece of software known as zsnes
and I prefer to use version 1.42.