[SOLVED] "ip: command not found" after power failure
Hello,
After a power failure my Arch box has no network connection available. An 'ip addr' command showed me the outrageous error message :
bash: ip: command not found
How could this ever happen ? How do I recover from such an error ?
Last edited by singleton (2014-12-19 17:34:58)
I wasn't doing any system maintenance when the power failed, just some regular browsing.
Here's the output of each command :
pacman -Qk
https://bpaste.net/show/e06fb962c42c
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
ls -l /usr/bin/ip
ls: cannot access /usr/bin/ip: No such file or directory
pacman -Qi iproute2
error: package 'iproute2' was not found
I 'm suspecting I will need to use a fresh installation CD to get over this. Any guidance will be greatly appreciated though!
Similar Messages
-
[Solved] KDM will not open after power failure
Had a power failure and upon reboot, I get the following error:
cannot open theme file
/usr/share/apps/kdm/themes/archlinux-simplyblack
I cd'd to the above path but only 'circles' and 'oxygen' are in the themes folder.
I even ran pacman -S kde to reinstall all the kde packages, but no luck.
Any ideas on a fix?
Thanks!
Last edited by SkinnyJ (2009-05-05 02:15:53)glad it works now, if you're using ext4 i hear power failures can corrupt some files; otherwise, i dunno.
anyway, please mark as [solved]. and thanks for the bit about my enemies . -
[SOLVED] startxfce4 command not found?
Greetings,
today I finally got some courage and decided to give archlinux a try on my laptop since I grew tired of ubuntu. Instalation was going fine until I decided to install xfce4. Like the wiki says, I took care of installing all of the necessary X packages, and even tried it successfully with the basic twm interface thing. However, after installing the xfce4 package through pacman, when I try to run execute startxfce4 it just gives me a "command not found" error. I've went to /usr/bin and in fact startxfce4 is not there. Any ideas what might be wrong?
EDIT: Reason for all the problems was that I forgot to actually update the system running the "pacman -Syu". I updated on the second install and when I executed xfce4 all the conflicts dissapeared.
Last edited by apokaliptik (2012-01-09 21:34:02)https://wiki.archlinux.org/index.php/Xfce4#Installation
wiki wrote:Pacman will ask you to select the packages to install, but you probably want to get them all by simply pressing Enter.
[karol@black ~]$ pacman -S xfce4
:: There are 16 members in group xfce4:
:: Repository extra
1) exo 2) garcon 3) gtk-xfce-engine 4) terminal 5) thunar 6) tumbler
7) xfce-utils 8) xfce4-appfinder 9) xfce4-mixer 10) xfce4-panel
11) xfce4-session 12) xfce4-settings 13) xfconf 14) xfdesktop 15) xfwm4
16) xfwm4-themes
Enter a selection (default=all):
xfce-utils is the 7th member of xfce4 group; it should be downloaded and installed. Don't know why it wasn't installed in your case.
Please remember to mark the thread as solved as per our forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-) -
Receiving command not found after modifying .bash_profile in OEL 5.6 64 bits
Hi guys,
After the installation of Oracle Database 11gR2 on OEL 5.6, I added the following entries into the .bash_profile of the oracle user:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=ol5-112.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
# I added my own values relative to my environment.
But now, when I tried to login as the oracle user on my terminal, I received the following error:
command not found
command not found
So I deleted all the entries I added to the .bash_profile file. But it didn't solve the problem. When I log in as oracle, I still receive the error:
command not found
command not found
This is really weird. How can I do to solve this error?
Thanks in advance
Clamarion.The following command might show you where the problem is:
bash -l -x
See "man bash" for details. -
(OEL 4.7) -bash: sqlplus: command not found after install of 10g R2
Hi all
I'm new to Linux and I would like your help and directions on a few things:
After 2 days of battle with RPM's (i386 vs x86_64) i was finally able to install 10g R2 on OEL 4.7 x86_64 system without any errors.
please check if all these settings are correct and help me how to start sqlplus? or create a database with dbca
I followed all the directions in Doc ID: 339510.1.
During installation i choose this path as the ORACLE_HOME
/u01/app/oracle/product/10.2.0/
I did not however installed the default database.
I then ran the two scripts at the end of the installation as root.
Here are my settings:
oracle bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
:q
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=/product/10.2.0/db_1;
export ORACLE_HOME
export PATH=$ORACLE_HOME/bin:$PATH
here is my oracle env result
[oracle@nycoralp01 /]$ env | grep -i ORACLE
OLDPWD=/home/oracle/oraInventory
USER=oracle
ORACLE_BASE=/u01/app/oracle
MAIL=/var/spool/mail/oracle
PATH=/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
HOME=/home/oracle
LOGNAME=oracle
ORACLE_HOME=/product/10.2.0/db_1
here is my echo $ORACLE_HOME result:
[oracle@nycoralp01 /]$ echo $ORACLE_HOME
/product/10.2.0/db_1
Can someone please tell me what did i miss or did not set?
When i try to run sqlplus i get this error
[oracle@nycoralp01 /]$ sqlplus
-bash: sqlplus: command not found
Any help appreciatedI change it in my bash_profile
$ vi ~oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
:q
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
export ORACLE_HOME
export PATH=$ORACLE_HOME/bin:$PATH
and i'm still getting the same error
-bash: sqlplus: command not found
Is there anything else i'm missing? do i have to restart anything? -
[Solved] ifconfig command not found?
I'm installing arch on Lenovo Y460 whose eth controller is broadcom adapter.
When installing basic system, I tried following
modprobe -r tg3
modprobe broadcom
modprobe tg3
/etc/rc.d/network restart
then the install program recognize eth0 fine.
After basic system installed, I did nearly the same thing, then tried
ifconfig eth0 up
But surprisingly bash complaint that "ifconfig command not found". Is there anything bad I have done? TIA.
Last edited by neuront (2011-07-18 06:37:04)PIMPinator wrote:Oh man, just did a fresh install on a laptop and had no idea what was going on, and didn't see anything in the wiki. I don't see how ip is used though, i can't even see how to list interfaces.
It isn't that hard, you just need to use your brain a bit. just typing `ip` shows the list of available subcommands. For interfaces, e.g. links:
$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether f2:3c:91:96:cb:ca brd ff:ff:ff:ff:ff:ff
7: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
link/none
And to show addresses assigned to those links:
$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether f2:3c:91:96:cb:ca brd ff:ff:ff:ff:ff:ff
inet 173.255.192.10/24 brd 173.255.192.255 scope global eth0
inet 192.168.142.70/17 brd 192.168.255.255 scope global eth0
inet6 2600:3c00::f03c:91ff:fe96:cbca/64 scope global dynamic
valid_lft 43051sec preferred_lft 43051sec
inet6 fe80::f03c:91ff:fe96:cbca/64 scope link
valid_lft forever preferred_lft forever
7: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
link/none
inet 10.8.0.1 peer 10.8.0.2/32 scope global tun0 -
[SOLVED]Shutdown Command Not Found?
Don't worry. I'm not about to ask why updating my system didn't work and how I can fix it. This is about something that happened after I updated successfully. So, like I said, I ran through the commands just fine. Updating works. Then, I go to reboot running the command: sudo reboot. I get the response: sudo: reboot: command not found. Ok fine. So I run sudo shutdown -r now. Then I get this: sudo: shutdown: command not found. Same with shutdown -h now. I don't see why the update would do this but it's the only thing I can think of since it's the only thing I've done since shutdown stopped working.
EDIT: I've looked through /bin /sbin /usr/bin /usr/sbin but the shutdown command is not there. So that's obviously the problem. I'm still not sure what to do about it. I figure it has something to do with the recent update and that /bin /sbin and /usr/sbin are now all symlinked.
Last edited by xworld (2013-06-05 00:10:38)The Great Arch Wiki has the answer: https://wiki.archlinux.org/index.php/FA … is_X_in.3F
-
[SOLVED]mkinitcpio command not found!??
Hello all,
I receive the following when trying to rebuild the stock kernel:
[taylor-unix@Legion Desktop]$ sudo mkinitcpio -p kernel26
sudo: mkinitcpio: command not found
[taylor-unix@Legion Desktop]$
The same error occurs even after the re-installation of 'mkinitcpio'.
I've had the same problem with 'hwdetect', regardless of whether I've reinstalled it.
I seem to have commands that do not work on this system, like 'shutdown' for example.. 'shutdown: command not found'. Perhaps I've missed installing a crucial package?
I need help..
My sincerest thanks in advance.
Last edited by edward.taylor89 (2010-11-10 17:39:46)Here as follows:
mkinitcpio /etc/
mkinitcpio /etc/mkinitcpio.conf
mkinitcpio /etc/mkinitcpio.d/
mkinitcpio /etc/mkinitcpio.d/example.preset
mkinitcpio /lib/
mkinitcpio /lib/initcpio/
mkinitcpio /lib/initcpio/functions
mkinitcpio /lib/initcpio/hooks/
mkinitcpio /lib/initcpio/hooks/btrfs
mkinitcpio /lib/initcpio/hooks/consolefont
mkinitcpio /lib/initcpio/hooks/dmesg
mkinitcpio /lib/initcpio/hooks/keymap
mkinitcpio /lib/initcpio/hooks/memdisk
mkinitcpio /lib/initcpio/hooks/net
mkinitcpio /lib/initcpio/hooks/resume
mkinitcpio /lib/initcpio/hooks/sleep
mkinitcpio /lib/initcpio/hooks/udev
mkinitcpio /lib/initcpio/init
mkinitcpio /lib/initcpio/init_functions
mkinitcpio /lib/initcpio/install/
mkinitcpio /lib/initcpio/install/autodetect
mkinitcpio /lib/initcpio/install/base
mkinitcpio /lib/initcpio/install/btrfs
mkinitcpio /lib/initcpio/install/consolefont
mkinitcpio /lib/initcpio/install/dmesg
mkinitcpio /lib/initcpio/install/dsdt
mkinitcpio /lib/initcpio/install/filesystems
mkinitcpio /lib/initcpio/install/fw
mkinitcpio /lib/initcpio/install/ide
mkinitcpio /lib/initcpio/install/keymap
mkinitcpio /lib/initcpio/install/memdisk
mkinitcpio /lib/initcpio/install/net
mkinitcpio /lib/initcpio/install/pata
mkinitcpio /lib/initcpio/install/pcmcia
mkinitcpio /lib/initcpio/install/resume
mkinitcpio /lib/initcpio/install/sata
mkinitcpio /lib/initcpio/install/scsi
mkinitcpio /lib/initcpio/install/sleep
mkinitcpio /lib/initcpio/install/udev
mkinitcpio /lib/initcpio/install/usb
mkinitcpio /lib/initcpio/install/usbinput
mkinitcpio /lib/initcpio/udev/
mkinitcpio /lib/initcpio/udev/01-memdisk.rules
mkinitcpio /lib/initcpio/udev/load-modules.sh
mkinitcpio /sbin/
mkinitcpio /sbin/mkinitcpio
mkinitcpio /usr/
mkinitcpio /usr/share/
mkinitcpio /usr/share/man/
mkinitcpio /usr/share/man/man5/
mkinitcpio /usr/share/man/man5/mkinitcpio.5.gz -
[solved] qdbus: command not found = Netbeans can't connect to KWallet
I had a problem with Netbeans using its fallback keyring instead of KWallet.
My research showed that this happened because Netbeans wasn't able to use qdbus
exception thrown while invoking the command "[qdbus, org.kde.kwalletd, /modules/kwalletd, org.kde.KWallet.isEnabled]"
I tried to run qdbus with
qdbus org.kde.kwin /KWin supportInformation
Same outcome; qdbus: command not found.
Searching for qdbus, I found it in /usr/lib/qt4/bin which obviously isn't part of $PATH.
I "solved" the issue by creating a softlink in /usr/bin/
cd /usr/bin && sudo ln -s /usr/lib/qt4/bin/qdbus qdbus
It works, both the KWin command as well as Netbean's KWallet integration, but is that how it should be done?
Haven't I rather a package missing, like qt5 or something?
Or is my standard "throw softlinks at the problem"-procedure alright here?
Last edited by Caldazar (2014-01-25 20:55:02)Thanks! That's better although it doesn't work out of the box either.
qtchooser apparently sends the applications to '/usr/lib/qt/bin/qdbus' which doesn't exist, Arch uses /usr/lib/qt4' instead
qdbus: could not exec '/usr/lib/qt/bin/qdbus': No such file or directory
So I had to link those too.
sudo ln -s /usr/lib/qt4 /usr/lib/qt
I don't know whether that's a problem with qtchooser or rather with some of my environment variables being wrong.
But anyways, linking the directories 'qt' to 'qt4' makes a whole lot more sense to me than micromanaging the paths of single binaries or libraries.
P.S. @ChemBro
Yes, using qdbus-qt4 seems to work with commands I have control over but telling applications like Netbeans to use that is a different beast, at least from a user-perspective.
Maybe the packagers can do something about that, but I don't know.
Last edited by Caldazar (2014-01-21 15:03:39) -
[solved] hostname command not found
Some months ago i've got this problem:
startx: line 127 hostname command not found
that i solved with
pacman -S net-tools
Today the problem is here again O.o
I've reinstalled net-tools and coreutils but nothing
Last edited by polslinux (2011-08-26 11:31:26)http://mailman.archlinux.org/pipermail/ … 21397.html
Edit: inetutils from [testing] http://www.archlinux.org/packages/testi … inetutils/ have the hostname binary and it was removed from the [testing] net-tools http://www.archlinux.org/packages/testi … net-tools/
Packages in [core] still work the old way: net-tools provides hostname.
Last edited by karol (2011-08-26 10:29:33) -
Lircd: command not found after install of lirc
Hi!
I've had some problems with lirc and had to uninstall it from my system. I also deleted
the files named lirc* after I uninstalled. I then cleaned the pacman cache and reinstalled
lirc.
I did this in a hope of getting a complete reinstall of lirc. The installation went fine, but my
system doesn't seem to see that lirc has been reinstalled. When I do #lircd (which used to
start lircd) I get #bash: lircd: command not found
I've tried to reinstall several more times by #pacman -S lirc and it runs through the installation.
I still get #bash: lircd: command not found though.
What am I doing wrong? Why won't lirc go back to working like it should do after reinstallation??azleifel wrote:
The lircd daemon expects to be run at startup and needs root permissions because it will create device nodes in /dev. Try "man lircd" for more information.
To run lircd at startup, add it to the DAEMONS line in /etc/rc.conf. If needed, add any necessary kernel module to the MODULES line of /etc/rc.conf while you're there. As an example, I have MODULES=(lirc-mceusb2) for my trusty Microsoft MCE remote control and DAEMONS=(@lircd).
That did it!! Thanks.
I spent hours and hours yesterday trying to figure out how to autostart lircd. Now everything works.
When I try #irw every button I push is mapped with the right name and function. But in Freevo things are not that smooth. It seems
freevo only understands a few of the buttons.
I've seen that in myth there's a config file (or something) that seems to map out the remote functions in relation to myth itself. Do I
need a similar config file for freevo?
EDIT: nwm... I found out that yes, I do.
Last edited by Perre (2008-04-13 10:59:09) -
[SOLVED]pacstrab: command not found
Hey,
I'm trying to install Arch together with Windows 8.1... No problems with UEFI, since I already had Arch installed one time but had to remove it and my notebook doesn't came with preinstalled windows.
I made an ext4 partition, mounted root, established an internet connection and so on. But every time I try to run "pacstrap /mnt base base-devel" or just only "pacstrab" I receive the message:
command not found: pacstrab
What is this!? I don't know how to solve this problem... This is just weird because that is not my first Arch installation. Checksum of my .iso is correct.
Greets
Last edited by Arche (2013-11-03 09:17:53)'pacstrab' only was just a test in sheer desperation.
OH MY GOD. I can't be so dumb... Will test it if I really wrote pacstrab in my installtion, too.
EDIT: Please delete this... I'm so disgusting... Trying everything for a hour and I'm just too dumb to type...
Last edited by Arche (2013-11-03 09:12:34) -
[solved] gconfpkg: command not found
From my pacman output:
(11/14) upgrading fusion-icon
==> Updating icon-cache.....
/tmp/alpm_Napi2c/.INSTALL: line 32: gconfpkg: command not found
error: command failed to execute correctly
I reinstalled gconf and re-updated fusion-icon, the installation completed succesfully.
This has happened before, should I be worried?
p.s. these errors are not logged in pacman.log!
Last edited by stefanwilkens (2009-12-03 13:35:44)problem solved, the location of gconfpkg wasn't in PATH
locate gconfpkg
/usr/sbin/gconfpkg
I added /usr/sbin to the PATH definition in /etc/profile. Rebooted and all was working as it should -
Bash: command not found after piping
Hi,
I'm trying something quite commonly found in an Unix environment, namely piping the output of one command into the input of a subsequent one, eg.
bash$ ps ax | grep -i bash
But unfortunately I'm receiving--and now comes the most curious part--most of the times (not always!!) an error message
bash: grep: command not found
When calling grep directly
bash$ grep
the resulting output is
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
"which"-ing the commands
bash$ which bash ps grep
results in
/bin/bash
/bin/ps
/usr/bin/grep
Cheers,
MMHeinGood, you tried a different shell. sh and bash are essentially the same executable on Mac OS X.
Did you try a new user account? What were those results?
Have you tried installing your own bash? Either build from sources, or use something like MacPorts.org to install one already configured for Mac OS X.
You also have ksh and zsh if they happen to rock your boat (see /etc/shells for a list of installed shells).
I think both Linc an dI agree that we have never seen this situation before either, which is why we suspect something has become corrupt. The "Nuke and Pave" approach tends to eliminate that possibility. But since you have lots of Unix experience (even though you missed a few Unix flavors ), and want to find the root cause, then you need to start doing tests that eliminate components.
The shells on my Mac OS X 10.7.2 Lion system have the following chksum's
cksum /bin/*sh
188949626 1371648 /bin/bash
1672788767 772992 /bin/csh
4164734636 2180736 /bin/ksh
1711289041 1371712 /bin/sh
1672788767 772992 /bin/tcsh
2366092939 1103984 /bin/zsh
I would expect yours to be identical. But that does not take into account any libraries used. And if you have the same values, then you need to look at something else (again, a new account can go a long way to eliminating things in your environment, or pointing to a system component). -
[SOLVED] lirc: command not found
Hello everyone,
I have an old MCE remote that i'd like to make use of. I've been trying to follow the archwiki, everything is good I installed LIRC and LIRC-utils, loaded lirc_mceusb, except for the part where I'm supposed to execute lirc for some reason I get an invalid command error even thought its installed. Am I missing something here?
archuser@archws ~ % lirc <12:32>
zsh: correct 'lirc' to 'lircd' [nyae]? n
zsh: command not found: lirc
Last edited by aluser (2011-02-26 04:22:25)The mceusb module ships with the kernel now, so the lirc package is no longer necessary. Simple initial setup:
Install lirc-utils
Copy /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb to /etc/lirc/lircd.conf
Edit /etc/rc.conf and add mceusb to the MODULES array and lircd to the DAEMONS array
Edit /etc/rc.local and add
/usr/bin/ir-keytable -p lirc
Create ~/.lircrc and edit as required
Reboot
If double keystrokes are the problem now and you have a dib0700-based dvb card installed then create /etc/modprobe.d/dvb-usb.conf containing
options dvb_usb disable_rc_polling=1
I've got a model 1039 with the colour buttons and it works fine:
$ irw
000000037ff07be8 00 Record mceusb
000000037ff07be8 01 Record mceusb
000000037ff07be9 00 Play mceusb
000000037ff07be9 01 Play mceusb
000000037ff07beb 00 Forward mceusb
000000037ff07beb 01 Forward mceusb
000000037ff07beb 02 Forward mceusb
000000037ff07bdd 00 OK mceusb
000000037ff07bdd 01 OK mceusb
000000037ff07bdd 02 OK mceusb
000000037ff07be0 00 Down mceusb
000000037ff07be0 01 Down mceusb
Edit: Missed a step.
Edit: Missed a hardware-specific step.
Last edited by azleifel (2011-02-15 21:02:56)
Maybe you are looking for
-
BDC(va02) page down condition
hi all! i done bdc for va02. In this when i press page down (=p+)only 9 line item will display and again press page down next 9 line item will be shown .(in my pgm 11 line items showing) Is it possible to give a spacific conditio for page down ? ho
-
Rendered Nodes in JTree, Look&Feel Problem
Hallo, I make a small JTree and write my own TreeNodeRenderer which renders in each case a simple JPanel with Titled-Border an 2 JLabels. If I adjust Metal Look&Feel the rendered Nodes are displayed correctly. (The JPanels size is about 300x200 pixel
-
Hi, Im making a site for someone and they have just asked me if it is possible for me to also make a cd for them with the site on which autoruns, so he can send out the cd to various companies. I have never done anything like this before and was wond
-
Problem: Fields get invisible on pressing a button.
Hello , Using ECC 6 Designer 6. Adobe 8.1 Form trigerred through portal. I have a check box which makes a text field and button visible on checking it. On pressing the button i populate data in the fields of the form using user command method in the
-
Why do my applications keep crashing on my iPad 2
My applications keep crashing how do I fix this