Hi ,
I try to run “sudo bench setup production” cmd …it show the error bench:sudo command not found(in container ubuntu 16.04),any one help me
Thanks for advance.
Hi ,
I try to run “sudo bench setup production” cmd …it show the error bench:sudo command not found(in container ubuntu 16.04),any one help me
Thanks for advance.
thanks for rly trentmu,
pls tell where i do these cmds
It show the perm denied error
You need to run these commands in a terminal as the root user.
yeah i did the cmds in root user but shown error
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
If the dpkg is locked, it implies that you have a package manager open (eg. synaptic). Just check for anything like that which is running, and terminate it.
Can you show what the screen looks like?
ubuntu@qms:~$ apt install -y sudo
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
You are logged in as user=ubuntu.
Either login as root, or do
su
root@qms:~# apt install -y sudo
Reading package lists… Done
Building dependency tree
Reading state information… Done
sudo is already the newest version (1.8.16-0ubuntu1.7).
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
root@qms:~# adduser frappe_user sudo
adduser: The user `frappe_user’ does not exist.
I used “frappe_user” as an example. Whatever user you install frappe/erpnext should be the name you add to sudoers