Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle outdated mirrors #8

Open
favetelinguis opened this issue May 8, 2024 · 1 comment
Open

How to handle outdated mirrors #8

favetelinguis opened this issue May 8, 2024 · 1 comment

Comments

@favetelinguis
Copy link

Sorry in advance that this might be a very basic question, I am using your image to build a distrobox and it often works great for that. However sometimes I start to get the error below when i run the command:

podman build --no-cache -f ArchL1 -t devbox .

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from forksystems.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from coresite.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from iad.mirrors.misaka.one : The requested URL returned error: 404
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from mirror.pilotfiber.com : The requested URL returned error: 404
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from arch.mirror.constant.com : The requested URL returned error: 404
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from mirror.ette.biz : The requested URL returned error: 404
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from mirror.wdc1.us.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'llvm-libs-17.0.6-3-x86_64.pkg.tar.zst' from uvermont.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from forksystems.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from coresite.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from iad.mirrors.misaka.one : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from mirror.pilotfiber.com : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from arch.mirror.constant.com : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from mirror.ette.biz : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from mirror.wdc1.us.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'cmake-3.29.2-1-x86_64.pkg.tar.zst' from forksystems.mm.fcix.net : The requested URL returned error: 404
warning: too many errors from forksystems.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'cmake-3.29.2-1-x86_64.pkg.tar.zst' from coresite.mm.fcix.net : The requested URL returned error: 404
warning: too many errors from coresite.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from uvermont.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'cmake-3.29.2-1-x86_64.pkg.tar.zst' from iad.mirrors.misaka.one : The requested URL returned error: 404
warning: too many errors from iad.mirrors.misaka.one, skipping for the remainder of this transaction
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from mirror.osbeck.com : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from mirror.pit.teraswitch.com : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.0.5-1-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
warning: failed to retrieve some files
 jdk-openjdk-22.0.1.u0-1-x86_64 downloading...
 emacs-nativecomp-29.3-3-x86_64 downloading...
 gcc-13.2.1-6-x86_64 downloading...
 gcc-libs-13.2.1-6-x86_64 downloading...
 llvm-libs-17.0.6-3-x86_64 downloading...
 ghostscript-10.03.0-2-x86_64 downloading...
 mesa-1:24.0.5-1-x86_64 downloading...
 python-3.12.3-1-x86_64 downloading...
 cmake-3.29.2-1-x86_64 downloading...
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

This is how my image looks.

# https://github.com/greyltc-org/docker-archlinux-aur
FROM ghcr.io/greyltc-org/archlinux-aur:paru

# git is installed from base
RUN aur-install \
    emacs-nativecomp \
    jetbrains-toolbox \
    mise-bin \
    chezmoi \
    github-cli \
    babashka-bin \
    # For clojure-mode emacs
    cljfmt-bin \
    # For clojure-mode emacs
    clj-kondo-bin \
    # For clojure-mode emacs
    clojure-lsp-bin \
    # For Emacs vterm
    cmake \
    # For Doom emacs
    ripgrep \
    # For Doom emacs
    fd \
    # For clj command
    rlwrap \
    # For Emacs org mode to show graphs
    graphviz \
    # For Emacs to render plantuml in org files
    plantuml

# Setup Doom Emacs commands
ENV PATH="~/.config/emacs/bin:$PATH"
# Setup Mise shims
ENV PATH="~/.local/share/mise/shims:$PATH"

# Share some commands with host
RUN ln -fs /usr/bin/distrobox-host-exec /usr/bin/podman
RUN ln -fs /usr/bin/distrobox-host-exec /usr/bin/distrobox
RUN ln -fs /usr/bin/distrobox-host-exec /usr/bin/flatpak
@favetelinguis
Copy link
Author

favetelinguis commented May 8, 2024

So I guess every time you rebuild this image which is once a week the mirror list will get updated, if however the mirrors goes stale before that I need to copy the following into my image also. Is this the correct understanding on how to depend on this image?

# update mirrorlist
ADD https://raw.githubusercontent.com/greyltc/docker-archlinux/master/get-new-mirrors.sh /usr/bin/get-new-mirrors
RUN chmod +x /usr/bin/get-new-mirrors
RUN get-new-mirrors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant