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

From ArchWiki
Jump to: navigation, search
(pacman.static, reorganized)
Line 1: Line 1:
=== pacman.static ===
+
== doesn't work on ubuntu live 11.04 ==
  
It's unclear whether pacman-static is still available anywhere but [http://aur.archlinux.org/packages.php?ID=19287 AUR]. See http://bbs.archlinux.org/viewtopic.php?id=59152 and http://bbs.archlinux.org/viewtopic.php?pid=727877 and http://bbs.archlinux.org/viewtopic.php?id=90685 and
+
Followed the instructions to install pacman on the host (live CD).
  
pacman-static (3.2.2) isn't providing the xz archive format introduced with pacman 3.3.0...
+
Here is the history:
  
 +
<pre>    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</pre>
  
=== install with installer ===
+
Problem is pacman doesn't run:
  
Uhm. Afaik you can just install aif or archlinux-installer (deprecated) onto an existing arch system and just run it.
+
<pre># pacman
[[User:Dieter_be|Dieter_be]]
+
pacman: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/archlinux/usr/lib/libalpm.so.6)</pre>
  
=== Prepare System ===
+
[[User:Graysky|Graysky]] 20:51, 12 August 2011 (EDT)
 
+
I had to recreate the device nodes, because they were not setup as displayed in the article. Could someone add a sentence on why those nodes might be created the wrong way? Without this explanation, this section leaves a somewhat irritating impression. [[User:Aku|Aku]]
+
 
+
=== /dev, uname and /sys missing at step "Install Base System" ===
+
 
+
During the "Install Base System" step, a lot of packages failed while doing "pacman -S ... base" with errors like this:
+
 
+
(  3/104) Aktualisiere glibc                        [#########################] 100%
+
ldconfig: Can't open configuration file /etc/ld.so.conf: No such file or directory
+
/tmp/alpm_bOqjX0/.INSTALL: line 45: init: command not found
+
usr/sbin/locale-gen: line 16: rm: command not found
+
Generating locales...
+
Generation complete.
+
+
/tmp/alpm_hcjko9/.INSTALL: line 7: /dev/null: No such file or directory
+
 
+
I then re-did that step, but this time, I bind-mounted /dev, /sys & /proc from the host to the chroot which is going to be the new arch installation (ie. /newarch). And I did NOT do "pacman -S ... pacman", but instead just installed base, as base also contains pacman. However, BEFORE doing the "mount -o bind /dev /newarch/dev", it's important to create those 3 device files in /dev!
+
 
+
Result → No such error messages.
+
 
+
--[[User:MSchmarck|MSchmarck]] 08:30, 21 April 2009 (EDT)
+

Revision as of 00:51, 13 August 2011

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)

Graysky 20:51, 12 August 2011 (EDT)