Issue while installing ERPnext 15 with ubuntu v24

while I try to install the frappe and I reach the step to Initialize Frappe Bench , its show me this error :

bench init frappe-bench --frappe-branch version-15
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/local/lib/python3.12/dist-packages/bench/cli.py", line 74, in cli
    cmd_from_sys = get_cmd_from_sysargv()
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/bench/utils/__init__.py", line 581, in get_cmd_from_sysargv
    if sys_argv.index(arg) == 0 and arg in Bench(".").apps:
                                           ^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/bench/bench.py", line 67, in __init__
    self.apps = BenchApps(self)
                ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/bench/bench.py", line 177, in __init__
    self.initialize_apps()
  File "/usr/local/lib/python3.12/dist-packages/bench/bench.py", line 281, in initialize_apps
    for x in os.listdir(os.path.join(self.bench.name, "apps"))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: './apps'

Hi @W3d,
You can try below command for your issue.

sudo chown -R frappe:frappe /home/frappe-bench/
1 Like

Hi,

It may help to say which instructions you are following to install with.

i wil try it

How to Install ERPNext Version 15 in Ubuntu 24.04 – A step by Step Guide

Review the Create a new user – (bench user) section of Karani’s instructions and make sure your user has permissions needed to execute the commands.