bedrocklinux / bedrocklinux-userland

This tracks development for the things such as scripts and (defaults for) config files for Bedrock Linux
https://bedrocklinux.org
GNU General Public License v2.0
616 stars 69 forks source link

cant fetch archlinux #273

Closed lavilao closed 2 years ago

lavilao commented 2 years ago

Hi, I recently installed bedrocklinux 0.7.27 and everytime I tried to fetch archlinux it would throw this error The keyring file /usr/share/pacman/keyrings/archlinux.gpg does not exist and cancel the installation. Is this a known issue? is it fixed on the 0.7.28 beta? thanks in advice.

lavilao commented 2 years ago

According to Reddit the issue is also in the 0.7.28 beta

paradigm commented 2 years ago

It's fixed in master and is something you should be able to apply locally to /bedrock/share/brl-fetch/distros/arch to unblock yourself here.

I'm really hoping to push this to a beta, if not a stable release, this weekend. However, I have some competing time constraints and that goal may slip.

lavilao commented 2 years ago

Thank You! Question, to be able to brl update to a beta must I be on a beta versión of bedrocklinux? Cuz I tried to upgrade 0.7.27 to 0.7.28 beta but it said there was not any update available

paradigm commented 2 years ago

Thank You!

You're welcome :)

Question, to be able to brl update to a beta must I be on a beta versión of bedrocklinux? Cuz I tried to upgrade 0.7.27 to 0.7.28 beta but it said there was not any update available

No, you can update to a beta from any release. It doesn't actually understand the concept of a beta under-the-hood. Rather, brl update just updates to the newest release it finds in the configured mirror list. If the newest release in the mirror list is a beta, it'll update to a beta.

Did you follow the documentation?

lavilao commented 2 years ago

Weird, I used brl update from 0.7.27 and it said no update detectes🤔

DragonEggBedrockBreaking commented 2 years ago

This also needs to be fixed in artix (artix-keychain).

paradigm commented 2 years ago

This also needs to be fixed in artix (artix-keychain).

Applied in master. The same change was needed for Arch Linux ARM but, strangely, not for Arch Linux 32. Maybe the latter project is lagging here and will need an update later. I preemptively applied it for Arch Linux 32, as it didn't really hurt.

DragonEggBedrockBreaking commented 2 years ago

This also needs to be fixed in artix (artix-keychain).

Applied in master. The same change was needed for Arch Linux ARM but, strangely, not for Arch Linux 32. Maybe the latter project is lagging here and will need an update later. I preemptively applied it for Arch Linux 32, as it didn't really hurt.

Wasn’t it necessary for artix-s6 as well? (I haven’t tested/don’t use it, so this is a question rather than a request).

paradigm commented 2 years ago

Ah, I changed it locally but forgot to include it in the commit. Fixed as well, good eye.

agnosticlines commented 2 years ago

Hi,

Found this issue while searching for the error I got, seems like it's still broken on the latest bedrock linux with arch-arm?

Not sure if I'm doing something wrong

[13/19 ( 68%)] Configuring
==> ERROR: The keyring file /usr/share/pacman/keyrings/archlinuxarm.gpg does not exist.
ERROR: Unexpected error occurred.
This is commonly due to distro mirror layout changes breaking `brl fetch`.  Possible solutions:                                                           
- If you did not, consider manually providing a mirror with --mirror         
- Check for a Bedrock Linux update with `brl update`                         
- Check for a Bedrock Linux beta which may contain a fix                     
- Try `brl import` which does not rely on mirror layout                      

Tried the --mirror option too, and it looks like my arch-arm strata has the fix included? but still giving the same error

LC_ALL=C chroot "${1}" /usr/bin/pacman-key --populate archlinuxarm
bootstrap_deps="arch-install-scripts archlinuxarm-keyring"

Version:

# brl version                                                              
Bedrock Linux 0.7.28 Poki
paradigm commented 2 years ago

The original issue which hit:

was that the arch-install-scripts package no longer indicated it was dependent on the corresponding *-keyring package.

Apparently, Arch Linux ARM also had an additional change where base no longer depended on the archlinuxarm-keyring package. I missed this in testing, myopic just about the arch-install-scripts package.

I've pushed a fix to master that you should be able to apply manually to /bedrock/share/brl-fetch/distros/arch-arm for the time being. It should filter down to the next beta/stable releases accordingly.