0

I need libpng12 because of PacketTracer. Is there a workaround without installing it? Is it safe to remove usrmerge?

dpkg: regarding libpng12-0_1.2.50-2+deb8u3_amd64.deb containing libpng12-0:amd64:
 usrmerge conflicts with libpng12-0 (<< 1.2.54-4~)
  libpng12-0:amd64 (version 1.2.50-2+deb8u3) is to be installed.

dpkg: error processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install):
 conflicting packages - not installing libpng12-0:amd64
Errors were encountered while processing:
 libpng12-0_1.2.50-2+deb8u3_amd64.deb

Edit: Just wanna plug this idea I posted on Cisco's user voice about having a Snap version of Packet Tracer so that installing it in the future won't be such a hassle anymore for newer users (hopefully) who aren't experienced in troubleshooting on Linux.

2 Answers2

1

Thanks to @Sishe1968 for letting me know that there's a newer version of libpng12, but I just wanna add that neither Ubuntu nor Debian aren't providing the current libpng12 .deb packages from their repos that solves the bug where it won't work with merged /lib & /usr/lib. Ubuntu currently has 1.2.54-1, while Debian has 1.2.50-2.

You have to go to SourceForge to download the source file from there

It is version 1.2.59 at the time of writing.

Steps on installation

  1. Extract the source file and go to the libpng-1.2.59/ directory, where the extracted files are located (FYI that version number could be different in the future).

  2. Open a terminal to that directory and type:

    $ ./configure

    $ make check

    $ sudo make install

    $ sudo ln -s /usr/local/lib/libpng12.{a,so{,.0,0.59.0}} /usr/lib/x86_64-linux-gnu/.

Took me a while to realize that I have to symlink, so make sure to not forget that.

0

usrmerge conflicts with that version of libpng12 because it ships symlinks with the same names in /lib and /usr/lib, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766809, and on a usrmerged system these are the same file. Uninstalling usrmerge doesn't change that. But that bug was fixed in Debian in version 1.2.54-4, so you could try installing a newer version of libpng12.