You are not logged in.
So I've decided NOT to install the i686 version of Arch over my current 64-bit installation. Instead, I am going to install a 32-bit chroot. I'm using this guide: http://wiki.archlinux.org/index.php/Ins … _in_Arch64 and everything has gone error-free until I have to sync the pacman32. I can try just "pacman32 -Sy", but it says I need to be root to perform that command. Pacman32 -h works as well, but when I go into "sudo pacman32 -h", it says "command not found"... Can anyone help me? I'm running KDE (if it matters), and I've added the correct line to my ~/.bashrc AS WELL as root's ~/.bashrc... and so far nothing has worked. I've even killed the terminal application, and rebooted, with no luck Any help?
Offline
In Konsole type the command :
su -
then the root password and at the # prompt of root :
pacman32 -Sy
...
To use 'sudo' you have to declare what commands are permitted to a user in the sudoers file, and I am not sure if the bash aliases are recognized in that file.
It seems easier to just use the 'su' command instead.
Offline
In Konsole type the command :
su -
then the root password and at the # prompt of root :
pacman32 -Sy
...To use 'sudo' you have to declare what commands are permitted to a user in the sudoers file, and I am not sure if the bash aliases are recognized in that file.
It seems easier to just use the 'su' command instead.
Oh ok, I didn't know that. I thought that all I had to do was add the alias in the bashrc file. I'll try it out and let you know the results! Thanks.
EDIT
I tried the commands you posted above, but I still got
[mike@mike-desktop ~]$ su -
Password:
[root@mike-desktop ~]# pacman32 -Sy
-bash: pacman32: command not found
Last edited by mrinehart93 (2010-10-21 21:20:33)
Offline
So the pacman32 alias was not created for root.
Check that out.
When bash is invoked as a login shell (which is the meaning of the '-' option of su) it reads ~/.bash_profile when logging in.
So do you have that line in it :
. $HOME/.bashrc
to source the .bashrc file, where I presume you created the alias for pacman32 ?
Check also that you have that line :
Architecture = i686
in the pacman.conf of the chroot installation.
For future issues take time to study documentations and to search in the forums, to try to find the answers yourself.
And if you don't find, ask for help, showing what you tried and where you are stumped.
But, especially with Arch Linux, do not expect always hand holding, it's better to try to learn by yourself first. Isn't it?
Offline
I had read documentation on installing the chroot environment, but the document never stated anything about having to edit ~/.bash_profile too... Anyway, thanks for your help. I'm just trying to learn more about Linux since I'm most likely going to go into an information systems major in college in half a year.
I tried to use what you had posted above, but still no luck. My files were already set up like that. Could it be a permissions issue maybe?
Last edited by mrinehart93 (2010-10-23 00:42:17)
Offline
I tried to use what you had posted above, but still no luck. My files were already set up like that. Could it be a permissions issue maybe?
How could I know without infos on your installation ?
Did you check if the pacman32 alias exists when you are logged in as root after the 'su -' command ?
Post the output of these commands just after you logged in as root :
pwd
alias
ls -la $HOME
cat $HOME/.bashrc
cat $HOME/.bash_profile
ls -la /opt/arch32
...
Without data I cannot guess what the problem is with your installation.
Offline
[mike@mike-desktop ~]$ pwd
/home/mike
[mike@mike-desktop ~]$ alias
alias ls='ls --color=auto'
alias pacman32='pacman --root /opt/arch32 --cachedir /opt/arch32/var/cache/pacman/pkg --config
/opt/arch32/pacman.conf'
alias war3='wine ~/.wine/drive_c/"Program Files (x86)"/"Warcraft III"/war3.exe'
[mike@mike-desktop ~]$ ls -la $HOME
total 2180
drwx------ 27 mike users 4096 Oct 23 13:01 .
drwxr-xr-x 3 root root 8 Oct 18 15:53 ..
drwx------ 3 mike users 8 Oct 18 17:26 .adobe
-rw------- 1 mike users 5627 Oct 22 22:47 .bash_history
-rw-r--r-- 1 mike users 16 Apr 6 2010 .bash_profile
-rw-r--r-- 1 mike users 311 Oct 22 21:05 .bashrc
-rw-r--r-- 1 mike users 229 Oct 20 16:24 .bashrc~
drwx------ 4 mike users 24 Oct 21 20:39 .cache
drwxr-xr-x 10 mike users 72 Oct 21 21:09 .config
drwx------ 2 mike users 8 Oct 21 22:19 .cups
drwx------ 3 mike users 8 Oct 18 16:24 .dbus
-rw------- 1 mike users 69 Oct 22 20:58 .directory
-rw------- 1 mike users 26 Oct 18 16:24 .dmrc
drwx------ 2 mike users 1 Oct 21 22:18 Downloads
-rw-r--r-- 1 mike users 5973 Oct 21 19:50 .face.icon
drwxr-xr-x 2 mike users 4096 Oct 21 21:06 .fontconfig
-rw-r--r-- 1 mike users 508 Oct 18 16:57 .fonts.conf
drwx------ 3 mike users 8 Oct 21 20:38 .gconf
drwx------ 2 mike users 4096 Oct 21 20:40 .gconfd
drwxr-xr-x 3 mike users 8 Oct 21 20:37 .gnome2
drwx------ 3 mike users 4096 Oct 23 11:00 .gnupg
drwxr-xr-x 2 mike users 32 Oct 21 20:37 .gstreamer-0.10
drwxr-xr-x 7 mike users 40 Oct 20 20:05 .icons
drwx------ 6 mike users 56 Oct 18 20:48 .kde4
drwxr-xr-x 3 mike users 16 Oct 18 16:24 .local
drwx------ 3 mike users 8 Oct 18 17:26 .macromedia
drwxr-xr-x 3 mike users 8 Oct 18 16:29 .marble
-rw-r--r-- 1 mike users 255835 Oct 21 22:18 Microsoft PowerPoint - Fiscal Policy - Chapter 12 bb [Compatibility Mode].pdf
drwx------ 4 mike users 16 Oct 18 17:17 .mozilla
drwxr-xr-x 13 mike users 88 Sep 19 15:18 Music
drwxr-xr-x 3 mike users 8 Oct 21 21:16 My Games
-rw-r--r-- 1 mike users 13964 Oct 18 21:01 One_Flew_Over_the_Cuckoo_Calendar_Fall_10[1].docx
drwx------ 3 mike users 8 Oct 18 17:07 .pki
drwxr-xr-x 10 mike users 4096 Oct 21 22:03 .PlayOnLinux
-rw------- 1 mike users 336 Oct 18 21:08 .recently-used
-rw------- 1 mike users 1359 Oct 20 20:16 .recently-used.xbel
-rw-r--r-- 1 mike users 1704088 Oct 21 20:16 Review 3.1-3.3 Solutions.pdf
drwx------ 4 mike users 16 Oct 21 22:06 .thumbnails
-rw-r--r-- 1 mike users 51200 Oct 20 20:16 Weeks 7 - 12 MA 09_1 October 4 2010.doc
drwxr-xr-x 4 mike users 4096 Oct 22 21:06 .wine
-rw------- 1 mike users 167 Oct 23 13:01 .Xauthority
drwxr-x--x 2 mike users 4096 Oct 23 13:02 .xine
-rw------- 1 mike users 80547 Oct 23 13:25 .xsession-errors
[mike@mike-desktop ~]$ cat $HOME/.bashrc
# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
alias pacman32='pacman --root /opt/arch32 --cachedir /opt/arch32/var/cache/pacman/pkg --config
/opt/arch32/pacman.conf'
alias war3='wine ~/.wine/drive_c/"Program Files (x86)"/"Warcraft III"/war3.exe'
[mike@mike-desktop ~]$ cat $HOME/.bash_profile
. $HOME/.bashrc
[mike@mike-desktop ~]$ ls -la /opt/arch32
total 32
drwxr-xr-x 3 root root 4096 Oct 20 16:21 .
drwxr-xr-x 3 root root 4096 Oct 20 16:19 ..
-rw-r--r-- 1 root root 12324 Oct 20 16:20 mirrorlist
-rw-r--r-- 1 root root 2697 Oct 22 19:22 pacman.conf
drwxr-xr-x 4 root root 4096 Oct 20 16:21 var
Last edited by mrinehart93 (2010-10-23 18:29:28)
Offline
From my previous post :
Post the output of these commands just after you logged in as root
ie after the 'su -' command.
From the output of 'pwd' and the $ of the prompt, I think you posted the results you get as a user not as root.
So your answer cannot be used to try to understand why the pacman32 alias doesn't work as root.
Offline
Ah, I'm so sorry about that. I need to read more carefully. Here is the output after logging in as root:
[mike@mike-desktop ~]$ su -
Password:
[root@mike-desktop ~]# pwd
/root
[root@mike-desktop ~]# alias
[root@mike-desktop ~]# ls -la $HOME
total 28
drwxr-x--- 4 root root 4096 Oct 20 16:31 .
drwxr-xr-x 21 root root 4096 Oct 18 18:27 ..
-rw------- 1 root root 1461 Oct 23 14:55 .bash_history
-rw-r--r-- 1 root root 120 Oct 22 19:29 .bashrc
drwx------ 3 root root 4096 Oct 18 23:10 .dbus
drwx------ 3 root root 4096 Oct 18 23:10 .kde4
-rw------- 1 root root 0 Oct 18 16:05 .Xauthority
-rw-r--r-- 1 root root 1623 Oct 18 16:02 xorg.conf.new
[root@mike-desktop ~]# cat $HOME/.bashrc
alias pacman32='pacman --root /opt/arch32 --cachedir /opt/arch32/var/cache/pacman/pkg --config /opt/arch32/pacman.conf'
[root@mike-desktop ~]# cat $HOME/.bash_profile
cat: /root/.bash_profile: No such file or directory
[root@mike-desktop ~]# ls -la /opt/arch32
total 32
drwxr-xr-x 3 root root 4096 Oct 20 16:21 .
drwxr-xr-x 3 root root 4096 Oct 20 16:19 ..
-rw-r--r-- 1 root root 12324 Oct 20 16:20 mirrorlist
-rw-r--r-- 1 root root 2697 Oct 22 19:22 pacman.conf
drwxr-xr-x 4 root root 4096 Oct 20 16:21 var
Last edited by mrinehart93 (2010-10-24 04:11:43)
Offline
So you now have your answer to :
[mike@mike-desktop ~]$ su -
Password:
[root@mike-desktop ~]# pacman32 -Sy
-bash: pacman32: command not found
I will let you find yourself what to do now.
Post again to tell the result, after you found the solution.
Offline
I'm pretty sure it's safe to assume it's something dealing with the
[root@mike-desktop ~]# cat $HOME/.bash_profile
cat: /root/.bash_profile: No such file or directory
So I'm going to copy the user version of .bash_profile and put it into root's... that should work?
I did what I said above, and success! Pacman32 is now recognized as a command
Thank you so much for your help berbae, I appreciate it
Last edited by mrinehart93 (2010-10-24 16:08:10)
Offline