Hi, I just started with a fresh installed ubuntu 20.04 to install the ERPNext with easy install script, unfortunately we cannot proceed after the first step, the error and commands we run are as bellow:
Any help and clue?
This was an issue I ran into recently. The Easy Install script does not currently support Ubuntu 20.04
opened 09:25PM - 14 May 20 UTC
closed 06:07PM - 01 Jul 21 UTC
Issue: Feature Request
I had some fun attempting to do a production installat… ion of bench on a fresh Ubuntu 20.04 LTS with Python 3.8 this morning. Yes, Ubuntu 20.04 is still [very VERY new](https://lists.ubuntu.com/archives/ubuntu-announce/2020-April/000256.html).
#### To reproduce
As stated in Bench README:
```bash
apt install python3-minimal build-essential python3-setuptools
wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
python3 install.py --production
```
### `platform.dist()` removed in Python 3.8
Python 3.8 removed finally removed the deprecated `platform.dist()` method. This has been [deprecated since Python 2.6](https://docs.python.org/2/library/platform.html#platform.dist). Although changing `install.py:100` to
`current_dist = ('Ubuntu', '20.04', 'focal')`
easily fixed that issue. I grabbed that running `platform.dist()` in a Python 2 console.
### `libssl1.0-dev` unavailable in Ubuntu 20.04 LTS
The easy install script kept going for some time until it reached this:
```
TASK [common : install pdf prerequisites for Ubuntu >= 18.04] ************************************************************************************************************************************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/ubuntu.yml:33
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1589483796.3580744-140108001331921 `" && echo ansible-tmp-1589483796.3580744-140108001331921="` echo /root/.ansible/tmp/ansible-tmp-1589483796.3580744-140108001331921 `" ) && sleep 0'
Using module file /usr/local/lib/python3.8/dist-packages/ansible/modules/packaging/os/apt.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-349933sshhs80/tmpgx2rvu9o TO /root/.ansible/tmp/ansible-tmp-1589483796.3580744-140108001331921/AnsiballZ_apt.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1589483796.3580744-140108001331921/ /root/.ansible/tmp/ansible-tmp-1589483796.3580744-140108001331921/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1589483796.3580744-140108001331921/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1589483796.3580744-140108001331921/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
File "/tmp/ansible_apt_payload_u1hwk7sb/__main__.py", line 434, in package_status
pkg = cache[pkgname]
File "/usr/lib/python3/dist-packages/apt/cache.py", line 305, in __getitem__
raise KeyError('The cache has no package named %r' % key)
fatal: [localhost]: FAILED! => {
"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,
"only_upgrade": false,
"package": [
"libssl1.0-dev"
],
"pkg": [
"libssl1.0-dev"
],
"policy_rc_d": null,
"purge": false,
"state": "present",
"update_cache": null,
"upgrade": null
}
},
"msg": "No package matching 'libssl1.0-dev' is available"
}
```
`libssl1.0-dev` looks to be unavailable on Ubuntu 20.04 APT repos.
```bash
root@mysupercoolnewserver:~# sudo apt-get install libssl1.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1.0-dev' has no installation candidate
```
I am currently looking to see if `libssl1.0-dev` is supposed to be included into Focal repositories at a later date.
Are there plans to support Ubuntu 20 LTS? If so, when would this be possible?
opened 03:37PM - 08 Jun 20 UTC
closed 12:26PM - 10 Sep 20 UTC
Issue: Easy Install
**Distro Information (Required)**
Ubuntu 20.04 LTS
… And for all new distros in future
**Possible Solution**
To replace **Replace platform.dist() with distro.linux_distribution in install.py**
Use this module https://github.com/nir0s/distro for getting distro/system verion information.
I will try to cook something myself. But I am not a professional programmer. So if anybody can work on this request.
However, others have been using this: (UPDATED)
2 Likes
@wkhaksar
Follow this link to install erpnext on 20.04.
Hello friends,
This is my first post on this forum.
I was struggling to install ERPNEXT with easy install method. I almost spend 3-4 days to know why it is not working finally with lots of tweaks and turns i managed to install it. (Thanks to the lockdown i was able to spare the time to troubleshoot the issue in detail.)
Fresh installation of Ubuntu 20.04
Creations of user with sudo rights.
sudo adduser *Your_USERNAME*
sudo usermod -aG sudo *Your_USERNAME*
Use this cmd to …
If you face any problem please let me know.
2 Likes
It works perfectly… Just follow the instructions!
You’ll find a more recent forum topic for new discussions here: An alternative installer for Ubuntu 20.04 LTS and Ubuntu 18.04 LTS
I was forced to open it because I was locked out of the previous one that you refer to.
1 Like
Thank you Patel for all help. I followed your post with one another user named ‘Omid’.
@wkhaksar
Refer this link.