Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #200249 > unrolled thread

Trying to use SP Flash Tool (Mediatek), latest version requires libpng12-0, which is not available

Started byCarl Fink <carlf@panix.com>
First post2018-09-18 04:40 +0200
Last post2018-09-19 15:00 +0200
Articles 9 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available Carl Fink <carlf@panix.com> - 2018-09-18 04:40 +0200
    Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available Richard Hector <richard@walnut.gen.nz> - 2018-09-18 04:50 +0200
    Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2018-09-18 04:50 +0200
      Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available Carl Fink <carlf@panix.com> - 2018-09-18 13:00 +0200
        Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2018-09-18 13:40 +0200
        Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-18 14:40 +0200
        Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available Curt <curty@free.fr> - 2018-09-18 16:20 +0200
          Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-18 16:30 +0200
        Re: Trying to use SP Flash Tool (Mediatek), latest version requires  libpng12-0, which is not available "Alexander V. Makartsev" <avbetev@gmail.com> - 2018-09-19 15:00 +0200

#200249 — Trying to use SP Flash Tool (Mediatek), latest version requires libpng12-0, which is not available

FromCarl Fink <carlf@panix.com>
Date2018-09-18 04:40 +0200
SubjectTrying to use SP Flash Tool (Mediatek), latest version requires libpng12-0, which is not available
Message-ID<wze5H-59U-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

I'm running Buster (testing), and trying to set up the SP Flash
Tool. I downloaded the archive
(https://spflashtools.com/linux/sp-flash-tool-v5-1828-for-linux)
and unzipped it (it doesn't require installation), but when I
try to start the program I'm informed:

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

OK, but apt says:

     root@debian-nitpicking:/etc/udev/rules.d# apt-get install libpng12-dev
     Reading package lists... Done
     Building dependency tree
     Reading state information... Done
     Package libpng12-dev is not available, but is referred to by 
another package.
     This may mean that the package is missing, has been obsoleted, or
     is only available from another source

     E: Package 'libpng12-dev' has no installation candidate
     root@debian-nitpicking:/etc/udev/rules.d# apt-get install libpng12-0
     Reading package lists... Done
     Building dependency tree
     Reading state information... Done
     Package libpng12-0 is not available, but is referred to by another 
package.
     This may mean that the package is missing, has been obsoleted, or
     is only available from another source

     E: Package 'libpng12-0' has no installation candidate

OK ... I did search for and find others who had this problem, but
they all boiled down to "The package is not available for your
distro version."

So would I have to build from source? Any other ideas?

(Yo, Mediatek--stop requiring old libraries unless you build
static!)

Thanks.

-- Carl Fink carl@finknetwork.com Thinking and logic and stuff at 
Reasonably Literate http://reasonablyliterate.com

[toc] | [next] | [standalone]


#200250

FromRichard Hector <richard@walnut.gen.nz>
Date2018-09-18 04:50 +0200
Message-ID<wzefn-5eR-1@gated-at.bofh.it>
In reply to#200249

[Multipart message — attachments visible in raw view] — view raw

On 18/09/18 14:34, Carl Fink wrote:
> Hi,
> 
> I'm running Buster (testing), and trying to set up the SP Flash
> Tool. I downloaded the archive
> (https://spflashtools.com/linux/sp-flash-tool-v5-1828-for-linux)
> and unzipped it (it doesn't require installation), but when I
> try to start the program I'm informed:
> 
>     error while loading shared libraries: libpng12.so.0: cannot open
> shared object file: No such file or directory
> 
> OK, but apt says:
> 
>     root@debian-nitpicking:/etc/udev/rules.d# apt-get install libpng12-dev
>     Reading package lists... Done
>     Building dependency tree      
>     Reading state information... Done
>     Package libpng12-dev is not available, but is referred to by another
> package.
>     This may mean that the package is missing, has been obsoleted, or
>     is only available from another source
> 
>     E: Package 'libpng12-dev' has no installation candidate
>     root@debian-nitpicking:/etc/udev/rules.d# apt-get install libpng12-0
>     Reading package lists... Done
>     Building dependency tree      
>     Reading state information... Done
>     Package libpng12-0 is not available, but is referred to by another
> package.
>     This may mean that the package is missing, has been obsoleted, or
>     is only available from another source
> 
>     E: Package 'libpng12-0' has no installation candidate
> 
> OK ... I did search for and find others who had this problem, but
> they all boiled down to "The package is not available for your
> distro version."
> 
> So would I have to build from source? Any other ideas?
> 
> (Yo, Mediatek--stop requiring old libraries unless you build
> static!)

You could try installing the jessie package?

Richard


[toc] | [prev] | [next] | [standalone]


#200251

Fromkamaraju kusumanchi <raju.mailinglists@gmail.com>
Date2018-09-18 04:50 +0200
Message-ID<wzefo-5eR-5@gated-at.bofh.it>
In reply to#200249
On Mon, Sep 17, 2018 at 10:34 PM, Carl Fink <carlf@panix.com> wrote:
> Hi,
>
> I'm running Buster (testing), and trying to set up the SP Flash
> Tool. I downloaded the archive
> (https://spflashtools.com/linux/sp-flash-tool-v5-1828-for-linux)
> and unzipped it (it doesn't require installation), but when I
> try to start the program I'm informed:
>
>     error while loading shared libraries: libpng12.so.0: cannot open shared
> object file: No such file or directory

There is no package in buster that provides libpng12.so.0 . The
libpng12-dev is also not available in testing. It was there in Jessie
(oldstable).

% rmadison libpng12-dev
libpng12-dev | 1.2.49-1+deb7u2         | oldoldstable
      | amd64, armel, armhf, i386, ia64, kfreebsd-amd64,
kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc
libpng12-dev | 1.2.50-2+b2             | oldstable-kfreebsd
      | kfreebsd-amd64, kfreebsd-i386
libpng12-dev | 1.2.50-2+deb8u2~kbsd8u1 |
oldstable-kfreebsd-proposed-updates | kfreebsd-amd64, kfreebsd-i386
libpng12-dev | 1.2.50-2+deb8u3         | oldstable
      | amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc,
ppc64el, s390x


-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

[toc] | [prev] | [next] | [standalone]


#200263

FromCarl Fink <carlf@panix.com>
Date2018-09-18 13:00 +0200
Message-ID<wzlTz-1b4-7@gated-at.bofh.it>
In reply to#200251
On 09/17/2018 10:43 PM, kamaraju kusumanchi wrote:

> There is no package in buster that provides libpng12.so.0 . The
> libpng12-dev is also not available in testing. It was there in Jessie
> (oldstable).

Yes.

That is why I said that in my original message.

As for installing the Jessie version as suggested crossthread: I get the exact
error mentioned in my original message:

     dpkg: error processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install):

     unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory

-- 
Carl Fink          carl@finknetwork.com
Thinking and logic and stuff at Reasonably Literate
http://reasonablyliterate.com

[toc] | [prev] | [next] | [standalone]


#200265

Fromkamaraju kusumanchi <raju.mailinglists@gmail.com>
Date2018-09-18 13:40 +0200
Message-ID<wzmwi-1Cg-11@gated-at.bofh.it>
In reply to#200263
On Tue, Sep 18, 2018 at 6:49 AM, Carl Fink <carlf@panix.com> wrote:
> On 09/17/2018 10:43 PM, kamaraju kusumanchi wrote:
>
>> There is no package in buster that provides libpng12.so.0 . The
>> libpng12-dev is also not available in testing. It was there in Jessie
>> (oldstable).
>
>
> Yes.
>
> That is why I said that in my original message.
>
> As for installing the Jessie version as suggested crossthread: I get the
> exact
> error mentioned in my original message:
>
>     dpkg: error processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb
> (--install):
>
>     unable to install new version of
> '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
>

Sorry Carl! I missed that. Yeah, there is no easy solution here. You
can try adding Jessie entries in your /etc/apt/sources.list and do an
apt-get update and then try to install. If that does not work, you
should either compile it from source or use the third party package on
Jessie only. Old packages on newer Debian versions is not supported.

thanks
raju
-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

[toc] | [prev] | [next] | [standalone]


#200269

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2018-09-18 14:40 +0200
Message-ID<wznsl-2aT-9@gated-at.bofh.it>
In reply to#200263
On Tue, Sep 18, 2018 at 06:49:39AM -0400, Carl Fink wrote:
> On 09/17/2018 10:43 PM, kamaraju kusumanchi wrote:
> > There is no package in buster that provides libpng12.so.0 . The
> > libpng12-dev is also not available in testing. It was there in Jessie
> > (oldstable).

>     dpkg: error processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install):
> 
>     unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory

That directory exists on stretch.  Are you sure you're actually on an
amd64 installation?

You've chosen to test buster for the good of the community, so one should
be able to assume that you have a fair amount of experience in tracking
down and handling glitches, especially in Debian packaging.

Just picking one package at random, which has files in this directory
on my stretch installation:

wooledg:~$ dpkg -L libxi6 | grep x86_64
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
/usr/lib/x86_64-linux-gnu/libXi.so.6

That package most likely exists in buster as well, so next I surf over
to <http://packages.debian.org/libxi6> and look for a buster link.

This takes me to <https://packages.debian.org/buster/libxi6>.  Then I
follow the [list of files] link for the amd64 architecture
<https://packages.debian.org/buster/amd64/libxi6/filelist>.

The resulting list of files in the buster package of libxi6 includes:

/usr/lib/x86_64-linux-gnu/libXi.so.6.1.0

So, the /usr/lib/x86_64-linux-gnu/ directory must still exist in buster.

Therefore, your report of

>     unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory

points to either you not actually being on an amd64 architecture
installation, or a massive problem on your local machine, or some kind
of major change, which is not known to me, in how dpkg operates between
jessie and buster.

I still think "oops, I'm really on i386 but I grabbed the amd64 package
from jessie" is the most likely of these.

[toc] | [prev] | [next] | [standalone]


#200272

FromCurt <curty@free.fr>
Date2018-09-18 16:20 +0200
Message-ID<wzp17-3ac-1@gated-at.bofh.it>
In reply to#200263
On 2018-09-18, Carl Fink <carlf@panix.com> wrote:
> On 09/17/2018 10:43 PM, kamaraju kusumanchi wrote:
>
>> There is no package in buster that provides libpng12.so.0 . The
>> libpng12-dev is also not available in testing. It was there in Jessie
>> (oldstable).
>
> Yes.
>
> That is why I said that in my original message.
>
> As for installing the Jessie version as suggested crossthread: I get the exact
> error mentioned in my original message:

Not really.

>      dpkg: error processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install):
>
>      unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
>

I read Greg W's theory regarding this error, but then saw this
thread

https://unix.stackexchange.com/questions/331803/cannot-install-libpng12-0-on-debian/331975

in which an unfortunate user fails to install the Jessie version of the
package in question (in Stretch), encountering the same (or very
similar) error as you did (the reasons for which escape my
understanding, however, so sadly no help from this quarter on that
score, except to say the OP of the thread above went back to Wheezy for
his libpng12.so.0 with success).

As someone mentioned here

http://forums.debian.net/viewtopic.php?f=10&t=130905&p=631940#p631940

another way to go would be to edit the dependency so that the soft
accepts the available version of the library, if such a thing is
possible in this case.

Hope I'm not completely *à côté de la plaque* with all this.

-- 
“An oak is a tree. A rose is a flower. A deer is an animal. A sparrow is a
bird. Russia is our fatherland. Death is inevitable.” Russian school book.

[toc] | [prev] | [next] | [standalone]


#200274

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2018-09-18 16:30 +0200
Message-ID<wzpaN-3di-3@gated-at.bofh.it>
In reply to#200272
On Tue, Sep 18, 2018 at 02:08:59PM +0000, Curt wrote:
> I read Greg W's theory regarding this error, but then saw this
> thread
> 
> https://unix.stackexchange.com/questions/331803/cannot-install-libpng12-0-on-debian/331975
> 
> in which an unfortunate user fails to install the Jessie version of the
> package in question (in Stretch), encountering the same (or very
> similar) error as you did (the reasons for which escape my
> understanding, however, so sadly no help from this quarter on that
> score, except to say the OP of the thread above went back to Wheezy for
> his libpng12.so.0 with success).

OK, I do not understand this at all.  I've got a stretch system here
with jessie's libpng12-0 package installed.  However, I do not know
whether this system was installed as jessie and then upgraded, or
installed as stretch, and then the package added later.


wooledg:~$ cat /etc/debian_version 
9.5

wooledg:~$ dpkg -l libpng\* | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version         Architecture Description
+++-=================-===============-============-===================================
ii  libpng12-0:amd64  1.2.50-2+deb8u3 amd64        PNG library - runtime
un  libpng12-dev      <none>          <none>       (no description available)
ii  libpng16-16:amd64 1.6.28-1        amd64        PNG library - runtime (version 1.6)

wooledg:~$ ls -l /usr/lib/x86_64-linux-gnu/libpng12.so.0 
lrwxrwxrwx 1 root root 35 Jan  6  2017 /usr/lib/x86_64-linux-gnu/libpng12.so.0 -> /lib/x86_64-linux-gnu/libpng12.so.0

wooledg:~$ dpkg -l | grep deb8
ii  libdns-export100                      1:9.9.5.dfsg-9+deb8u10            amd64        Exported DNS Shared Library
ii  libhogweed2:amd64                     2.7.1-5+deb8u2                    amd64        low level cryptographic library (public-key cryptos)
ii  libicu52:amd64                        52.1-8+deb8u4                     amd64        International Components for Unicode
ii  libirs-export91                       1:9.9.5.dfsg-9+deb8u10            amd64        Exported IRS Shared Library
ii  libisc-export95                       1:9.9.5.dfsg-9+deb8u10            amd64        Exported ISC Shared Library
rc  libisc95                              1:9.9.5.dfsg-9+deb8u10            amd64        ISC Shared Library used by BIND
rc  libisccc90                            1:9.9.5.dfsg-9+deb8u10            amd64        Command Channel Library used by BIND
ii  libisccfg-export90                    1:9.9.5.dfsg-9+deb8u10            amd64        Exported ISC CFG Shared Library
rc  libjasper1:amd64                      1.900.1-debian1-2.4+deb8u3        amd64        JasPer JPEG-2000 runtime library
rc  liblwres90                            1:9.9.5.dfsg-9+deb8u10            amd64        Lightweight Resolver Library used by BIND
ii  libnettle4:amd64                      2.7.1-5+deb8u2                    amd64        low level cryptographic library (symmetric and one-way cryptos)
ii  libpng12-0:amd64                      1.2.50-2+deb8u3                   amd64        PNG library - runtime
ii  libssl1.0.0:amd64                     1.0.1t-1+deb8u6                   amd64        Secure Sockets Layer toolkit - shared libraries
rc  libxapian22                           1.2.19-1+deb8u1                   amd64        Search engine library
rc  perl-modules                          5.20.2-3+deb8u6                   all          Core Perl modules

That seems like a rather nontrivial number of jessie updates (deb8),
mostly removed, so maybe this was originally a jessie system?  I don't
know.

Of course, if all else fails, you can grab the jessie .deb file, unpack
it manually in /tmp (or wherever you like), copy the shared library files
to where they're supposed to be, create the symlinks that are supposed
to be created, and run ldconfig.

If you're feeling especially bold, you could even try to install the
.deb package *after* that.  Maybe having the files and symlinks already
in place will somehow help it along.

[toc] | [prev] | [next] | [standalone]


#200294

From"Alexander V. Makartsev" <avbetev@gmail.com>
Date2018-09-19 15:00 +0200
Message-ID<wzKff-7cd-3@gated-at.bofh.it>
In reply to#200263

[Multipart message — attachments visible in raw view] — view raw

On 18.09.2018 15:49, Carl Fink wrote:
> On 09/17/2018 10:43 PM, kamaraju kusumanchi wrote:
>
>> There is no package in buster that provides libpng12.so.0 . The
>> libpng12-dev is also not available in testing. It was there in Jessie
>> (oldstable).
>
> Yes.
>
> That is why I said that in my original message.
>
> As for installing the Jessie version as suggested crossthread: I get
> the exact
> error mentioned in my original message:
>
>     dpkg: error processing archive
> libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install):
>
>     unable to install new version of
> '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
>
I suggest to build a Debian package for your current version of Debian.
The process is not complicated and this is the only right way to do it
without possibly breaking the system.
If you just install .deb file there is a chance that won't work properly
on your current version of Debian, or work with problems because it
lacking libc\ABI compatibility.
It will be bad if SP Flash die with SIGV during erasing\flashing.

You can follow this detailed tutorial [1] to build it.

libpng12-0 builds fast and without issues on stretch, so I think it will
build in the same way on buster.

[1] https://wiki.debian.org/SimpleBackportCreation

-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀ 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web