apt install - empty deb?

Here you can discuss every aspect of Debian. Note: not for support requests!

apt install - empty deb?

Postby merenyia » 2016-11-21 09:08

Hello,
I don't know if something wrong with me or the debian packages but I cannot install libpng12-0.

Code: Select all
root@KT530:~# apt install libpng12-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  compiz-gtk libdecoration0 libgtop2-7 libmarco-private0 libwnck-common libwnck22 libxres1
Use '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/173 kB of archives.
After this operation, 273 kB of additional disk space will be used.
(Reading database ... 305240 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.50-2+deb8u2_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.50-2+deb8u2) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u2_amd64.deb (--unpack):
 unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Code: Select all
root@KT530:~# apt update
Ign:2 http://ftp.us.debian.org/debian jessie InRelease
Hit:3 http://ftp.us.debian.org/debian jessie Release
Hit:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Get:5 http://download.tuxfamily.org/compiz/debian jessie InRelease [3,182 B]
Fetched 3,182 B in 2s (1,382 B/s)       
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.


It looks like libpng12-0_1.2.50-2+deb8u2_amd64.deb is empty or doesn't contain libpng12.so.0.
How to solve it?

Thanks.
merenyia
 
Posts: 4
Joined: 2016-11-21 08:49

Re: apt install - empty deb?

Postby Ardouos » 2016-11-21 11:48

merenyia wrote:
Code: Select all
Hit:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Get:5 http://download.tuxfamily.org/compiz/debian jessie InRelease [3,182 B]


Maybe because of this.

merenyia wrote:How to solve it?

Don't mix sources in the first place.
User avatar
Ardouos
 
Posts: 1055
Joined: 2013-11-03 00:30
Location: Elicoor II

Re: apt install - empty deb?

Postby merenyia » 2016-11-21 17:23

Hello,
thanks for the hint. To be frank sources were not pinned before but I corrected the issue.
Code: Select all
root@KT530:/etc/apt# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 498 http://ftp.us.debian.org/debian jessie/main amd64 Packages
     release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=main,b=amd64
     origin ftp.us.debian.org
 498 http://download.tuxfamily.org/compiz/debian jessie/main amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Compiz,c=main,b=amd64
     origin download.tuxfamily.org
 100 http://http.kali.org/kali kali-rolling/contrib amd64 Packages
     release o=Kali,a=kali-rolling,n=kali-rolling,c=contrib,b=amd64
     origin http.kali.org
 100 http://http.kali.org/kali kali-rolling/non-free amd64 Packages
     release o=Kali,a=kali-rolling,n=kali-rolling,c=non-free,b=amd64
     origin http.kali.org
 100 http://http.kali.org/kali kali-rolling/main amd64 Packages
     release o=Kali,a=kali-rolling,n=kali-rolling,c=main,b=amd64
     origin http.kali.org
Pinned packages:
root@KT530:/etc/apt# apt update
Get:1 http://download.tuxfamily.org/compiz/debian jessie InRelease [3.182 B]
Ign:3 http://ftp.us.debian.org/debian jessie InRelease                                                             
Hit:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Hit:4 http://ftp.us.debian.org/debian jessie Release
Fetched 3.182 B in 0s (4.960 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
root@KT530:/etc/apt# apt install libpng12-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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/173 kB of archives.
After this operation, 273 kB of additional disk space will be used.
(Reading database ... 305286 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.50-2+deb8u2_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.50-2+deb8u2) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u2_amd64.deb (--unpack):
 unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@KT530:/etc/apt#


Unfortunately it doesn't solve the problem.

Don't mix sources in the first place.

Yes I agree. But there are cases when I have to. :(
Last edited by merenyia on 2016-11-21 17:51, edited 1 time in total.
merenyia
 
Posts: 4
Joined: 2016-11-21 08:49

Re: apt install - empty deb?

Postby GarryRicketson » 2016-11-21 17:51

Unfortunately it doesn't solve the problemm.


The problem is, you are not running Debian, nor are you running Kali,
you have created a "mix",....and that usually does not work well,

Have you read this ?
https://wiki.debian.org/DontBreakDebian

Don't make a FrankenDebian

Debian Stable should not be combined with other releases. If you're trying to install software that isn't available in the current Debian Stable release, it's not a good idea to add repositories for other Debian releases. The problems might not happen right away, but the next time you install updates.

The reason things can break is because the software packaged for one Debian release is built to be compatible with the rest of the software for that release. For example, installing packages from Jessie on a Wheezy system will also install newer versions of core libraries including glibc. This results in a system that is not Wheezy or Jessie but a broken mix of the two.


If you also looked at the Kali documentation, you would see they say pretty
much the same thing, if you want run Kali, you should be using the repos for Kali,
it is not the same distro as Debian, and they reccomend only using the packages
in their repositories, ...
Like wise , if you want to run Debian, then you should be using ONLY the packages
in the Debian repositories.
You can try removeing all the stuff from one distro, and and update, and try using
ONLY the repos for which ever distro you decide to use.
That is to say, for example, remove the "kali" sources, and packages, and if you
are lucky , with some updating and repairs, you can get your system back to being a
Debian system , with Debian pacakages.
Or, remove all of the Debian packages, and sources, and just run Kali,....using
the Kali repos, and sources.
This may not be the answer you want to hear, but if you read some documentation,
you will see both distros do not reccomend mixing them.
The link in he signature of "Ardouos ", where it says "Don't Break Debian"

Repo mix-and-match hit parade
It links to 100s of testamonies, on what to do after you have mixed repos, and distros,
Which is something you should not have done in the first place to start with,

Post by merenyia » 2016-11-21 03:08
Hello,
I don't know if something wrong with me or the debian packages

There is nothing wrong with the Debian packages, they work just fine
on a pure Debian system,... I do not know about "Kali", but they do claim,
the packages they have, for Kali, work just fine on Kali.
User avatar
GarryRicketson
 
Posts: 5877
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: apt install - empty deb?

Postby merenyia » 2016-11-21 18:05

OK, you are 100% right.

On the other hand I need a compiz working on my system what is not exist in Kali and as I know not supported in Jessie.
But I understood I won't stress this solution.
merenyia
 
Posts: 4
Joined: 2016-11-21 08:49

Re: apt install - empty deb?

Postby GarryRicketson » 2016-11-21 18:17

Well, here is a couple of things, I do not know if they will help, but it appears
you will have to "build" it, do your own compiling,...I am not advanced enough
to be able to help,...but maybe some other will be able too.
https://gist.github.com/frankIT/46748d915b13a43ca388

Then there is this thread, but it is more for Debian testing :
http://forums.debian.net/viewtopic.php?f=6&t=126408#p603484
==========edited==========
***************this is for Jessie*********
http://forums.debian.net/viewtopic.php?f=6&t=126408&start=15#p622964
User avatar
GarryRicketson
 
Posts: 5877
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: apt install - empty deb?

Postby merenyia » 2016-11-21 19:01

Thank you, I'm going to learn them.
The main problem with compiling is that there are source files not easy to find.
I tried this before: https://github.com/compiz-reloaded
merenyia
 
Posts: 4
Joined: 2016-11-21 08:49

Re: apt install - empty deb?

Postby millpond » 2016-11-21 21:50

Get it from here:
http://security.debian.org/pool/updates ... bp/libpng/

libpng12-0_1.2.50-2+deb8u2_amd64.deb 2016-01-07 20:10 169K

Apt was picking up the symlink package instead - hence the 1k size.

Also: Shouldnt the *security* url be in the sources.list also....
millpond
 
Posts: 658
Joined: 2014-06-25 04:56

Re: apt install - empty deb?

Postby stevepusser » 2016-11-21 23:15

You got a corrupted download of that package. Either remove it from var/cache/apt/archives manually, or clean out the whole deb package cache with su -c 'apt-get clean', then try installing it again.

You don't have to compile Compiz 8.4 if you use the OBS repository like HOAS suggested at the end of his post.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11319
Joined: 2009-10-06 05:53


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable