sudo: slapt-get: command not found

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
harroxelas
Posts: 4
Joined: 8. Jan 2012, 23:09

sudo: slapt-get: command not found

Post by harroxelas »

Hi all,

I've been using Debian on my main laptop and PC for some time so I decided I wanted to try something new on my even older laptop. Looked around and Salix OS XFCE seemed like a good choice. Never used Slackware or anything based on it before so I figured using Salix would be a good place to start.

This is distro is FAST! I loved it. Congrats to the developers and the community!

The problem I'm facing is this:

Edited sudoers to allow my regular account to run slapt-get but it simply won't run it. If I run "sudo /usr/sbin/slapt-get" or run slapt-get as root, then it works.

How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?

Thanks in advance.
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: sudo: slapt-get: command not found

Post by Akuna »

And what happens if you run Gslapt from the regular system menu?

Otherwise the usual procedure from the command line is to issue:

Code: Select all

$ su -
Give your root password when asked and then:

Code: Select all

# slapt-get 
which should give you the help menu if you do not specify any options.
Image
What really matters is where you are going, not where you come from.
User avatar
gapan
Salix Wizard
Posts: 6403
Joined: 6. Jun 2009, 17:40

Re: sudo: slapt-get: command not found

Post by gapan »

harroxelas wrote:How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?
You can add a line to set it in your ~/.bashrc. You might also want to add /sbin and /usr/local/sbin

Code: Select all

PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
Image
Image
harroxelas
Posts: 4
Joined: 8. Jan 2012, 23:09

Re: sudo: slapt-get: command not found

Post by harroxelas »

Thanks for the responses.
gapan wrote:
harroxelas wrote:How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?
You can add a line to set it in your ~/.bashrc. You might also want to add /sbin and /usr/local/sbin

Code: Select all

PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
gapan, that didn't work. Googling around, I saw different syntaxes of this command.

Well, I'll just use sourcery. Thanks!
User avatar
gapan
Salix Wizard
Posts: 6403
Joined: 6. Jun 2009, 17:40

Re: sudo: slapt-get: command not found

Post by gapan »

There is no way it couldn't work. Since you're not providing any information on how it didn't work, I can't offer any more help. Just a guess: you didn't open a new terminal window after you changed that, did you?
Image
Image
harroxelas
Posts: 4
Joined: 8. Jan 2012, 23:09

Re: sudo: slapt-get: command not found

Post by harroxelas »

gapan,

Sorry for not making myself clear. Here's what I did:

1) Logged as root
2) Edited .bashrc on the root dir
3) Added the line you provided on the end of the .bashrc
4) Closed the terminal and opened a new one (as .bashrc is executed on every new terminal session)
5) Got the same error message
6) Rebooted the system
7) Tried again and got the same error

I'm starting to think that the problem is on the sudores edit. I did what I had done on Debian:

1) Logged as root
2) visudo
3) just below the root permission (root ALL=(ALL) ALL) I added the line "myusername ALL=(ALL) ALL"
4) saved and quit
5) typed visudo again just to check if it saved correctly, and it did.

I don't know what else to do (except using sourcery) but I'd much prefer using the slapt-get, as I'm very used to apt-get.

Thanks for the help.
User avatar
gapan
Salix Wizard
Posts: 6403
Joined: 6. Jun 2009, 17:40

Re: sudo: slapt-get: command not found

Post by gapan »

You need to edit the .bashrc in your user's home directory, not root's .bashrc. That's why I wrote ~/.bashrc and not /root/.bashrc.
Image
Image
harroxelas
Posts: 4
Joined: 8. Jan 2012, 23:09

Re: sudo: slapt-get: command not found

Post by harroxelas »

/me taps his forehead. *Stupid!*

Cheers, gapan. Thanks for the help.
Post Reply