[SOLVED] arch-chroot: Command not found
Hey,
I installed Windows 8 alongside Archlinux, so I need to restore my bootloader. I've downloaded the recent image of Arch, made it onto a bootable usb pen drive and booted it without any problems. However, I can't seem to find the arch-chroot binaries (and manually chroot-ing into /mnt after mounting everything fails because bash is not found).
Am I doing something wrong or is the wiki out of date?
Last edited by GreenTime (2012-11-01 10:16:56)
You're doing something wrong.
Download latest iso and use dd to write it to usb and verify md5 on iso and usb.
Edit: Normally I roll my own iso with archiso, but to be absolutelly sure on my answer to you, then i've just downloaded latest official iso and tested in a vm, and as expected, arch-chroot is present and working fine.
Last edited by mhertz (2012-11-01 01:49:59)
Similar Messages
-
[SOLVED] 'sh: nano: command not found' on installation in arch-chroot
Hello,
I'm trying to install Arch Linux on a new laptop with a UEFI motherboard, however while following the beginners' guide on the step which requires you to arch-chroot into the /mnt base system to modify the locale.gen file using nano, I receive the following error:
'sh: nano: command not found'
I have mounted the partitions, installed the base system and have tried searching online for a solution but nothing seems to work. Also, nano works while outside of arch-root so I believe it is installed on my system.
I'm almost completely out of ideas on how to fix this, so any help or a point in the right direction would be greatly appreciated.
- Thanks.
Last edited by tyor (2013-01-20 12:01:54)I had the same problem during my first attempts to install Arch. When you use the command as stated:
# pacstrap -i /mnt base base-devel
it seems not all packages were downloaded/installed. Now I know it was my own fault by not selecting the packages properly.
In the beginnersguide right above the pacstrap command is stated:
The -i switch can be omitted if you wish to install every package from the base and base-devel groups without prompting.
So I did, and installed without a problem -
[SOLVED] sudo and "command not found" problems
Ok, the problem I've got is this: sudo has suddenly started acting real strange. It can't find any programs. For example, if i type
sudo echo
It just goes
sudo: echo: command not found
And another problem I've got, is that as a regular user, it can't find programs in /sbin, or other "exotic" places. For example it can't find firefox, because it's not in /usr/bin or /bin, but in /opt/mozilla/bin.
Please, help me!
Last edited by mrpedroxx (2008-06-14 13:23:49)sudo -V outputs this
Sudo version 1.6.9p15
$PATH outputs
bash: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.: No such file or directory
pacman -Q firefox outputs
firefox 2.0.0.7-1
Yeah, maybe I should update it anyway
And /var/log/errors.log does contain stuff about hard disks, but it's just me mounting my iPod and the Windows partition on my hd -
[solved]-bash: open: command not found
Hello, I'm following the tutorial here to set up pure-ftpd https://wiki.archlinux.org/index.php/SFTP
When I get to the step to create a self signed certificate, this happens
[root@(none) private]# open ssl req -x509 -nodes -newkey rsa:1024 -keyout \
> /etc/ssl/private/pure-ftpd.pem \
> -out /etc/ssl/private/pure-ftpd.pem
-bash: open: command not found
Which package do I have to install to get the "open" command?
Last edited by learnerofskills (2012-01-26 06:39:11)skunktrader wrote:take out the space between open and ssl
That worked. I feel really dumb and embarrassed now. Thank you. -
[SOLVED] rc.d: command not found
I am in the process of installing xfce. One of the steps is to run:
rc.d start dbus
However, when I run this it returns:
bash: rc.d: command not found
Am I missing something?
Last edited by george55 (2011-08-11 04:03:16)Inxsible wrote:
rc.d is not a command. its a location under /etc. your command should be
sudo /etc/rc.d/dbus start
$ which rc.d
/sbin/rc.d
$pacman -Qo /sbin/rc.d
/sbin/rc.d is owned by initscripts 2011.07.3-1
$ rc.d --help
usage: rc.d <action> <daemon> [daemon] ...
rc.d list [started|stopped]
rc.d help
<daemon> is the name of a script in /etc/rc.d
<action> can be a start, stop, restart, reload, status, ...
WARNING: initscripts are free to implement or not the above actions.
e.g: rc.d list
rc.d list started
rc.d help
rc.d start sshd gpm
Initscripts update, part 1
Initscripts update, part 2
@george55
If rc.d command doesn't work, check your initscripts version, and check your $PATH. -
[solved] tuxguitar - java: command not found
Hi,
I installed tuxguitar via pacman. When I start it I get this error
/usr/share/TuxGuitar-0.9.1-linux-gtk-x86/tuxguitar: line 27: java: command not found
this is the content of that file, line 27 is the last one
#!/bin/bash
##SCRIPT DIR
DIR_NAME=`dirname "$0"`
DIR_NAME=`cd "$DIR_NAME"; pwd`
cd "${DIR_NAME}"
##JAVA
if [ "${JAVA}" == "" ]; then
if [ "${JAVA_HOME}" != "" ]; then
JAVA=${JAVA_HOME}/bin/java
else
JAVA=java
fi
fi
##CLASSPATH
CLASSPATH=$CLASSPATH:./TuxGuitar.jar:lib/swt.jar:lib/itext-1.4.5.jar:./share/
##LIBRARY_PATH
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:lib/
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/jni
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
##MAINCLASS
MAINCLASS=org.herac.tuxguitar.gui.TuxGuitar
##JVM ARGUMENTS
VM_ARGS="-Xms128m -Xmx128m"
##LAUNCH
${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2"
the dependencies jre and swt are installed...
Last edited by SiD (2007-02-23 13:23:49)If jre got installed as a dep together with tuxguitar you first have to source /etc/profile as Java resides in /opt and the PATH variable needs to be refreshed.
-
I get the above error message and I don't understand why.
Steps to reproduce:
cd /
mkdir -p mydir/bin
cp -r /usr/bin/* /mydir/bin/
observe that this command:
/mydir/bin/bash
successfully gets us into a next shell. exit that shell
but here's the thing:
chroot /mydir /usr/bin/bash
=> chroot: failed to run command ‘/usr/bin/bash’: No such file or directory
why can't usr/bin/bash be found under /mydir when run with chroot?/bin/bash
is a symlink to
/usr/bin/bash
[root /]# stat /usr/bin/bash
File: ‘/usr/bin/bash’
Size: 738008 Blocks: 1456 IO Block: 4096 regular file
Device: ca00h/51712d Inode: 32381 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-02-07 21:10:42.000000000 +0000
Modify: 2013-01-27 00:22:36.000000000 +0000
Change: 2013-02-07 21:10:42.000000000 +0000
Birth: -
[root /]# stat /bin/bash
File: ‘/bin/bash’ -> ‘../usr/bin/bash’
Size: 15 Blocks: 0 IO Block: 4096 symbolic link
Device: ca00h/51712d Inode: 26 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-02-07 21:10:42.000000000 +0000
Modify: 2013-01-27 00:22:36.000000000 +0000
Change: 2013-02-07 21:10:42.000000000 +0000
Birth: - -
[SOLVED] bash: strip: command not found
In which package is the strip command supposed to be? I must have deleted it unadvertedly...
Thanks in advance.
Last edited by iosonofabio (2011-06-15 10:28:23)[Archer][~]
pkgfile strip
core/binutils -
[SOLVED] command not found when chrooted into Debian
I have used Debian previously. I have a debian chroot on a separate partition which sole purpose is apache2 server. I use apache2 in chroot, so everytime I reinstall my main system, all my projects are left there in this system untouched. The chroot was created with Debian's debootstrap. Now when I moved from Debian to Arch, I can't use this chroot. When I chroot into it I can't execute any command there, all I get is command not found, even on things such as ls, rm, mv.
Does it mean that I have to create a chroot for server again, using Arch linux or is there a way to get this Debian working?
Last edited by kox (2015-05-02 20:13:22)I don't think the `arch-chroot` script will work for a Debian system but I could be wrong.
Have you tried mounting /proc, /sys & /dev first and sourcing the shell profiles afterwards?
https://wiki.archlinux.org/index.php/Ch … ing_chroot
This shouldn't make any difference as the chroot fstab should already have entries for these but you never know...
Maybe you should copy /etc/hosts & /proc/mounts from your new Arch system into your Debian chroot.
https://wiki.debian.org/Debootstrap
@WorMzy -- the shell built-ins are not working so I don't think it's a $PATH issue.
Last edited by Head_on_a_Stick (2015-05-02 19:41:44) -
Hi everyone!
This is my boot.log
http://pastebin.com/1gfynhSN
It says"/usr/lib/initscripts/arch-tmpfiles:line 106: install:command not found".This is leading to problems such as dbus and network manager not being started(even manually),no shutdown option,not able to 'open' log files without sudo etc.
I think a possible reason for this is that I had messed up with symlinks.I had issued the command
sudo ln -s /bin/install /usr/bin/install
.Then I had used
cd /bin/
unlink install
Now,I find that /bin/install and /usr/bin/install does not exist.(I have deleted them!) .How can I fix this up?Any help would be appreciated.
Last edited by adwaita45 (2012-04-05 20:41:40)Reinstall coreutils (or manually extract install from the package and put it in /usr/bin).
Last edited by Raynman (2012-04-05 18:14:10) -
Virtualbox problem: modprobed_db: command not found[SOLVED]
I'm running arch in virtualbox.
and when I run # virtualbox, error:
"VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQtCore.so.4: cannot open shared object file: No such file or directory"
wiki write: "Note: You may need to update the kernel modules db in order to avoid 'no such file or directory' error when loading vboxdrv. Run: modprobed_db."
but result:
"# modprobed_db
bash: modprobed_db: command not found
Last edited by lqs (2012-07-27 09:00:44)modprobed_db can be found in the AUR. It collects all modules which have ever been loaded on your system. It's very practical if you compile a custom kernel and only want to include the modules you need.
I think this doesn't solve your problem. Your system is missing the file /usr/lib/libQtCore.so.4 Do you have [testing] enabled? If so, do you also have [community-testing] enabled? I'll need more input to be able to help properly. -
[SOLVED] modprobe: command not found
I am fully up to date as of today.
I had a kernel panic and had to chroot and run:
pacman -Syy
pacman -S pacman
pacman -Syu
pacman -S udev
pacman -S mkinitcpio
sudo mkinitcpio -p linux
to repair.
Now, I can boot fine and when I tried to load a module, I got the command not found error.
I tried to re-install kmod but still nothing.
Any help would be appreciated.
Last edited by frank419 (2012-04-11 18:59:11)[arch ~]$ sudo which modprobe
Password:
which: no modprobe in (/usr/local/bin:/usr/bin:/bin:/usr/games)
[arch ~]$ sudo find / -name modprobe
/sbin/modprobe
/proc/sys/kernel/modprobe
[arch ~]$ su -
Password:
-bash: n#: command not found
-bash: thennfor: command not found
-bash: dontest: command not found
-bash: thenn.: command not found
-bash-4.2# modprobe
-bash: modprobe: command not found
-bash-4.2#
edit:code tags
Last edited by frank419 (2012-04-11 18:29:40) -
[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]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] Unable to build packages from AUR (build: command not found)
I recently hosed the filesystem on my arch install of ~8 months. I reinstalled arch today and didn't have many problems since I had backups of many important config files. Anyways, I still need to get a few programs installed from AUR, but nothing I get from AUR will build.
I download the tarball, extract into a folder in /home/myuser/builds and then go into that folder and run makepkg -s (as always)
It checks the files and extracts/downloads them. Then I get the following error message:
==> Starting build()...
/usr/bin/makepkg: line 741: build: command not found
==> ERROR: Build Failed.
Aborting...
I've run abs and I checked out the abs wiki page, I've also installed base-devel. I am not sure what else I need to do, the error message is not specific enough.
The packages I have been trying to install are ttf-ms-fonts 2.0-7, keepass 2.14-2, and I also tried ttf-vista-fonts 1-3. I am fairly certain that it is not a problem with the PKGBUILD files.
Any ideas? Thanks!
Last edited by fatjake (2011-03-08 01:02:59)cyrus wrote:Have you tried Yaourt?
Nope, haven't tried that, I think mainly because I wanted to learn how to use pacman and how to build using ABS. At this point I think I know how to use pacman/abs, as much as this thread might make it appear that I dont
I'll give it a try, as I frequently install software from AUR. In the past I think I let software from the AUR get outdated, Yaourt (clumsy name) sounds like it would help that a bit. Thanks!
Edit: BTW, I really love Arch. I tried it out on a flash drive about 8 months ago (maybe more), and after about 12 hours I was sold and installed it on the drive that Windows XP previously held. Even considering that I had many problems during the initial install, but they were all problems that caused me to learn and were easy to resolve. Seriously, I have lots of Windows tech experience, but only Arch forced me to learn Linux. I had tried Ubuntu previously but it was such a bore, and the problems tended to be hard to find solutions for. I try to convince my other Linux using friends to try arch, but they see it as too hands-on. I don't see it that way, it is very hands off after initial configuration, and the initial config only takes a week or less on the first try and a day and a half (or so) if you re-install. Having backups of your config files is of course a huge deal, and I am glad I had most of those.
Really, I love Arch Linux, it has taught me so much.
Last edited by fatjake (2011-03-08 04:25:15)
Maybe you are looking for
-
Bluez not working correctly? Configuration error?
I seem to be having a difficult problem in relation to either the bluetooth stack (bluez) or maybe even dbus. I am using the bluetooth on my Lenovo Thinkpad T500 to connect to my Windows 7 PC (which has a bluetooth dongle) so I can transfer files bet
-
hello experts, when i make downpayment request and downpayment invoice it error that not define downpayment request and invoice account.i try to set this accounts but i cant do.becoz before this entry i have made many transaction
-
Making payments from East Africa - Uganda
What is the easiest , no stress way to make payment from East Africa - Uganda. Azure does not accept registration from this market and cant use locally issues credit/debit cards and from my experience bank payments take long and are not correctly re
-
After HDD exchange Satellite A200-1YW began to turn off
Hi! I have a problem with Toshiba Satellite A200-1YW. After changing the hard drive (company) I got my notebook repaired, but a day later he began to turn off the notebook Connected to the power.A When the battery is not off, or When it is plugged in
-
Is there a substitute for the missing Delete key?
I'm pretty unhappy with the new half bluetooth keyboard, probably because I have never been a laptop user. Big is better to me. One of the keys I am really missing is the delete key in the middle panel that deleted from the right rather than the left