Ubuntu 16.04 installation

I have a laptop running Ubuntu 16.04 64bit. I’m trying to setup ERPNext for a demo to a prospective customer. (I have been an ERP Consultant for over 20 years and have decided to branch out into Open Source). I have really been battling with this!

wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh ← this works

sudo bash setup_frappe.sh --setup-production ← gives me this: Installing for Ubuntu xenial amd64
In case you encounter an error, you can post on https://discuss.frappe.io (here I am!)

Adding ubuntu mariadb repo
Hit:1 http://ftp.wa.co.za/pub/mariadb/repo/10.0/ubuntu xenial InRelease
Get:2 Index of http://download.virtualbox.org/virtualbox/debian xenial InRelease [7,882 B]
Hit:3 http://za.archive.ubuntu.com/ubuntu xenial InRelease
Ign:2 Index of http://download.virtualbox.org/virtualbox/debian xenial InRelease
Hit:4 http://za.archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:5 Index of /9.0/nightly/deb/ ./ InRelease
Ign:6 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial InRelease
Get:7 Index of /ubuntu xenial-security InRelease [94.5 kB]
Hit:8 http://za.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:9 http://ams2.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu xenial InRelease
Hit:10 Index of /djcj/hybrid/ubuntu xenial InRelease
Hit:11 Index of /ubuntu xenial InRelease
Hit:12 Index of /me-davidsansome/clementine/ubuntu xenial InRelease
Hit:13 Index of /9.0/nightly/deb/ ./ Release
Ign:14 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:15 Index of /ubuntu xenial InRelease
Ign:16 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial Release
Hit:18 Index of /openshot.developers/ppa/ubuntu xenial InRelease
Hit:19 http://dl.google.com/linux/chrome/deb stable Release
Ign:20 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 Packages
Hit:22 http://ppa.launchpad.net/paul-climbing/ppa/ubuntu xenial InRelease
Ign:23 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main i386 Packages
Hit:24 Index of /tomtomtom/k9copy/ubuntu xenial InRelease
Ign:25 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main all Packages
Hit:26 Index of /webupd8team/java/ubuntu xenial InRelease
Ign:27 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en_ZA
Ign:28 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en
Ign:29 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:30 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main DEP-11 64x64 Icons
Hit:31 https://deb.nodesource.com/node_0.12 xenial InRelease
Ign:20 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 Packages
Ign:23 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main i386 Packages
Ign:25 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main all Packages
Ign:27 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en_ZA
Ign:28 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en
Ign:29 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:30 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main DEP-11 64x64 Icons
Ign:20 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 Packages
Ign:23 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main i386 Packages
Ign:25 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main all Packages
Ign:27 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en_ZA
Ign:28 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en
Ign:29 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:30 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main DEP-11 64x64 Icons
Ign:20 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 Packages
Ign:23 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main i386 Packages
Ign:25 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main all Packages
Ign:27 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en_ZA
Ign:28 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en
Ign:29 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:30 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main DEP-11 64x64 Icons
Ign:20 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 Packages
Ign:23 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main i386 Packages
Ign:25 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main all Packages
Ign:27 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en_ZA
Ign:28 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en
Ign:29 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:30 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main DEP-11 64x64 Icons
Err:20 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:23 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main i386 Packages
Ign:25 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main all Packages
Ign:27 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en_ZA
Ign:28 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main Translation-en
Ign:29 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:30 http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 102 kB in 17s (5,961 B/s)
Reading package lists…
W: GPG error: Index of http://download.virtualbox.org/virtualbox/debian xenial InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A2F683C52980AECF
W: The repository ‘Index of http://download.virtualbox.org/virtualbox/debian xenial InRelease’ is not signed.
W: The repository ‘http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu xenial Release’ does not have a Release file.
W: http://nightly.odoo.com/9.0/nightly/deb/./Release.gpg: Signature by key 5D134C924CB06330DCEFE2A1DEF2A2198183CBB5 uses weak digest algorithm (SHA1)
E: Failed to fetch http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

Any assistance would be appreciated! I have tried Odoo and it installed very easily. But I don’t think it is suitable to my customer. Thanks.

Can you try it after removing http://mirror.stshosting.co.uk/mariadb/repo/10.0/ubuntu from /etc/apt/sources.list. Or try it on fresh ubuntu install so it will be simpler to trace problems.

for demo there are two easy alternatives :

  1. ERPNext Demo or ERPNext Trial
  2. Try it on VM - https://erpnext.com/download

Hey, as mentioned on the Bench Readme, the script you used only works upto 15.x, we have since deprecated it and recommend you use the new Beta script : GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

Also, I’d recommend starting from scratch (fresh server), because the old installer might have made changes that might clash.

Also, if you want to quickly get into ERPNext, you can always just download the VM : https://erpnext.com/download