Difference between revisions of "Talk:Install from existing Linux"

From ArchWiki
Jump to: navigation, search
(Installing the 'base' group of packages fails [FIXED]: Remove finished topic.)
Line 37: Line 37:
 
I had the same problem, but I found another solution: computerA has a working arch linux install, computerB has the empty partition. Use sshfs to mount computerB:/newarch to computerA:/newarch, and run pacman from computerA (with -r of course).
 
I had the same problem, but I found another solution: computerA has a working arch linux install, computerB has the empty partition. Use sshfs to mount computerB:/newarch to computerA:/newarch, and run pacman from computerA (with -r of course).
 
--[[User:jpic|jpic]] 09:53 UTC, 04 April 2012 (EDT)
 
--[[User:jpic|jpic]] 09:53 UTC, 04 April 2012 (EDT)
 
== Installing the 'base' group of packages fails [FIXED] ==
 
The command to install the 'base' group of packages :
 
<pre>
 
pacman  -Su --cachedir ${new_arch}/var/cache/pacman/pkg -S base -r ${new_arch}
 
</pre>
 
 
fails with the following error message :
 
<pre>
 
error: only one operation may be used at a time
 
</pre>
 
=== Fix ===
 
This is because there is an extra 'S' (capital S) in the command. The following command works :
 
 
 
<pre>
 
pacman  -Su --cachedir ${new_arch}/var/cache/pacman/pkg base -r ${new_arch}
 
</pre>
 
 
Note the missing second -S in the above command.
 

Revision as of 07:47, 23 June 2012

doesn't work on ubuntu live 11.04

Followed the instructions to install pacman on the host (live CD).

Here is the history:

    1  alias wget='wget --trust-server-names'
    2  ARCH=x86_64
    3  base_chroot=/tmp
    4  mkdir ${base_chroot}/archlinux
    5  cd ${base_chroot}/archlinux
    6  wget http://www.archlinux.org/packages/core/$ARCH/pacman/download/
    7  wget http://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/
    8  for software_name in libfetch libarchive openssl xz expat ; do wget http://www.archlinux.org/packages/core/$ARCH/${software_name}/download/ ; done
    9  for f in *.tar.gz ; do tar xzvf $f ; done
   10  export PATH=${base_chroot}/archlinux/usr/bin:$PATH
   11  export LD_LIBRARY_PATH=${base_chroot}/archlinux/usr/lib:$LD_LIBRARY_PATH
   12  alias pacman="pacman --config ${base_chroot}/archlinux/etc/pacman.conf"
   13  cd /
   14  for f in /tmp/archlinux/pacman-*pkg.tar.gz ; do   tar xzf $f; done

Problem is pacman doesn't run:

# pacman
pacman: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/archlinux/usr/lib/libalpm.so.6)

It does work however if you use v3.5.3 of pacman:

http://arm.konnichi.com/core/os/x86_64/

Graysky 20:51, 12 August 2011 (EDT)


@Graysky : Thanks. I faced the same problem, and the solution you suggested worked for me as well. --Gphilip 02:48, 29 August 2011 (EDT)

I had the same problem, but I found another solution: computerA has a working arch linux install, computerB has the empty partition. Use sshfs to mount computerB:/newarch to computerA:/newarch, and run pacman from computerA (with -r of course). --jpic 09:53 UTC, 04 April 2012 (EDT)