PDA

View Full Version : zlib package not found



logy91
2016-03-30, 21:42
Hello

I'm trying to install zlib library on Kali 64 bits but I'm getting an error saying package not found I've tried:

sudo apt-get install zlib1g-dev
sudo apt-get install zlib1g-dev:i386
sudo apt-get install lib32z1

but all failed
I could install the package on 64 bits Ubuntu using the first one but I don't know why it fails with Kali

dooglet
2016-04-14, 18:54
hello forumers, this is my first post :)

I'm also experiencing the same issue as the OP, tried to install rails and launch a new blog but after doing
bundle install bundler fails and complains zlib is missing.

@OP Please do:
cat /etc/apt/sources.list and post your results

Mine are as below:



#

# deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160120-18:14]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160120-18:14]/ kali-rolling contrib main non-free

deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib

## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free


This is a fresh install done today and the last three sources I added after reading the stickies in this forum.

My next stop is to try and build zlib from source, I'll post back if I have any luck.

dooglet
2016-04-14, 19:14
here's the fix I followed

make sure your /etc/apt/sources.list reads:



#

# deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160120-18:14]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160120-18:14]/ kali-rolling contrib main non-free

deb http://http.kali.org/kali kali-rolling main contrib non-free


then do:



apt-get install zlib1g-dev


hope this helps!