mediocregopher / chroagh

Yet another fork of chroagh which will work for a few months then die
BSD 3-Clause "New" or "Revised" License
13 stars 1 forks source link

No servers configured for repository #1

Closed eyqs closed 6 years ago

eyqs commented 6 years ago

After extracting the mediocregopher-chroagh-bb0c97a tarball, I ran: sudo sh -e installer/main.sh -r arch -t core -m 'http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch'

I ended up with this error after downloading and extracting base packages, creating groups, and updating the trust database:

resolving dependencies...
looking for conflicting packages...

Packages (93) [trimmed]

Total Installed Size:  401.62 MiB

:: Proceed with installation? [Y/n] 
error: no servers configured for repository: core
error: no servers configured for repository: extra
error: failed to commit transaction (no servers configured for repository)
Errors occurred, no packages were upgraded.
Unmounting /tmp/main.sh.prl/arch-x86_64...
Sending SIGTERM to processes under /tmp/main.sh.prl/arch-x86_64...
mediocregopher commented 6 years ago

I'm afraid I'm not able to reproduce, creating a new chroot with a manually specified mirror works fine for me. But I'm on an arm so possibly it could have something to do with that. Could you copy/paste this into your shell inside chroagh and rerun?

(cat << 'EOF'
diff --git a/installer/arch/bootstrap b/installer/arch/bootstrap
index e5be03e..12b0711 100644
--- a/installer/arch/bootstrap
+++ b/installer/arch/bootstrap
@@ -200,6 +200,12 @@ sh -e $BINDIR/enter-chroot -x -c "$(dirname $BOOTSTRAPCHROOT)" find $FETCHDIRDBcman-key --populate archlinuxarm

         fi

+        echo '#### catting pacman.conf ####'
+        cat /etc/pacman.conf
+        echo '#### catting pacman mirrorlist ####'
+        cat /etc/pacman.d/mirrorlist
+        echo '#### Calling pacman ####'
+
         # Force overwritting packages files in the bootstrap, without any sort
         # of dependency checking: this makes sure package content are properly
         # recorded
EOF
) | patch -p1

and if you could post the entire output from the command (I know it's a lot) that'd be really helpful, especially to see those debug lines the patch adds.

eyqs commented 6 years ago

Both pacman.conf and the mirrorlist are the same as the defaults. In particular, all the mirrors in the list are commented out. Did your mirrorlist start with some uncommented mirrors?

eyqs commented 6 years ago

The x86 mirrorlist has no uncommented mirrors, so the prepare script has a section to append $MIRROR to the mirrorlist. But the bootstrap script also needs a mirror, which is addressed by this pull request. Nevertheless, we might want to reorganize these scripts in the future.