Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to locate package openssl-dev

I'm trying to install the ROOT CERN packages on linux, using Ubuntu 18.04, and whenever I get into the prerequisites download, with this command:

sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python openssl-dev

I get the following output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package openssl-dev

I've tried correcting this by configurating my repository as was suggested in this thread, yet the problem still persisted.

Would like to know how is it possible to fix this. Thank you.

Edit:

The complete output of the sudo apt update command is:

Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Reading package lists... Done                     
Building dependency tree       
Reading state information... Done
All packages are up to date.

I've also tried installing the libssl-dev package with sudo apt install libssl1.0-dev and the outcome remains unchanged.

like image 926
MultipleSearchingUnity Avatar asked Mar 04 '26 17:03

MultipleSearchingUnity


2 Answers

openssl-dev is for RedHat and CentOS systems.
Install openssl and libssl-dev instead, which works on Ubuntu and Debian.

sudo apt-get install openssl libssl-dev
like image 56
de Broglie Avatar answered Mar 08 '26 20:03

de Broglie


Type: sudo apt install libssl-dev without the version number, that worked for me. I am using Ubuntu 20.04.1 LTS.

like image 30
Diana Rojas Avatar answered Mar 08 '26 20:03

Diana Rojas