drinkcat / chroagh

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

Updater Error #42

Closed charukiewicz closed 10 years ago

charukiewicz commented 10 years ago

I am running into an error using the update function of the script:

First I try:

$ sudo sh -e installer/main.sh -u -n arch
/usr/local/chroots/arch already exists; updating it...
sed: can't read /var/run/crouton/usr/local/chroots/arch/etc/os-release: No such file or directory
Unable to determine the release in /usr/local/chroots/arch. Please specify it with -r.

Then I try:

$ sudo sh -e installer/main.sh -u -n arch -r arch
/usr/local/chroots/arch already exists; updating it...
sed: can't read /var/run/crouton/usr/local/chroots/arch/etc/os-release: No such file or directory
Release doesn't match! Please correct the -r option, or specify a second -u to
change the release, upgrading the chroot (dangerous).

Any help? I prefer to update over reinstall since I have a lot of local development configuration set up (MySQL, Apache, etc.)

drinkcat commented 10 years ago

This should be fixed already. Did you fetch the latest installer?

charukiewicz commented 10 years ago

Ah yes, that was my issue. But there appears to be a bit of another bump.

[...]
warning: pkg-config-0.28-2 is up to date -- skipping
resolving dependencies...
looking for inter-conflicts...
:: gcc-libs-multilib and gcc-libs are in conflict. Remove gcc-libs? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: gcc-libs-multilib and gcc-libs are in conflict
Failed to complete chroot setup.

I found someone else with a similar issue here but I'm not quite sure what the approach would be. I have gcc-libs and lib32-gcc-libs installed in my chroot.

charukiewicz commented 10 years ago

Alright, well I resolved the issue by hand.

First I had to remove gcc-libs, then I got the same error for gcc-libs-multilib, gcc, so I tore that one out as well.

Ran the update script again and it finished. Thanks for making Chroagh awesome. I use it every single day.

drinkcat commented 10 years ago

Well, you probably shouldn't have both gcc-libs and lib32-gcc-libs installed (gcc-libs should be replaced by gcc-libs-multilib in that case, if I understand correctly). Can you try to run pacman -S gcc-libs-multilib, then run the update again?

drinkcat commented 10 years ago

You beat me to it ,-) I'm not sure if this is worth a more automated fix or if there was something strange with your install in the first place. Glad you figured it out though.

charukiewicz commented 10 years ago

I think the issue came from the fact that I needed gcc-libs for some other package a while ago, so I just pulled out gcc-libs-multilib back then. And then gcc comes with base-devel.

If only there was a standard compiler that everyone used....

Anyway, thanks again.