9

I use

sudo apt-get install https://launchpad.net/ubuntu/trusty/+package/zlib1g-dev

and this is what ensues:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package https
E: Couldn't find any package by regex 'https://launchpad.net/ubuntu/trusty/+package'

How can I get this to work on my version of Linux? I haven't had much luck in finding this and I'm new to linux. (Again, my version of Linux is Ubuntu 14.04)

1 Answers1

9

Although apt-get obtains packages from online repositories, the actual URLs are resolved behind the scenes using information from the /etc/apt/sources.list file and any additional files in /etc/apt/sources.list.d/

Hence to install a package using apt-get, you should specify only the package name: in this case, that's just sudo apt-get install zlib1g-dev

steeldriver
  • 142,475