Libpng12 0 linux mint

Install libpng12 The Latest Ubuntu & Linux Mint

How to Install libpng12 For The Latest Ubuntu, Linux Mint, and other derivatives, and what is libpng12? The libpng12 library is a widely-used library for handling PNG image files, but it’s no longer available in the default repositories of newer Ubuntu versions. However, you can install it on Ubuntu 22.04 or later using the Linux Uprising PPA. In this guide, we’ll show you how to install libpng12 on Ubuntu 22.04 or later using the Linux Uprising PPA.

Step 1: Add the Linux Uprising PPA

The Linux Uprising PPA provides the libpng12 package for Ubuntu 22.04 or later. To add the PPA, open a terminal window and run the following command:

sudo add-apt-repository ppa:linuxuprising/libpng12

Enter your password when prompted, and then press Enter to confirm adding the PPA.

Step 2: Update the package lists

After adding the PPA, you’ll need to update the package lists to include the libpng12 package. To do this, run the following command in the terminal:

Step 3: Install the libpng12 package

Now that the package lists are updated, you can install the libpng12 package by running the following command:

sudo apt install libpng12-0

Enter your password when prompted, and then press Enter to confirm installing the package.

Step 4: Verify the installation

Once the installation is complete, you can verify that the libpng12 library is installed and working properly by running the following command:

ldconfig -p | grep libpng12

If the output shows the libpng12 library, then the installation was successful. You can now use programs or libraries that require libpng12 without encountering any errors.

In conclusion, installing libpng12 on Ubuntu 22.04 or later is possible using the Linux Uprising PPA. By following the steps in this guide, you should be able to install libpng12 and use programs or libraries that require it on your Ubuntu system. I hope this article “Install libpng12 For The Latest Ubuntu & Linux Mint” is useful for you.

Читайте также:  Обновить линукс через интернет

Источник

Fix libpng12-0 Missing In Ubuntu 22.10, 22.04, 21.10 Or 20.04

In this article you’ll find a very easy to apply fix that allows installing and running applications that depend on libpng12-0 in Ubuntu 18.04 LTS (or Linux Mint 19.*, which is based on Ubuntu 18.04), Ubuntu 22.10, 22.04, 21.10 Or 20.04 / Linux Mint 21.* and 20.*. This applies to any Ubuntu or Linux Mint flavor: Kubuntu, Xubuntu, Ubuntu MATE, Ubuntu Budgie, Linux Mint Xfce, Linux Mint Cinnamon, etc., as well as Pop!_OS or elementary OS.

The problem

libpng12 is no longer available in the Ubuntu repository archives and as a result, some applications that were not built with the newer libpng ( libpng16 ) library fail to install. This issue is not new, since Ubuntu dropped libpng12 with version 16.10, but those whom are upgrading from Ubuntu 16.04 to 18.04 LTS , as well as Linux Mint 19.* users, might not be aware of this and how to fix it.

Here is an example. Ubuntu Software simply fails to install WPS Office, without displaying any error message, so I opened the WPS Office deb with gdebi-gtk , which doesn’t allow the deb to install, displaying this message: «Error: Dependency is not satisfiable: libpng12-0«:

libpng12-0 error Ubuntu

Trying to install the same deb from a terminal results in the following libpng12-0 error:

logix@logix-laptop:~$ sudo dpkg -i wps-office_10.1.0.5707_a21_amd64.deb [sudo] password for logix: Selecting previously unselected package wps-office. (Reading database . 354579 files and directories currently installed.) Preparing to unpack wps-office_10.1.0.5707_a21_amd64.deb . Unpacking wps-office (10.1.0.5707~a21) . dpkg: dependency problems prevent configuration of wps-office: wps-office depends on libpng12-0; however: Package libpng12-0 is not installed. dpkg: error processing package wps-office (--install): dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-11ubuntu1) . Processing triggers for desktop-file-utils (0.23-1ubuntu3) . Processing triggers for mime-support (3.60ubuntu1) . Processing triggers for shared-mime-info (1.9-2) . Processing triggers for hicolor-icon-theme (0.17-2) . Errors were encountered while processing: wps-office

Note that some apps can’t be installed due to missing libpng12-0 , while others simply fail to start.

The fix: install and run applications that require libpng12-0 in Ubuntu 22.10, 22.04, 21.10 or 22.04 / Linux Mint 21.*, 20.* or 19.*

To fix the issue on the now very old Ubuntu 18.04 / Linux Mint 19.* / Pop!_OS 18.04 / elementary OS 5 or 5.1, download the libpng12-0 package for your architecture (you only need one of these, specific for your Ubuntu / Linux Mint architecture):

Install the libpng12-0 deb downloaded by using the link above, and you should be able to install and run applications that still depend on this library, in Ubuntu 18.04 LTS or Ubuntu 18.10 / Linux Mint 19.

Читайте также:  Linux активировать сетевую карту

To fix the issue on Ubuntu 22.10, 22.04, 21.10 or 20.04 / Linux Mint 21.* or 20.*, you can install libpng by using a PPA I created with an updated libpng12-0 package. Use these commands to add the PPA and install libpng12-0:

sudo add-apt-repository ppa:linuxuprising/libpng12 sudo apt update sudo apt install libpng12-0

Or download the libpng12-0 DEB package from the PPA and install it manually (you only need the libpng12-0 DEB package, e.g. libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_amd64.deb ).

The reason this package required an update for Ubuntu 22.10, 22.04, 21.10 and 20.04, is that with Ubuntu 19.04, the /lib directory is a symlink to /usr/lib (this was not the case with Ubuntu 18.04 and older), and this causes the libpng12-0 installation to fail, since this package tries to create a link from /lib/x86_64-linux-gnu/libpng12.so.0 to /usr/lib , which is already a symlink. So the DEB had to be repacked to get it to work on newer Ubuntu versions.

As a result, when trying to install the old libpng12-0 package on Ubuntu (or Pop!_OS, etc.) 22.10, 22.04, 21.10 Or 20.04, you’d get this error:

dpkg: error processing archive libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--unpack): unable to install new version of '/lib/x86_64-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.1_amd64.deb

Источник

Linux Mint Forums

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

How can I install libpng12.so.0?

Post by ezau_primo » Sat Jun 01, 2019 8:38 am

Hi, everyone.
I’m trying to install the game Wakfu. And when I do so, appears this message: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

How can I solve this problem?
Thanks for the help.

[Edit: it seems I already have libpng16 installed.]

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: How can I install libpng12.so.0?

Post by WharfRat » Sat Jun 01, 2019 8:59 am

Simple sudo apt install libpng12-0

There’s also a libpng12-0:i386. I have both installed on my system.

[bill@XPS] ~ $ apt search libpng12|grep ^i i libpng12-0 - PNG library - runtime i libpng12-0:i386 - PNG library - runtime [bill@XPS] ~ $ 

Re: How can I install libpng12.so.0?

Post by ezau_primo » Sat Jun 01, 2019 9:32 am

WharfRat wrote: ⤴ Sat Jun 01, 2019 8:59 am Simple sudo apt install libpng12-0

Читайте также:  Linux время загрузки системы

There’s also a libpng12-0:i386. I have both installed on my system.

[bill@XPS] ~ $ apt search libpng12|grep ^i i libpng12-0 - PNG library - runtime i libpng12-0:i386 - PNG library - runtime [bill@XPS] ~ $ 

I ran the command and it says the package libpng12-0 isn’t available for installation, but it’s referred to by another package.
I don’t know if it’s important, but I use Amd64 bits.

Re: How can I install libpng12.so.0?

Post by gm10 » Sat Jun 01, 2019 9:52 am

See the reddit thread that thx-1138 already linked you to in your other thread about installing this game.

Re: How can I install libpng12.so.0?

Post by ezau_primo » Sat Jun 01, 2019 10:01 am

gm10 wrote: ⤴ Sat Jun 01, 2019 9:52 am See the reddit thread that thx-1138 already linked you to in your other thread about installing this game.

Re: How can I install libpng12.so.0?

Post by gm10 » Fri Jul 19, 2019 8:04 pm

wget -q -O /tmp/libpng12.deb http://archive.ubuntu.org/ubuntu/pool/m . _amd64.deb
sudo dpkg -i /tmp/libpng12.deb
rm /tmp/libpng12.deb

And note that while this will install the library, you will not be receiving any security updates for it. Probably not an issue because no software other than your game will be using this outdated library, but just so you know.

  • Important Notices
  • ↳ Rules & Notices
  • ↳ Releases & Announcements
  • ↳ Main Edition Support
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Graphics Cards & Monitors
  • ↳ Printers & Scanners
  • ↳ Storage
  • ↳ Sound
  • ↳ Networking
  • ↳ Virtual Machines
  • ↳ Desktop & Window Managers
  • ↳ Cinnamon
  • ↳ MATE
  • ↳ Xfce
  • ↳ Other topics
  • ↳ Non-technical Questions
  • ↳ Tutorials
  • Debian Edition Support
  • ↳ LMDE Forums
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Networking
  • ↳ Tutorials
  • ↳ Other Topics & Open Discussion
  • ↳ LMDE Archive
  • Interests
  • ↳ Gaming
  • ↳ Scripts & Bash
  • ↳ Programming & Development
  • Customization
  • ↳ Themes, Icons & Wallpaper
  • ↳ Compiz, Conky, Docks & Widgets
  • ↳ Screenshots
  • ↳ Your Artwork
  • Chat
  • ↳ Introduce Yourself
  • ↳ Chat about Linux Mint
  • ↳ Chat about Linux
  • ↳ Open Chat
  • ↳ Suggestions & Feedback
  • International
  • ↳ Translations
  • ↳ Deutsch — German
  • ↳ Español — Spanish
  • ↳ Français — French
  • ↳ Italiano — Italian
  • ↳ Nederlands — Dutch
  • ↳ Português — Portuguese
  • ↳ Русский — Russian
  • ↳ Suomi — Finnish
  • ↳ Other Languages
  • ↳ Čeština-Slovenčina — Czech-Slovak
  • ↳ Magyar — Hungarian
  • ↳ 日本語 — Japanese
  • ↳ Polski — Polish
  • ↳ Svenska — Swedish
  • ↳ Українська — Ukrainian

Powered by phpBB® Forum Software © phpBB Limited

Источник

Оцените статью
Adblock
detector