Error in installing ERPnext

Hi! I was trying to install ERPnext by setting up frappe bench but was unable to do so. I tried the Easy way and got the following error

W: Failed to fetch http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found [IP: 95.85.0.50 80]

W: Failed to fetch http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found [IP: 95.85.0.50 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
unable to post more…

Can you try using Ubuntu 14.04?

I am using ubuntu 14.04

I had the same problem, got it working by re-installing Ubuntu.
Are u using ubuntu server or desktop?

Ubuntu 14.04 should be “trusty”. Output of cat /etc/lsb-release?

I am sorry for the mistake… I am using ubuntu 14.10
Output of cat /etc/lsb-release is
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.10
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION=“Ubuntu 14.10”

Edit teh setup_frappe.sh file
https://github.com/frappe/bench/blob/master/install_scripts/setup_frappe.sh#L361

remove line 361 and run it

Run, the script w/o production support

sudo bash setup_frappe.sh

Then manually setup production

sudo bench setup production

If restarting nginx fails, restart it using the command,

sudo service nginx reload

I’ll fix the issues with script soon.

I removed line 361…got these errors again

Installing packages for Ubuntu. This might take time…
Ign http://ams2.mirrors.digitalocean.com utopic InRelease
Ign http://ams2.mirrors.digitalocean.com utopic Release.gpg
Ign http://in.archive.ubuntu.com utopic InRelease
Ign http://security.ubuntu.com utopic-security InRelease
Ign http://extras.ubuntu.com utopic InRelease
Ign http://in.archive.ubuntu.com utopic-updates InRelease
Ign http://ams2.mirrors.digitalocean.com utopic Release
Hit http://security.ubuntu.com utopic-security Release.gpg
Hit http://extras.ubuntu.com utopic Release.gpg
Ign http://in.archive.ubuntu.com utopic-backports InRelease
Hit http://security.ubuntu.com utopic-security Release
Hit http://extras.ubuntu.com utopic Release
Hit http://in.archive.ubuntu.com utopic Release.gpg
Get:1 http://security.ubuntu.com utopic-security/main Sources [15.7 kB]
Hit http://extras.ubuntu.com utopic/main Sources
Get:2 http://in.archive.ubuntu.com utopic-updates Release.gpg [933 B]
Hit http://extras.ubuntu.com utopic/main amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports Release.gpg
Hit http://extras.ubuntu.com utopic/main i386 Packages
Get:3 http://security.ubuntu.com utopic-security/restricted Sources [14 B]
Get:4 http://security.ubuntu.com utopic-security/universe Sources [5,252 B]
Hit http://in.archive.ubuntu.com utopic Release
Get:5 http://in.archive.ubuntu.com utopic-updates Release [62.0 kB]
Get:6 http://security.ubuntu.com utopic-security/multiverse Sources [709 B]
Get:7 http://security.ubuntu.com utopic-security/main amd64 Packages [47.0 kB]
Hit http://ftp.kaist.ac.kr trusty InRelease
Ign http://extras.ubuntu.com utopic/main Translation-en_IN
Ign http://extras.ubuntu.com utopic/main Translation-en
Hit http://in.archive.ubuntu.com utopic-backports Release
Hit http://ftp.kaist.ac.kr trusty/main amd64 Packages
Err http://ams2.mirrors.digitalocean.com utopic/main amd64 Packages
404 Not Found [IP: 95.85.0.50 80]
Get:8 http://security.ubuntu.com utopic-security/restricted amd64 Packages [14 B]
Hit http://ftp.kaist.ac.kr trusty/main i386 Packages
Err http://ams2.mirrors.digitalocean.com utopic/main i386 Packages
404 Not Found [IP: 95.85.0.50 80]
Get:9 http://security.ubuntu.com utopic-security/universe amd64 Packages [24.1 kB]
Ign http://ams2.mirrors.digitalocean.com utopic/main Translation-en_IN
Ign http://ams2.mirrors.digitalocean.com utopic/main Translation-en
Get:10 http://security.ubuntu.com utopic-security/multiverse amd64 Packages [1,146 B]
Get:11 http://security.ubuntu.com utopic-security/main i386 Packages [46.6 kB]
Get:12 http://security.ubuntu.com utopic-security/restricted i386 Packages [14 B]
Ign http://ftp.kaist.ac.kr trusty/main Translation-en_IN
Get:13 http://security.ubuntu.com utopic-security/universe i386 Packages [24.1 kB]
Ign http://ftp.kaist.ac.kr trusty/main Translation-en
Get:14 http://security.ubuntu.com utopic-security/multiverse i386 Packages [1,383 B]
Get:15 http://in.archive.ubuntu.com utopic-updates/main Sources [20.0 kB]
Hit http://security.ubuntu.com utopic-security/restricted Translation-en
Get:16 http://in.archive.ubuntu.com utopic-updates/restricted Sources [14 B]
Hit http://security.ubuntu.com utopic-security/main Translation-en
Get:17 http://in.archive.ubuntu.com utopic-updates/universe Sources [6,336 B]
Hit http://security.ubuntu.com utopic-security/multiverse Translation-en
Hit http://security.ubuntu.com utopic-security/universe Translation-en
Get:18 http://in.archive.ubuntu.com utopic-updates/multiverse Sources [709 B]
Get:19 http://in.archive.ubuntu.com utopic-updates/main amd64 Packages [55.9 kB]
Get:20 http://in.archive.ubuntu.com utopic-updates/restricted amd64 Packages [14 B]
Get:21 http://in.archive.ubuntu.com utopic-updates/universe amd64 Packages [27.8 kB]
Get:22 http://in.archive.ubuntu.com utopic-updates/multiverse amd64 Packages [1,146 B]
Get:23 http://in.archive.ubuntu.com utopic-updates/main i386 Packages [55.0 kB]
Get:24 http://in.archive.ubuntu.com utopic-updates/restricted i386 Packages [14 B]
Get:25 http://in.archive.ubuntu.com utopic-updates/universe i386 Packages [27.8 kB]
Get:26 http://in.archive.ubuntu.com utopic-updates/multiverse i386 Packages [1,383 B]
Hit http://in.archive.ubuntu.com utopic-updates/restricted Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/main Sources
Hit http://in.archive.ubuntu.com utopic-backports/restricted Sources
Hit http://in.archive.ubuntu.com utopic-backports/multiverse Sources
Hit http://in.archive.ubuntu.com utopic-backports/main amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/restricted amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/main i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/main Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com utopic/main Sources
Hit http://in.archive.ubuntu.com utopic/restricted Sources
Hit http://in.archive.ubuntu.com utopic/universe Sources
Hit http://in.archive.ubuntu.com utopic/multiverse Sources
Hit http://in.archive.ubuntu.com utopic/main amd64 Packages
Hit http://in.archive.ubuntu.com utopic/restricted amd64 Packages
Hit http://in.archive.ubuntu.com utopic/universe amd64 Packages
Hit http://in.archive.ubuntu.com utopic/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com utopic/main i386 Packages
Hit http://in.archive.ubuntu.com utopic/restricted i386 Packages
Hit http://in.archive.ubuntu.com utopic/universe i386 Packages
Hit http://in.archive.ubuntu.com utopic/multiverse i386 Packages
Hit http://in.archive.ubuntu.com utopic/main Translation-en
Hit http://in.archive.ubuntu.com utopic/multiverse Translation-en
Hit http://in.archive.ubuntu.com utopic/restricted Translation-en
Hit http://in.archive.ubuntu.com utopic/universe Translation-en
Hit http://in.archive.ubuntu.com utopic-updates/main Translation-en
Hit http://in.archive.ubuntu.com utopic-updates/multiverse Translation-en
Hit http://in.archive.ubuntu.com utopic-updates/universe Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/universe Sources
Hit http://in.archive.ubuntu.com utopic-backports/universe amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/universe Translation-en
Fetched 425 kB in 49s (8,515 B/s)
W: Failed to fetch http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found [IP: 95.85.0.50 80]

W: Failed to fetch http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found [IP: 95.85.0.50 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

Can you /etc/sources.list to remove the faulty lines with http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-amd64/Packages and try again?