[Guide] How to install ERPNext v14 on Linux Ubuntu (step-by-step instructions)

Hi @Fred1

It looks like you already had the payments app installed on your system. I suppose this is an existing server that you’re trying to install v14 on. Can you check the list of all your installed Frappe applications by running

bench version --format table

This should give you an output of all your existing apps with their version numbers.

Any idea?

Solution
$ sudo apt install software-properties-common -y $ sudo add-apt-repository ppa:deadsnakes/ppa -y $ sudo apt install python3.10 -y

Which version of Ubuntu are use using? It looks like your system is not able to find the package in its repository. Try running the below and see if it’s able to locate it;

sudo apt-get update -y
sudo apt-get upgrade -y

Thanks for this guide! I’m a very newbie to ERPNext and came from a different ERP. Currently, i am testing ERPNext installed inside VirtualBox (via OVA). I wish to try this guide but not to use a separate computer running under Ubuntu, instead install it inside the VirtualBox. This is currently my idea on how to do this: download an ISO image of ubuntu, create a new virtual machine inside VirtualBox by copying the settings of my current ERPNext VM then follow your guide. Am i on the right path? Kindly give me some more guidance. By the way, which ubuntu should i use? desktop or server? Thanks!

Hi, new error ocurred in run “bench --site site1.local install-app hrms”

Looks like some issue with your Redis server. I think the hrms app is already installed on your server. You can try running the bench --site site1.local install-app hrms command again and you should receive a message stating that the app is already installed. You can ignore the error message and continue with the rest of the steps.

I also had the same error while installing it inside a vm. I thought it was caused by installing it inside vm in which i haven’t specified the home/guest ports in the vm’s settings. I also had warning that says “Cannot connect to redis_cache to update assets.json” which appeared in several instances but the installation went through and working. Do i have to do something with the Redis server? Thanks!

Hi
i have installed ubuntu 22.04 LTS in a oracle vm virtual box
can i use the above procedure to install erpnext
please advice
regards
Hemanth

Many users have faced this issues but no issues have been reported so far due to this issue. So, I don’t think you need to do anything as long as the system is working as expected.

Yes it should work correctly.
You might face difficulty while setting up production but it should be fixable.

Thanks for the reply!

Hi
Thanks for the reply
have a doubt
1.1 Login to the server as root user
could you please help me in to this
should i login to ubuntu root ?
please advice
hemanth

Yes that is correct.
You have to login to your Ubuntu server as the root user.

hemanth@hemanth-virtualbox:~Desktop$ su root
Password:
root@hemanth-virtualbox:/home/hemanth/Desktop#

iam also getting an error while using
su user
this is the error
su rkh error

is the above correct?
Please advice
Hemanth

Hi
all packages installed successfully with out error
how do i access erpnext
whats the command for the browser
please advice
hemanth

Hi @krishnanhemanth

Glad to know that the installation went through without any issues.
Since you’re using VM, you can access ERPNext from localhost (on your browser).

Hi shashank_shirke
Thanks a lot for your tips and the detailed post for installation
Apart from installing erpnext, there was a lot of other things that i learnt thru this process
Thanks again
about accessing erpnext from localhost, i used 127.0.0.1:8000 and it throws connection refused
Any pointers on this
Regards
Hemanth

Did your vm finished loading and are you already logged into ubuntu?

Have you set the host/guest ports for http (and ssh)? You should have set host port 8000 under http before your 127.0.0.1:8000 should work.

Hi Jon632
Thanks for the reply
updated the vm box and have successfully loaded the login page

  1. there is a boto3 error coming up when i did a bench update
    any pointers on this
    did a bench setup requirements and the error is still there
  2. Erpnext keeps logging out frequently with a
    Regards
    Hemanth