Ubuntu 16.04 Installation Error

Facing errors when installing with erpnext easy installation script.
Using ubuntu 16.04

E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 21, in install_bench
‘sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel’
File “install.py”, line 226, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev’ returned non-zero exit status 100

Please help to solve this issue.

Run the following command on it’s own on the command line before retrying the installation

sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev

showing the same error:
sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’

Then the issue with with your operating system, not with ErpNext.

It appears from the message that you do not have access to the software repository where the SSL libraries are found.

Resolve that, then you will be able to get further.

You can adjust your repos temporarily to complete the install of libssl1.0, and then change them back to standard once it is done.

cat <<EOF >> /etc/apt/sources.list
#Added this temporarily to get [libssl1.0.0] working
deb http://security.debian.org/debian-security jessie/updates main
EOF

sudo apt update && sudo apt install -y libssl1.0.0
#Now remove the jessie repo's
sudo sed -i "/Added this temporarily/d" /etc/apt/sources.list
sudo sed -i "/jessie/d" /etc/apt/sources.list
#OR sudo sed -n '/jessie/!p' /etc/apt/sources.list
#OR grep -v 'jessie' /etc/apt/sources.list
sudo sed -i "/\n\n\n/d" /etc/apt/sources.list
#
sudo apt update

Im facing same issue

your problem solved ?

No sir… No luck

sudo apt update && sudo apt install -y libssl1.0.0
showing below errors -
Hit:1 Index of /ubuntu xenial InRelease
Hit:2 Index of /ubuntu xenial-updates InRelease
Hit:3 Index of /ubuntu xenial-backports InRelease
Get:4 Index of /debian-security jessie/updates InRelease [44.9 kB]
Hit:5 Index of /ubuntu xenial-security InRelease
Err:4 Index of /debian-security jessie/updates InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY AA8E81B4331F7F50
Reading package lists… Done
W: GPG error: Index of /debian-security jessie/updates InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY AA8E81B4331F7F50
E: The repository ‘Index of /debian-security jessie/updates InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

You can add the key to your system and try again (I think)

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9D6D8F6BC857C906

then run the other commands

i tried easy install on Ubuntu 19 , and its give me same error

E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 21, in install_bench
‘sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel’
File “install.py”, line 226, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev’ returned non-zero exit status 100

Sorry guys - I specified the repos for debian instead of ubuntu. I don’t use ubuntu, but I’m sure it isn’t difficult to find repos that will work/match

@Prashanta_Mahato Hello, I am also experiencing the same problem, but I have an alternative method,

run the command

sudo apt-get install libssl-dev

then Edit it on install.py

libssl1.0-dev to libssl-dev

then open the file

/tmp/.bench/playbooks/roles/common/tasks/debian_family.yml

and edit

libssl1.0-dev to libssl-dev

I have tried and succeeded :smile:

good luck to you

1 Like

Thank you Misbah, I will try and update you the status.

Hello

I’m facing same issue, but I can find this file

I’m facing some trouble with erpnext installation on ubuntu 16.

Thanks Misbah , i tried and succeeded:grinning:

I used to run into similar issues with dependencies being slightly mismatched versions when installing software from source and or a combo of source and packages back in the days before FreeBSD got a more sophisticated package management system. Seems like it happened a lot with PHP extensions, when the software was looking for an older library than was installed with the OS (or vice versa). The work around I used was to make a link to the newer library but name the link for what the software was asking for. It worked just fine and then I didn’t have to track the changes and do merges in the source code. I would keep track of those changes to the environment by putting them in a my system configuration script (these days I guess that’s called “devops”. But if you’re going to change the source maybe do a switch statement and make a pull request. Maybe the devs have a reason for that version of the library? Or maybe it’s just because that’s what is default on Ubuntu which moves faster than Debian.

Facing trouble installing Erpnext V10.
bench update --patch throwing Command ‘basename $(git symbolic-ref -q Head)’ returned non-zero exit status 1.

also getting update tabComment set comment = substr(comment,6,locate(‘:’, comment)6) where comment_type in (‘Assigned’, ‘Assignment Completed’)

@Nader_Adel your welcome :slight_smile: