You are not logged in.

#1 2008-05-07 15:31:00

vbtricks
Member
From: Germany
Registered: 2008-03-20
Posts: 37
Website

[solved] shutdown, iwconfig, reboot... not found

Salut,

when I try to run shutdown, iwconfig or reboot, I suddenly get the message

-bash: COMMAND: command not found

where COMMAND is the entered command.

I did not modify the .bashrc

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$'

Any chance to get that working again?


Thanks in advance,

Stefan

Last edited by vbtricks (2008-05-10 08:41:13)

Offline

#2 2008-05-07 15:52:16

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [solved] shutdown, iwconfig, reboot... not found

Hello,

You may have a problem with your /etc/profile.  Please post what you get when you type

ls /etc/profil*

Also, please post what you get when you type

echo $PATH

Offline

#3 2008-05-07 16:19:57

vbtricks
Member
From: Germany
Registered: 2008-03-20
Posts: 37
Website

Re: [solved] shutdown, iwconfig, reboot... not found

Salut,

tigrmesh wrote:

ls /etc/profil*

/etc/profile.bash  /etc/profile.pacsave

/etc/profile.d:
glib2.csh glib2.sh locale.sh mozilla-common.sh perlbin.sh xorg.sh

echo $PATH

/usr/gnu/bin:/usr/local/bin:/bin/:/usr/bin:.

Offline

#4 2008-05-07 17:00:01

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: [solved] shutdown, iwconfig, reboot... not found

You don't seem have a /etc/profile, this script sets most of the important global variables, its in the 'filesystem' package so a simple

pacman -Sy filesystem

should hopefully sort you out.

Don't forget that /etc/profile is only read on login so you will want to logout and log back in to get the correct effect.

Offline

#5 2008-05-07 17:49:02

vbtricks
Member
From: Germany
Registered: 2008-03-20
Posts: 37
Website

Re: [solved] shutdown, iwconfig, reboot... not found

Thanks, it's working again.


Stefan

Offline

#6 2008-05-08 14:47:05

vbtricks
Member
From: Germany
Registered: 2008-03-20
Posts: 37
Website

Re: [solved] shutdown, iwconfig, reboot... not found

Salut,

well, the next time I tried to start up ArchLinux it failed in mounting the root partition, so I had to reinstall ArchLinux and I encounter the same problem again.

Is there another way to fix this? Guess it's a missing path in the environment variables?


Thanks in advance,

Stefan

Offline

#7 2008-05-08 16:47:28

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [solved] shutdown, iwconfig, reboot... not found

Hello,

What version of the installer are you using?  2007.8-2?  Try using one of the newer ones, 2008.03 or 2008.04-rc:  ftp://mir1.archlinuxfr.org/archlinux/iso/.

Offline

#8 2008-05-08 17:48:39

vbtricks
Member
From: Germany
Registered: 2008-03-20
Posts: 37
Website

Re: [solved] shutdown, iwconfig, reboot... not found

Salut,

yes, I'm using the 2007.8-2. No chance to get it to work with the current one? Or at least updating my current installation?


Stefan

Last edited by vbtricks (2008-05-08 17:49:01)

Offline

#9 2008-05-08 18:08:45

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: [solved] shutdown, iwconfig, reboot... not found

Well, whats on the installer is just a snapshot of the repos at a given time, once you have done your first 'pacman -Syu' you should be completely up-to-date.  That said, the contents of the repos do change a little over time so if you install with an older iso there may be packages in [core] now that were not there before and you will not have them.  Also, some changes to pacman mean that the version of pacman on the older ftp isos is incompatible with the repos in their current state.

A slightly sledgehammer option would be to run 'pacman -Sy base', however don't forget to look for, and merge if appropriate, any configuration file changes (*.pacnew files), you can find them by running 'updatedb && locate pacnew' as root.

However, If you've already reinstalled once it may be easier to get one of the more recent Core isos and install from there.

Offline

#10 2008-05-10 08:40:53

vbtricks
Member
From: Germany
Registered: 2008-03-20
Posts: 37
Website

Re: [solved] shutdown, iwconfig, reboot... not found

Well, installed the 2008.03 which caused me a lot of nerves as the newly introduced netcfg2 did not work and I had to configure the wireless connection manually. Installed the packages and made the changes I had done to the 2007.08-2 and did not encounter the problem again. So this seems to be solved now.


Thanks,

Stefan

Offline

Board footer

Powered by FluxBB