اینو میزنم
sudo apt-get install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
این خروجی میده
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpng12-0' instead of './libpng12-0_1.2.54-1ubuntu1.1_amd64.deb'
The following packages were automatically installed and are no longer required:
dleyna-server evince-common gnustep-base-common gnustep-common
gstreamer1.0-gtk3 guile-2.2-libs libdazzle-1.0-0 libdjvulibre-text
libdjvulibre21 libdleyna-connector-dbus-1.0-1 libdleyna-core-1.0-3
libevdocument3-4 libgc1c2 libgupnp-av-1.0-2 libgupnp-dlna-2.0-3 libkpathsea6
libnvidia-cfg1-418 libnvidia-common-418 libnvidia-compute-418
libnvidia-compute-418:i386 libnvidia-decode-418 libnvidia-decode-418:i386
libnvidia-encode-418 libnvidia-encode-418:i386 libnvidia-fbc1-418
libnvidia-fbc1-418:i386 libnvidia-gl-418 libnvidia-gl-418:i386
libnvidia-ifr1-418 libnvidia-ifr1-418:i386 libquvi-0.9-0.9.3
libquvi-scripts-0.9 libspectre1 libsynctex2 libtotem-plparser-videosite
lua-bitop lua-expat lua-json lua-lpeg lua-socket nvidia-compute-utils-418
nvidia-dkms-418 nvidia-utils-418 ocl-icd-libopencl1:i386 python3-brlapi
python3-louis python3-speechd wine-devel wine-devel-amd64
wine-devel-i386:i386 xbrlapi xserver-xorg-video-nvidia-418
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
libpng12-0
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/116 kB of archives.
After this operation, 285 kB of additional disk space will be used.
Get:1 /home/masoud/Downloads/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng12-0 amd64 1.2.54-1ubuntu1.1 [116 kB]
(Reading database ... 185498 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive /home/masoud/Downloads/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:
/home/masoud/Downloads/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)