You are not logged in.

#1 2011-09-27 15:16:40

songandsilence
Member
From: Burlingame, KS, USA
Registered: 2010-12-01
Posts: 28

Half-broken system.... no idea why.

I'm not sure what happened, or what I did, but I can't seem to get any commands in /sbin, /etc/rc.d, or pretty much anything that needs to be run as root to work. I keep getting "command not found" Errors in the terminal, even if ls plainly tells me that the executable is there. Even which says it's not there.

I can't even -Syu right now sad

Offline

#2 2011-09-27 15:20:06

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Half-broken system.... no idea why.

so are you ranting or you need help ?

What commands? Check your logs. See if you installed/uninstalled something. Check dmesg. Lots of things you can do before you come here to rant.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-09-27 15:21:55

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Half-broken system.... no idea why.

He has a path problem.

$ echo $PATH

will probably show no /sbin or /usr/sbin paths.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2011-09-27 15:24:05

songandsilence
Member
From: Burlingame, KS, USA
Registered: 2010-12-01
Posts: 28

Re: Half-broken system.... no idea why.

You're right about my path problem. And I wasn't trying to rant; apologies if it sounded like one.

How do I add those back into my path?

Offline

#5 2011-09-27 15:27:34

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Half-broken system.... no idea why.

Find out where you are setting your PATH wrong. grep -r can be handy for that.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2011-09-27 15:31:11

songandsilence
Member
From: Burlingame, KS, USA
Registered: 2010-12-01
Posts: 28

Re: Half-broken system.... no idea why.

[james@arch-vaio ~]$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin

Is what I get... I don't know how to edit this, or what file it's in.

Offline

#7 2011-09-27 15:32:41

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: Half-broken system.... no idea why.

If you were messing with the PATH variable you need to correct its value as stated @Mr.Elendig.

On how to set your PATH you should try to search in here a little bit and I'm sure you will find more than 1 answer.

Just for reference:

https://bbs.archlinux.org/viewtopic.php … 32#p427932

https://bbs.archlinux.org/viewtopic.php … 21#p988621

Globally, the PATH is set inside the /etc/profile .

EDIT: corrected some typos

Last edited by ViruSzZ (2011-09-27 15:33:46)


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#8 2011-09-27 15:46:16

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Half-broken system.... no idea why.

To make things a bit clearer, there should be a line like this in /etc/profile:

# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH

Check the files in /etc/profile.d as well if the PATH variable has been changed from a script sourced from there.
Also consult "man bash" about the order how the startup scripts are read then check each one in the chain.

Another thought - is the path ok for a newly created test user?


To know or not to know ...
... the questions remain forever.

Offline

#9 2011-09-27 15:52:34

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Half-broken system.... no idea why.

It's quite possible he didn't mess with his path settings at all, he wouldn't be the first for whom such things go wrong (I have had that problem myself a few times).

Logging in and out should usually fix it, if that doesn't, try a reboot (or sourcing /etc/profile manually), if it's still broken after that, you'll have to start digging.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#10 2011-09-27 23:57:25

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Half-broken system.... no idea why.

Offline

#11 2011-09-28 00:05:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Half-broken system.... no idea why.

Indeed. It should come with a warning "this display manager will b0rk your $PATH..."


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2011-09-28 14:20:37

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Half-broken system.... no idea why.

I would suggest to upstream to fix that "feature"


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB