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)

BlockchainDeveloper
  • 261
  • 2
  • 3
  • 11

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
  • 131,985
  • 21
  • 239
  • 326
  • **@fappycow:** As you're a reputation 6 user: If this answer helped you, don't forget to click the grey **☑** at the left of this text, which means [Yes, this answer is valid](http://askubuntu.com/help/accepted-answer)! **;-)** – Fabby Aug 13 '15 at 12:46
  • certainly, kind sir – BlockchainDeveloper Aug 13 '15 at 13:25