Unable to install Frappe on Ubuntu 24

Dear all ,

I am new to Frappe. While I am installing frappe on my ubuntu 24. I am getting error message, I tried many of the issue. But unable to solve issue.
Source for installing frappe is : https://github.com/D-codE-Hub/Guide-to-Install-Frappe-ERPNext-in-Ubuntu-22.04-LTS

Error logs
root@narendra-Latitude-3520:/home/narendra/Documents/frappe_1# sudo apt-get install software-properties-common
sudo apt install mariadb-server
sudo mysql_secure_installation
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
software-properties-common is already the newest version (0.102).
The following packages were automatically installed and are no longer required:
libaio1t64 libevent-core-2.1-7t64 libevent-pthreads-2.1-7t64 libmecab2
libprotobuf-lite32t64 mecab-ipadic mecab-ipadic-utf8 mecab-utils
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
mariadb-server is already the newest version (1:11.4.3-1).
The following packages were automatically installed and are no longer required:
libaio1t64 libmecab2 mecab-ipadic-utf8
libevent-core-2.1-7t64 libprotobuf-lite32t64 mecab-utils
libevent-pthreads-2.1-7t64 mecab-ipadic
Use ‘sudo apt autoremove’ to remove them.

Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 34
sudo: mysql_secure_installation: command not found

Please help me to solve this issue. Thanks for your help.

Best,
Narendra Singh

please check it: How to Install ERPNext Version 15 in Ubuntu 22.04 - A step by Step Guide - Code with Karani

Otherwise, check the doc.

I have checked both the steps , but I think I am missing something.
Here are few more information which can help you all to help me to fix this issue.

  1. I am using Ubuntu 22.04 , below is output

narendra@narendra:~/Documents/frappe/frappe_13122024$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

  1. Python Version
    narendra@narendra:~/Documents/frappe/frappe_13122024$ python3 --version
    Python 3.10.12

  2. Node JS Version
    narendra@narendra:~/Documents/frappe/frappe_13122024$ node -v
    v18.20.5

  3. Redis Server
    narendra@narendra:~/Documents/frappe/frappe_13122024$ redis-server --version
    Redis server v=6.0.16 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=a3fdef44459b3ad6

  4. Mariadb
    narendra@narendra:~/Documents/frappe/frappe_13122024$ mariadb --version
    mariadb Ver 15.1 Distrib 10.6.18-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

  5. Yarn Version
    narendra@narendra:~/Documents/frappe/frappe_13122024$ yarn --version
    1.22.22

  6. pip Version
    narendra@narendra:~/Documents/frappe/frappe_13122024$ pip3 --version
    pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

  7. bench version
    narendra@narendra:~/Documents/frappe/frappe_13122024$ bench --version
    5.23.0

  8. After running bench start , I am getting below output which is

  9. After bench start , I can open firefox and able to see “Not Found” on URL. I am attaching screenshot.

  1. while running command bench new-site dcode11.com , I am getting error . I am also attaching screenshot with this.

Ref: GitHub - D-codE-Hub/Guide-to-Install-Frappe-ERPNext-in-Ubuntu-22.04-LTS: A complete Guide to Install Frappe Bench in Ubuntu 22.04 LTS and install Frappe/ERPNext Application

I used this link to installation of frappe on my system. Looking forward for help and support.

Best,
@iamnarendrasingh