I'm not in the sudoers file

darwin-t

New Member
Joined
Nov 20, 2024
Messages
6
Reaction score
3
Credits
75
I was introduced to Linux with my Raspberry Pi computer. I have been pretty successful setting things up and getting around and doing things.

I just installed Debian on a laptop and am having troubles

Right now I am trying to install the Brave browser. Instructions there say to

sudo apt install curl.. I have also tried sudo apt-get install curl

In both instances, it asks for a password, which does not happen on the Raspberry. I put it in and it says "darwin is not in the sudoers file"

I have found the sudoers file and a sudoers and a sudoers.d in the /etc directoryWogaf1325!

When I try to open either with a text editor, it tells me I don't have permission to open the file.

What should I do?

Is there a way to eliminate the need to enter passwords?

Thanks
 


if your regular password is not working then try signing in as root and do it.

1.. type su hit enter
2.. enter your root password
3.. then type in your command without the sudo

root password may be different than yours
 
try this if all else fails

Code:
su brian

(substitute your username for brian....be sure to leave a space between su and your user name

passwords are a necessary thing.
 
I was introduced to Linux with my Raspberry Pi computer. I have been pretty successful setting things up and getting around and doing things.

I just installed Debian on a laptop and am having troubles

Right now I am trying to install the Brave browser. Instructions there say to

sudo apt install curl.. I have also tried sudo apt-get install curl

In both instances, it asks for a password, which does not happen on the Raspberry. I put it in and it says "darwin is not in the sudoers file"

I have found the sudoers file and a sudoers and a sudoers.d in the /etc directoryWogaf1325!

When I try to open either with a text editor, it tells me I don't have permission to open the file.

What should I do?

Is there a way to eliminate the need to enter passwords?

Thanks
Another way is to edit the /etc/sudoers file in nano as root.
Under the root entry add the user's name like so:

Code:
alex  ALL=(ALL:ALL) ALL


 
Many thanks for all of the replies.

I seem to have solved the sudoer issue.

So I tried to install curl and it says
Reading package lists
Building dependency tree
Reading state information
The following NEW package will be installed
0 undated, 1 newly installed, 0 to remove and 0 not upgraded
Media change" Please insert the disk labeled 'Debian GNU/Linux... in the drive /media/cdrom/ and press ENTER

The laptop doesn't have a cdrom drive. I installed it using a thumb drive on which I installed an ISO using RUFUS on my Windows PC.

Everything is so much easier on a Raspberry.

The version I am using is Debian GNU/Linux 12 (bookworm) GNOME version 43.9. My Raspberry is based on Debian Bookworm
 
  • Like
Reactions: Rob
You are using these instructions?

Release Channel Installation​

Debian, Ubuntu, Mint​

sudo apt install curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update

sudo apt install brave-browser

from: https://brave.com/linux/
 
Many thanks for all of the replies.

I seem to have solved the sudoer issue.

So I tried to install curl and it says
Reading package lists
Building dependency tree
Reading state information
The following NEW package will be installed
0 undated, 1 newly installed, 0 to remove and 0 not upgraded
Media change" Please insert the disk labeled 'Debian GNU/Linux... in the drive /media/cdrom/ and press ENTER

The laptop doesn't have a cdrom drive. I installed it using a thumb drive on which I installed an ISO using RUFUS on my Windows PC.

Everything is so much easier on a Raspberry.

The version I am using is Debian GNU/Linux 12 (bookworm) GNOME version 43.9. My Raspberry is based on Debian Bookworm
I have never been asked for the install media, ever. It sounds like you didn't install debian on the computer and are just using the live USB. Is that the case? I got away from all debian based linux due to stupid problems like this, especially on raspberry pi. Raspian is far behind in updates. I went to Fedora on RPI
 
I am not familiar with Debian......but this appears to be a common problem

 
You are using these instructions?

Release Channel Installation​

Debian, Ubuntu, Mint​

sudo apt install curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update

sudo apt install brave-browser

from: https://brave.com/linux/
Yes. I can't even get curl to install.
 
Correct, Alex take note. The sudoers file should state this at the top.

Using visudo will take you into a temp environment (looks like Nano) and when concluded it will write the changes to real time.

@darwin-t can you please give us the output for (a # is my comment, not a command)

Code:
cat /etc/apt/sources.list

# and

cat /etc/apt/sources.list.d/sources.list

There may be no output for the second one.

Cheers

Chris Turner
wizardfromoz
 
I have never been asked for the install media, ever. It sounds like you didn't install debian on the computer and are just using the live USB. Is that the case? I got away from all debian based linux due to stupid problems like this, especially on raspberry pi. Raspian is far behind in updates. I went to Fedora on RPI
No, it is running on my laptop's hard drive. It is the only OS on it.
Correct, Alex take note. The sudoers file should state this at the top.

Using visudo will take you into a temp environment (looks like Nano) and when concluded it will write the changes to real time.

@darwin-t can you please give us the output for (a # is my comment, not a command)

Code:
cat /etc/apt/sources.list

# and

cat /etc/apt/sources.list.d/sources.list

There may be no output for the second one.

Cheers

Chris Turner
wizardfromoz
darwin@Laptop:~$ cat /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 12.8.0 Bookworm - Official amd64 DVD Binary-1 with firmware 20241109-11:05]/ bookworm contrib main non-free-firmware
deb https://deb.debian.org/debian/ bookworm main non-free

darwin@Laptop:~$ cat /etc/apt/sources.list.d/sources.list
cat: /etc/apt/sources.list.d/sources.list: No such file or directory


This is my sudoers file. I used nano to edit it.

darwin ALL=(ALL:ALL) ALL
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# This fixes CVE-2005-4890 and possibly breaks some versions of kdesu
# (#1011624, https://bugs.kde.org/show_bug.cgi?id=452532)
Defaults use_pty

It appears I have that fixed. sudo works now

I really appreciate all of the help from everyone

I did the "sudo apt update" after I did "sudo apt install" and both seemed to run successfully. When I tried

"sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg"

It says curl doesn't exist.
 
Last edited:
Install curl first

Code:
sudo apt install curl
 
One of the first things I do on installing Debian is to let my user have sudo priviledges. By editing the sudoers file. For most it may not be needed. But my VPN requires sudo to install. There are other distro that do not use sudo also to which I have to install it and then add my user to the sudoers file. Most debian based distros already come with sudo activated. Some like Ubuntu and Mint use only sudo and there is not a root user enabled as such. But it is the users choice if you need to add a root user it can be done.
 
Install curl first

Code:
sudo apt install curl
Curl is installed now. It fails to connect to the server. I may just give up on Brave and move on. In any case, my question about the sudoers list has been

darwin@Laptop:~$ sudo apt install curl
[sudo] password for darwin:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.88.1-10+deb12u8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
darwin@Laptop:~$ sudo apt update
Hit:1 https://deb.debian.org/debian bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
darwin@Laptop:~$ sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

curl: (7) Failed to connect to brave-browser-apt-release.s3.brave.com port 443 after 88565 ms: Couldn't connect to server
 
Install Linux Mint 22
 
One of the first things I do on installing Debian is to let my user have sudo priviledges. By editing the sudoers file. For most it may not be needed. But my VPN requires sudo to install. There are other distro that do not use sudo also to which I have to install it and then add my user to the sudoers file. Most debian based distros already come with sudo activated. Some like Ubuntu and Mint use only sudo and there is not a root user enabled as such. But it is the users choice if you need to add a root user it can be done.
I personal don't like sudo on my Debian or Devuan installations.
During the install I set up a user account and password and then create a root password.
This works great and has never failed me. It's more about preference I think.

With other Debian based systems I let my user have sudo privileges like you.
 
Curl is installed now. It fails to connect to the server. I may just give up on Brave and move on. In any case, my question about the sudoers list has been

darwin@Laptop:~$ sudo apt install curl
[sudo] password for darwin:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.88.1-10+deb12u8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
darwin@Laptop:~$ sudo apt update
Hit:1 https://deb.debian.org/debian bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
darwin@Laptop:~$ sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

curl: (7) Failed to connect to brave-browser-apt-release.s3.brave.com port 443 after 88565 ms: Couldn't connect to server
Did you go here to install Brave?

Or some other way? Synaptic maybe or the cmd-line?
 

Members online


Top