How to fix "libpng12.so.0: cannot open shared object file: No such file or directory"? [duplicate]

I'm just starting out with Lubuntu and I've just installed DaVinci Resolve to do my video editing on.

But when I click its icon on the desktop, the loading symbol comes up and stops. When I run it in the console I get this error message:

error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

This is a bit beyond me. Any help?


Solution 1:

According to https://github.com/tcoopman/image-webpack-loader/issues/95, you can use:

wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \
  && dpkg -i /tmp/libpng12.deb \
  && rm /tmp/libpng12.deb