You are not logged in.
hello, thanks for this,
when I run "sudo arch32" I'm getting
:: Synchronizing Files [DONE]
non-network local connections being added to access control list
chroot: failed to run command `/bin/bash': No such file or directory
Whats is wrong?... also when I run "sudo pacman32 -S firefox", for example:
:: Synchronizing Files [DONE]
non-network local connections being added to access control list
error: failed to prepare transaction (package architecture is not valid)
:: package firefox-3.6.10-1-x86_64 does not have a valid architecture
Any help?
thanks!
Offline
@faco
Did you finish the initialization?
*) install arch32-light
*) run arch32initialize
*) follow instructions (e.g. check config, then run pacman32 command)
The output should make it clear what you need to do. It usually only takes 3 steps.
@everyone
I've created a utilities package for arch32-light:
http://xyne.archlinux.ca/projects/arch32-light-utils/
Contributions and suggestions are welcome.
Last edited by Xyne (2010-09-22 14:05:54)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Contributions and suggestions are welcome.
Bauerbill32 does not work for me and I had to manually build & tweak makepkg32.conf in order to build stuff from AUR (btw, I want to setup dev environment for D).
Offline
@gour
I've added notes to the arch32-light-utils pages about using an i686 makepkg.conf along with some suggestions.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I install arch32-light with abs and corrected install file, where i replaced all /opt on /home, because i not have more place in / (/home on the separate partition). Also, i edit /usr/bin/arch32,arch32initialize,arch32run /etc/rc.d/arch32d... Which still more file i need edit than arch32-light start?? (Error: not find /opt(!!!)/arch32/etc/pacman32.conf). Big Tnx for this great package, Xyne. Oh.. my f.. hard english...
Offline
@koshon
You probably missed one of the paths in /usr/bin/pacman32.
I have updated arch32-light. You can now configure the chroot path in /etc/arch32d.conf (ARCH32ROOT). I haven't tested it thoroughly yet but so far it seems to work.
I have also removed "arch32run" for now. The schroot settings included in the package do not match those of arch32-light and it seems that it is a bad idea to use schroot with those settings.
If someone who is familiar with schroot would like to help me provide a new "arch32run" script with the necessary compatibility settings then I will include it again. Otherwise it's safer for users who need to to configure it themselves.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
missing dependency: xorg-xhost
Offline
Xyne, thx! I edit /usr/bin/pacman32 and then i have another problem -
W: line 78 [Arch32]: Deprecated key 'priority' used
I: This option will be removed in the future; please update your configuration
E: 10mount: error Directory '/opt/arch32' does not exist
But after editing /etc/schroot/schroot.conf have only
W: line 17 [Arch32]: Deprecated key 'priority' used
I: This option will be removed in the future; please update your configuration
(maybe W:, because i start arch32run more then onсe without stopping). In spite of this, then everything works like normal.
Maybe remove 'arch32run' and other changes is radical? Maybe leave as it was, but write in any file, eg readme, at the time there is no solution?
Last edited by koshon (2010-12-12 12:15:26)
Offline
Also convenient to create color schemes in .bashrc for root/user in /{chroot directory} to distinguish environment. But this not easy realize except skel file and still probably need a script.
Offline
@koshon
Are you using the latest version from the repo on my site? You do not need to edit any files except /etc/arch32d.conf now to change the root path.
I can't keep using arch32run because the schroot settings are not inherited from the arch32-light configuration files. This could lead to incorrect mounting and data loss. Again, if someone wants to provide a solution then I will consider it but until then users can set up schroot themselves.
@koshon
Thanks, I've added xorg-xhost to the optional dependencies and changed arch32.conf to check if it exists before trying to run the command.
If you have a concrete suggestion of how to indicate that the user is in the chroot then I will also consider that. As you can see above, I asked about this in the original post but so far I have not received any satisfying replies.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Xyne, no, i not use last version. I finished previous version and all work fine. Oh.. and maybe at once too setup pacman in chroot environment? To be updated and the main environment from and from chroot.
Offline
Thanks for this package.
I want to use this script to let my system automatic build 64 bit & 32 bit binary.
I've modify the /opt/arch32/etc/pacman.conf 's Architecture=i686.
I found I can not install program in the arch32 environment.
# pacman -S cmake
resolving dependencies...
looking for inter-conflicts...
Targets (3): libxml2-2.7.8-1 shared-mime-info-0.91-1 cmake-2.8.6-1
Total Download Size: 5.37 MB
Total Installed Size: 39.37 MB
Proceed with installation? [Y/n]
:: Retrieving packages from extra...
warning: failed to retrieve some files from extra
error: failed to commit transaction (no servers configured for repository)
Errors occurred, no packages were upgraded.
But, "pacman32 -S cmake" outside the arch32 box workable.
Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages
Offline
@dlin
The error message indicates that it was unable to retrieve the packages. Check that 32-bit chroot pacman is using a valid mirrorlist.
It could also have been a transient server error.
I am able to install cmake within the 32-bit chroot on my system so I do no think this is an arch32-light error.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks, I found the problem is caused by mirrorlist wrong. So, I continue with my other problems:
1. Is there any method to let me set different prompt or different hostname on the arch32?
eg.
in outside host, I could edit /etc/rc.conf to set hostname
But, I don't know how to modify the hostname inside arch32
2. How to 'hg clone ssh://host64/myprj' ? I've seen the following message.
$ sudo arch32 /etc 11:33:10
Password:
:: Synchronizing Files [DONE]
non-network local connections being added to access control list <----
#
3. By the way, is there any shell tip to detect I'm in chroot environment? (uname -m got wrong answer)
Last edited by dlin (2011-12-07 04:49:49)
Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages
Offline
@dlin
1 & 3:There is a discussion about changing the prompt (i.e. the PS1 variable) in the chroot at the top of this thread. So far I have not found a reliable way to do it.
2: If you just want to remove the message, you can try redirecting the output of "xhost +local" to /dev/null in /etc/arch32.conf. If you meant that there is an error that prevents you from running hg, you will need to explain the problem more clearly.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
1. About the PS1 problem.
I can use [ -f /etc/pacman32.conf ] to detect it.
2. About my clone source from outside host :
I want to clone the source code from host machine(x86_64).
But, because the hostname is the same, I can't do such thing by 'hg clone ssh://host/prj'
The temp solution is clone the source in outside of arch32.
3. Could you edit the first post in this thread, the following page is 404 not found.
http://xyne.archlinux.ca/projects/arch32-light-utils/
Last edited by dlin (2011-12-09 04:54:58)
Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages
Offline
1. That's a relatively nice and simple solution. I would still prefer something where the chroot prompt changes, not the host system. What I mean is that if, for example, you remove the arch32 system, then suddenly your host prompt will look like the chroot.
2. I am not familiar with hg so I hadn't understood the problem. If it's just a matter of the host name then maybe you can just change the host name in arch32. I don't know what else that might affect though. You would have to check.
3. Done.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks, Xyne. This totally saved a ton of time.
Offline
I've installed arch32-light to run skype (damn, I don't like it, but I needed it in my job) in my 64bits system. I've installed "skype-staticqt" and most of "base" packages but it does not work. I tried to run it from a terminal with root and my personal user and I just get "Aborted". I also tried to run the static version downloaded from their website and it still does not work. Finally, I tried to run it from an old partition with a Debian Sid 32bits and it works. Do you know what can be happening?
[I do not know if this is a good place to post this. If not, please let me know and remove the post.]
Entia non sunt multiplicanda praeter necessitatem
Offline
I don't know. Maybe it's expecting some system files that aren't mounted in the chroot, but I don't know what Skype needs.
It might be easier to just use the skype package from the multilib repo.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Hi Xyne, I haven't used chroots in a while since [multilib] came out but now I need one for testing some software and I realize /etc/rc.d/arch32d doesn't actually unmount anything. The problem is that line 1 (picked out from $_mounted) doesn't contain line 2 (which is what its being tested with, $_mountline). Any suggestions? For now I just remove the test, but of course that's a bad idea (tm).
Line 1 - ::proc on /home/arch32/proc type proc (rw,nosuid,nodev,noexec,relatime)::
Line 2 - ::/proc on /home/arch32/proc type none (rw,bind)::
EDIT: Also, somehow /proc/bus/usb doesn't exist on my system, maybe things have moved around?
EDIT2: replaced the checks with a call to mountpoint as below seems to work. The first is for mount_chroot() and the second for unmount_chroot()
mountpoint -q $_mountpoint
if [[ $?] ]]; then
mount --bind "$_dir" "$_mountpoint" || stat_die
fi
mountpoint -q $_mountpoint
if [[ !$? ]]; then
umount "$_mountpoint" || stat_die
fi
Last edited by ngoonee (2012-02-10 04:44:54)
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
@ngoonee
I rewrote several functions in the daemon and made some other changes to the package a few weeks ago that should solve this, but I haven't released the new package yet because my release scripts are currently broken. I'll try to get them working in the next few days and then push the new version. Sorry for the delay.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
@ngoonee
I rewrote several functions in the daemon and made some other changes to the package a few weeks ago that should solve this, but I haven't released the new package yet because my release scripts are currently broken. I'll try to get them working in the next few days and then push the new version. Sorry for the delay.
No problem, figured you'd have already gotten it in hand . Thanks for the package!
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
The new release fixes the issues with unmounting I was experiencing, thanks Xyne! However the default ARCH32MOUNTS still has /proc/bus/usb which doesn't exist on my system for some reason. No big deal, just uncommented it.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
I don't really know what the best default mountpoints are. The current ones were taken from the wiki article and I'm not opposed to changing them.
I could also let the daemon continue when the mountpoint doesn't exist, but that might cause problems if the user bases the order on certain expectations.
Thoughts?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline