zlib1g is not a linux command/executable binary.
zlib1g is a library and zlib1g-dev are headers for c/c++. You need to add linker flag -lz when compiling so it will include zlib.
zlib1g is not a linux command/executable binary.
zlib1g is a library and zlib1g-dev are headers for c/c++. You need to add linker flag -lz when compiling so it will include zlib.
I have installed the zlib1g...
sudo apt install build-essential libpcre3 libpcre3-dev libssl-dev
- You didn't installed
zlib1g.zlib1gis calledzlib1gnotlibpcreorlibssl, installed withsudo apt install zlib1g, or withzlib1g-devif you want to develop something withzlib1g-dev. zlib1gis a library not an executable, which means it is used to put there, waiting for other executable or library to call it, not waiting for calling from a terminal command. You should detect an library by writing a program that#includes it or using a package manager command.
I was able to do the installation with:
sudo apt-get update && sudo sudo apt-get install zlib1g-dev
After updating /etc/apt/sources.list with the following:
Copy#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http:// us.archive .ubuntu. com/ubuntu/ xenial main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial main restricted universe multiverse
###### Ubuntu Update Repos
deb http:// us.archive .ubuntu. com/ubuntu/ xenial-security main restricted universe multiverse
deb http://us.archive .ubuntu. com/ubuntu/ xenial-updates main restricted universe multiverse
deb http:// us.archive .ubuntu. com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-proposed main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
I would try a sudo apt-get update to start (sometimes the problem is trivial!).
Consider including the results of dpkg --get-selections | grep hold
in the comments.
Autoremove might help, too!
Finally, trying again with aptitude (https://unix.stackexchange.com/questions/767/what-is-the-real-difference-between-apt-get-and-aptitude-how-about-wajig) might highlight the issue.
Tough to diagnose without more information.