broken libpng12-0_1.2.54-1ubuntu1_arm64.deb in the release?

Asked by johnnyhuang

Hello,

I was trying to install libpng12-0 for arm64 on ubuntu 20.10 meeting error as below:
 unable to install new version of '/lib/aarch64-linux-gnu/libpng12.so.0': No such file or directory

When I checked the deb unpackaged, below
libpng12-0_1.2.54-1ubuntu1_arm64/usr/lib/aarch64-linux-gnu$ ls -l
total 0
lrwxrwxrwx 1 yc yc 36 Mar 31 10:39 libpng12.so.0 -> /lib/aarch64-linux-gnu/libpng12.so.0
Above result is showed as red(broken symlink).

May be a repack will fix the probelm(it could be just the issue from Ubuntu 20.10)?
Thanks.
Johnny

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libpng Edit question
Assignee:
No assignee Edit question
Solved by:
johnnyhuang
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug (assuming the package is from the official Ubuntu repository)

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

According to https://launchpad.net/ubuntu/+source/libpng the package libpng12-0_1.2.54-1ubuntu1_arm64.deb is for Ubuntu 18.04 xenial. You write that you have problems when trying to install it on Ubuntu 20.10 groovy.
The two releases do not fit together. What you are trying is not supported at all.

The equivalent package for Ubuntu groovy is libpng16-16

Revision history for this message
johnnyhuang (jhuang88) said :
#3

Thanks for the info.

Yes, from 19.04 and onward, lib is symlinked to usr/bin. I repacked it(only with /usr/bin/ inside, but this is just for my temp usage) for working around this charactistic(which gets to this issue) for newer version ubuntus -- using the libpng12-0_1.2.54-1ubuntu1_arm64.deb for olders.

Might be good if similar variants released to newer ones in the future.

Revision history for this message
johnnyhuang (jhuang88) said :
#4

Typo above form my message: usr/bin --> usr/lib.

It can be closed for getting a workaround already.

Thanks for the answers.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Remark:
The last version of that package was for yakkety (not supported any more) and had additional fixes for a number of CVEs.
If you package that software for you own usage, then you better use the newest version with bug fixes.
Source can be found on https://launchpad.net/ubuntu/+source/libpng/1.2.54-6ubuntu1