drinkcat / chroagh

Chromium OS Archlinux Chroot Environment
BSD 3-Clause "New" or "Revised" License
241 stars 27 forks source link

Chroagh installation won't continue after libncursesw.so... #100

Open ghost opened 8 years ago

ghost commented 8 years ago

I've successfully installed arch on my Acer Chromebook C910 in the past ~3 weeks ago. Below is the output from the terminal on my latest attempt.

The chroot does not install and running the command again yields the same result.

chronos@localhost ~/Downloads/drinkcat-chroagh-18cc180 $ sudo sh -e installer/main.sh -r arch -t xfce Installing arch-x86_64 chroot to /usr/local/chroots/arch Fetching repository packages list... Fetching core...

100.0%

Fetching community...

100.0%

Fetching extra...

100.0%

Downloading and extracting packages... Downloading and installing bash...

100.0%

Downloading and installing gawk...

100.0%

Downloading and installing grep...

100.0%

Downloading and installing pacman...

100.0%

Downloading and installing sed...

100.0%

Downloading and installing util-linux...

100.0%

Downloading and installing readline...

100.0%

Downloading and installing glibc...

100.0%

Downloading and installing ncurses...

100.0%

Downloading and installing libncursesw.so... chronos@localhost ~/Downloads/drinkcat-chroagh-18cc180 $

ghost commented 8 years ago

https://www.archlinux.org/packages/core/x86_64/bash/

Dependencies listed for bash: glibc libncursesw.so=6-64 (ncurses) ncurses readline>=6.3

I'm going to try to remove libncursesw.so from $missing list, That should allow the installation to continue. If I'm understanding this correctly, ncurses resolves the dependency.

ghost commented 8 years ago

Still new to this scripting language but I found a solution.

I added the following code to the while loop in the bootstrap file. chroagh/installer/arch/bootstrap

skip libncursesw.so

if [ "$package" = "libncursesw.so" ]; then 
    echo "skipping $package"
    installed="$installed $package "
fi;

placed above

Do not install if already installed

if [ "${installed#*" $package "}" != "$installed" ]; then
    continue
fi

It's probably not the most correct method to fix it but it works.

dgranillo commented 8 years ago

Can confirm this works. Thanks you for the hack.

rolladude1166 commented 8 years ago

Just finished installing arch, this fix was a life saver.

dbxt commented 8 years ago

It's a hack until you have consensus. Then it's a fix!

Re-installing my chroot now with the help of this fix. Thanks @supremeabraxas

PasNecessairement commented 8 years ago

I had to add a ''continue'' to make it work :

    if [ "$package" = "libncursesw.so" ]; then 
    echo "skipping $package"
    installed="$installed $package "
    continue
    fi
TheBlackRabbit commented 8 years ago

wanted to drop a line to put my 2 cents in... Works, appended bootstrap with vim (including continue) working with all available targets and xfce desktop.

On another note, for the uninitiated be sure to move your mouse around during gpg key generation to generate necessary entropy and during creation it seemed to be hanging until after about 8 min waiting i sent a click and then the script finished up key signing and started pacman.

Thanks for the fix!

ErikHumphrey commented 8 years ago

thank you based supremeabraxas

DimitriDokuchaev commented 8 years ago

Same over here, supremeabraxas hack fixed the issue as well, thanks a lot supremeabraxas :)