ERPNext Conference 2019* ERPNext.com Blog

Error Installing 12.1.0 E: Unable to locate package libssl1.0-dev

v12

#1

Error installing 12.1.0 on ubuntu 18.04

Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 109 kB in 1s (78.6 kB/s)
Reading package lists... Done
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'
Traceback (most recent call last):
  File "install.py", line 413, in <module>
    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/python3.5/subprocess.py", line 581, 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

Update from 12.1.0 to 12.1.1
How to install ERPNext on ubuntu 18.04 WSL?
#2

What is this libss1.0-dev?

E: Unable to locate package libssl1.0-dev


#3

Using Ubuntu 18:
Changed install.py
from libssl1.0-dev to libssl1.0.0
Changed
/tmp/.bench/playbooks/roles/common/tasks/debian_family.yml
from libssl1.0-dev to libssl1.0.0
and re-run python3 install.py --production --user frappe


#4

@auliabismar I have similar issue .Look at my error message
fred@vps10050:~$ sudo python install.py --production --user fred
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists… Done
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’
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

Can you please point me to the direction of changing this libssl1.0-dev to libssl1.0.0 because i have ran this command to make the change:
sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0.0
After this command i still have the above error
Kindly help out.
Fred


#5

install.py


#6

Pls throw more light.I am not a high tech but i can get the direction if you point me please


#7

the file you get from running the command:

wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

you can edit it using nano or other text editor


#8

Great.I use nano to edit my site cofig for necessary domain configuration.In this case can you help further if you dont mind to point further how to use nano in this case.i.e “nano… ?” and from where


#9

i ran from here:
fred@vps100100:~$ nano install.py.1
bash: nano: command not found
Above is the error message>
So where do i run it and what is the command.Sorry for asking too much
Thanks


#10

I think nano is not installed in your system, install it or use other editor
and run it from the folder install.py is downloaded


#11

sudo apt-get install nano


#12

Thank you @bkm @auliabismar i was able to edit the install.py
but this the error i got when install erpnext after passing the hurdle of install.py
The full traceback is:
File “/tmp/ansible_apt_payload_xx_1v7p3/main.py”, line 434, in package_status
pkg = cache[pkgname]
File “/usr/lib/python3/dist-packages/apt/cache.py”, line 261, in getitem
raise KeyError(‘The cache has no package named %r’ % key)

[WARNING]: Could not find aptitude. Using apt-get instead

failed: [localhost] (item=[‘dnsmasq’, ‘fontconfig’, ‘git’, ‘htop’, ‘libcrypto+±dev’, ‘libfreetype6-dev’, ‘liblcms2-dev’, ‘libssl1.0-dev’, ‘libwebp-dev’, ‘libxext6’, ‘libxrender1’, ‘libxslt1-dev’, ‘libxslt1.1’, ‘libffi-dev’, ‘ntp’, ‘postfix’, ‘python3-dev’, ‘python-tk’, ‘screen’, ‘vim’, ‘xfonts-75dpi’, ‘xfonts-base’, ‘zlib1g-dev’, ‘apt-transport-https’, ‘libsasl2-dev’, ‘libldap2-dev’, ‘libcups2-dev’, ‘pv’]) => {
“ansible_loop_var”: “item”,
“changed”: false,
“invocation”: {
“module_args”: {
“allow_unauthenticated”: false,
“autoclean”: false,
“autoremove”: false,
“cache_valid_time”: 0,
“deb”: null,
“default_release”: null,
“dpkg_options”: “force-confdef,force-confold”,
“force”: true,
“force_apt_get”: false,
“install_recommends”: null,
“name”: [
“dnsmasq”,
“fontconfig”,
“git”,
“htop”,
“libcrypto+±dev”,
“libfreetype6-dev”,
“liblcms2-dev”,
“libssl1.0-dev”,
“libwebp-dev”,
“libxext6”,
“libxrender1”,
“libxslt1-dev”,
“libxslt1.1”,
“libffi-dev”,
“ntp”,
“postfix”,
“python3-dev”,
“python-tk”,
“screen”,
“vim”,
“xfonts-75dpi”,
“xfonts-base”,
“zlib1g-dev”,
“apt-transport-https”,
“libsasl2-dev”,
“libldap2-dev”,
“libcups2-dev”,
“pv”
],
“only_upgrade”: false,
“package”: [
“dnsmasq”,
“fontconfig”,
“git”,
“htop”,
“libcrypto+±dev”,
“libfreetype6-dev”,
“liblcms2-dev”,
“libssl1.0-dev”,
“libwebp-dev”,
“libxext6”,
“libxrender1”,
“libxslt1-dev”,
“libxslt1.1”,
“libffi-dev”,
“ntp”,
“postfix”,
“python3-dev”,
“python-tk”,
“screen”,
“vim”,
“xfonts-75dpi”,
“xfonts-base”,
“zlib1g-dev”,
“apt-transport-https”,
“libsasl2-dev”,
“libldap2-dev”,
“libcups2-dev”,
“pv”
],
“policy_rc_d”: null,
“purge”: false,
“state”: “present”,
“update_cache”: null,
“upgrade”: null
}
},
“item”: [
“dnsmasq”,
“fontconfig”,
“git”,
“htop”,
“libcrypto+±dev”,
“libfreetype6-dev”,
“liblcms2-dev”,
“libssl1.0-dev”,
“libwebp-dev”,
“libxext6”,
“libxrender1”,
“libxslt1-dev”,
“libxslt1.1”,
“libffi-dev”,
“ntp”,
“postfix”,
“python3-dev”,
“python-tk”,
“screen”,
“vim”,
“xfonts-75dpi”,
“xfonts-base”,
“zlib1g-dev”,
“apt-transport-https”,
“libsasl2-dev”,
“libldap2-dev”,
“libcups2-dev”,
“pv”
],
“msg”: “No package matching ‘libssl1.0-dev’ is available”
}

PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 135, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 327, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=fred’]’ returned non-zero exit status 2

meaning " libssl1.0-dev" is a necessity?!


#13

I am getting same issue, any help on that, check my post for hints, by the way I am still stuck.


#14

@bkm @auliabismar thanks .I later discovered that i have not nano edit /tmp/.bench/playbooks/roles/common/tasks/debian_family.yml
from libssl1.0-dev to libssl1.0.0
After the correction i was able to install
@nmami please edit
Changed install.py
from libssl1.0-dev to libssl1.0.0
Changed
/tmp/.bench/playbooks/roles/common/tasks/debian_family.yml
from libssl1.0-dev to libssl1.0.0


#15

Yes, correct
As I mentioned in the solution post above


#16

I never use WSL, instead I only use VPS. Or maybe you can you virtualbox?


#17

Which is the correct one? libssl1.0.0 or libssl-dev ? Because after Google-ing it, some users suggest to use libssl-dev .


#18

libssl1.0.0 does not exists on https://packages.ubuntu.com/ .


#19

I thought this issue was closed after 12.1.3. Let me know if you still have this issue.


#20

Yes, I am still having, but I changed the package name to libssl-dev on install.py and debian_family.yml and it was installed. I do not know id this will cause any issue in the future.