ERPNext Installation in Ubuntu 14.04

Greetings to the community.

Its with a lot of frustration that i write to this community seeking for help on installing ERPNext in Ubuntu.

For 2 days, I have followed the instructions HERE And ON THIS SITE And ALSO HERE

The manual installation is quit difficult and always ends up breaking for one reason or the other while the automatic instruction has missing files (404 Nof Found) during downloads, disrupting the automatic process.

Please is there a source from which i can do the automatic installation even if its for a lower or higher version of Ubuntu? I will very much appreciate you assistance.

Why not proceed with the easy way,

sudo -i
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production --user frappe

Post screenshot in case of got stuck, good luck with installation, there’re a lot of frustrations comes after upon configurations, get ready!

Look at /etc/apt/sources.list it might be caused by other entries, just disable it for now.

frappe@domatob-pc:~$ sudo python install.py --production --user frappe
[sudo] password for frappe:
Ign http://extras.ubuntu.com trusty InRelease
Ign http://cm.archive.ubuntu.com trusty InRelease
Get:1 http://extras.ubuntu.com trusty Release.gpg [72 B]
Get:2 http://cm.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://extras.ubuntu.com trusty Release
Hit http://mirror.zol.co.zw trusty InRelease
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://mirror.zol.co.zw trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security InRelease
Get:3 http://cm.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://mirror.zol.co.zw trusty/main i386 Packages
Hit http://cm.archive.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://mirror.zol.co.zw trusty/main ppc64el Packages
Get:4 http://cm.archive.ubuntu.com trusty-updates/main Sources [387 kB]
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Get:5 http://cm.archive.ubuntu.com trusty-updates/restricted Sources [5,888 B]
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Get:6 http://cm.archive.ubuntu.com trusty-updates/universe Sources [169 kB]
Get:7 http://cm.archive.ubuntu.com trusty-updates/multiverse Sources [7,522 B]
Get:8 http://cm.archive.ubuntu.com trusty-updates/main i386 Packages [883 kB]
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://security.ubuntu.com trusty-security/main Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:9 http://cm.archive.ubuntu.com trusty-updates/restricted i386 Packages [16.2 kB]
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Ign http://ppa.launchpad.net trusty InRelease
Ign http://mirror.stshosting.co.uk trusty InRelease
Get:10 http://cm.archive.ubuntu.com trusty-updates/universe i386 Packages [390 kB]
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://ppa.launchpad.net trusty Release.gpg
Ign http://mirror.stshosting.co.uk trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://ppa.launchpad.net trusty Release
Ign http://mirror.stshosting.co.uk trusty Release
Ign http://mirror.zol.co.zw trusty/main Translation-en_US
Get:11 http://cm.archive.ubuntu.com trusty-updates/multiverse i386 Packages [14.5 kB]
Hit http://ppa.launchpad.net trusty/main i386 Packages
Ign http://mirror.zol.co.zw trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://cm.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://cm.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://cm.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://cm.archive.ubuntu.com trusty-updates/universe Translation-en
Get:12 http://cm.archive.ubuntu.com trusty-backports/main Sources [9,632 B]
Get:13 http://cm.archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:14 http://cm.archive.ubuntu.com trusty-backports/universe Sources [35.3 kB]
Get:15 http://cm.archive.ubuntu.com trusty-backports/multiverse Sources [1,898 B]
Get:16 http://cm.archive.ubuntu.com trusty-backports/main i386 Packages [13.3 kB]
Get:17 http://cm.archive.ubuntu.com trusty-backports/restricted i386 Packages [28 B]
Err http://mirror.stshosting.co.uk trusty/main i386 Packages
404 Not Found
Get:18 http://cm.archive.ubuntu.com trusty-backports/universe i386 Packages [43.2 kB]
Ign http://mirror.stshosting.co.uk trusty/main Translation-en_US
Ign http://mirror.stshosting.co.uk trusty/main Translation-en
Get:19 http://cm.archive.ubuntu.com trusty-backports/multiverse i386 Packages [1,552 B]
Hit http://cm.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://cm.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://cm.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://cm.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://cm.archive.ubuntu.com trusty Release
Hit http://cm.archive.ubuntu.com trusty/main Sources
Hit http://cm.archive.ubuntu.com trusty/restricted Sources
Hit http://cm.archive.ubuntu.com trusty/universe Sources
Hit http://cm.archive.ubuntu.com trusty/multiverse Sources
Hit http://cm.archive.ubuntu.com trusty/main i386 Packages
Hit http://cm.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://cm.archive.ubuntu.com trusty/universe i386 Packages
Hit http://cm.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://cm.archive.ubuntu.com trusty/main Translation-en
Hit http://cm.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://cm.archive.ubuntu.com trusty/restricted Translation-en
Hit http://cm.archive.ubuntu.com trusty/universe Translation-en
Ign http://cm.archive.ubuntu.com trusty/main Translation-en_US
Ign http://cm.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://cm.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://cm.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 2,110 kB in 23s (88.1 kB/s)
W: Failed to fetch http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Traceback (most recent call last):
File “install.py”, line 351, 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 219, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo apt-get update’ returned non-zero exit status 100
frappe@domatob-pc:~$

yes, mirrors for MariaDB has been changed yesterday into digitalocean servers and today to datautama!
It could be the reason

I don’t know where they place that line it scripts, anway try to install MariaDB manually before executing installer.

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://kartolo.sby.datautama.net.id/mariadb/repo/10.0/ubuntu trusty main’

This line is really strange, are you using ubuntu? or somehow derivative distro?!
yum and epel-release are for Redhat, CentOS, Fedora etc.

Do you have webmin installed? disable its repo in /etc/apt/sources.list till you finish installation
webmin shown in that mirror

Thanks for assistance. I noticed what the problem was.

Just for the sake of anyone who will visit this post let me explain:

  1. First change user to root user by typing:
    sudo -i

You may be prompted to enter password, just enter and continue.

  1. download the installation file:
    wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

  2. Execute the installation file with a different user “frappe” is used in this case. However, it can be any name of your choice.

sudo python install.py --production --user frappe

  1. if the installation fails along the line, repeat point 3

when its all done, you should see something like this:
PLAY RECAP *********************************************************************
localhost : ok=57 changed=25 unreachable=0 failed=0

Frappe/ERPNext has been successfully installed!

  1. Go to your browser and type:
    localhost:80

  2. Login and you are good to go.

Bonne Chance…