You are not logged in.

#1 2024-11-20 10:07:34

fib_nm
Member
Registered: 2024-02-27
Posts: 18

[Solved] network error when building in chroot

Trying to install package in clean chroot fails with errors:

[fib_nm@archlaptop ags-hyprpanel-git]$ CHROOT=$HOME/chroot; makechrootpkg -c -r $CHROOT -I dep/aylurs-gtk-shell-2.0.1-2-x86_64.pkg.tar.zst -I dep/gpu-screen-recorder-r897.6e0f541-1-x86_64.pkg.tar.zst -I dep/matugen-bin-2.3.0-1-x86_64.pkg.tar.zst -I dep/grimblast-git-r108.1e531dc-1-any.pkg.tar.zst -I dep/hyprpicker-0.3.0-1-x86_64.pkg.tar.zst -I dep/bun-bin-1.1.30-1-x86_64.pkg.tar.zst -I dep/libastal-4-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-apps-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-auth-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-battery-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-bluetooth-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-gjs-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-greetd-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-hyprland-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-io-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-lua51-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-lua53-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-lua-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-meta-1-8-any.pkg.tar.zst -I dep/libastal-mpris-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-network-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-powerprofiles-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-river-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-tray-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-wireplumber-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-notifd-git-r597.920e7d2-1-x86_64.pkg.tar.zst -I dep/libastal-cava-git-r501.078dc04-1-x86_64.pkg.tar.zst -I dep/libcava-0.10.3-1-x86_64.pkg.tar.zst
[sudo] password for fib_nm: 
Sorry, try again.
[sudo] password for fib_nm: 
==> Synchronizing chroot copy [/home/fib_nm/chroot/root] -> [fib_nm]...done
warning: database file for 'core-testing' does not exist (use '-Sy' to download)
warning: database file for 'extra-testing' does not exist (use '-Sy' to download)
loading packages...
resolving dependencies...
:: There are 2 providers available for jack:
:: Repository extra
   1) jack2  2) pipewire-jack

Enter a number (default=1): 
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency

Packages (275) adobe-source-code-pro-fonts-2.042u+1.062i+1.026vf-2  adwaita-cursors-47.0-1
               adwaita-icon-theme-47.0-1  adwaita-icon-theme-legacy-46.2-3  alsa-lib-1.2.12-1
               alsa-topology-conf-1.2.5.1-4  alsa-ucm-conf-1.2.12-1  aom-3.10.0-1  aquamarine-0.4.1-1
               at-spi2-core-2.54.0-2  avahi-1:0.8+r194+g3f79789-2  blueprint-compiler-0.14.0-1
               c-ares-1.33.1-1  cairo-1.18.2-2  cantarell-fonts-1:0.303.1-2  dart-sass-1.77.8-1
               dav1d-1.4.3-1  dconf-0.40.0-3  default-cursors-3-1  desktop-file-utils-0.27-1
               duktape-2.7.0-7  ffmpeg-2:7.0.2-3  fftw-3.3.10-7  flac-1.4.3-2  fontconfig-2:2.15.0-2
               freetype2-2.13.3-1  fribidi-1.0.15-1  gdk-pixbuf2-2.42.12-1  giflib-5.2.2-1
               gjs-2:1.82.0-1  glib-networking-1:2.80.0-3  glslang-14.3.0-1
               gobject-introspection-runtime-1.82.0-1  gperftools-2.15-1  graphene-1.10.8-1
               graphite-1:1.3.14-4  grim-1.4.1-2  gsettings-desktop-schemas-47.1-1
               gsettings-system-schemas-47.1-1  gsm-1.0.22-2  gssdp-1.6.3-2
               gst-plugins-bad-libs-1.24.8-1  gst-plugins-base-libs-1.24.8-1  gstreamer-1.24.8-1
               gtk-layer-shell-0.9.0-1  gtk-update-icon-cache-1:4.16.2-1  gtk3-1:3.24.43-3
               gtk4-1:4.16.2-1  gtk4-layer-shell-1.0.3-2  gupnp-1:1.6.7-1  gupnp-igd-1.6.0-1
               harfbuzz-9.0.0-1  hicolor-icon-theme-0.18-1  hidapi-0.14.0-3  highway-1.2.0-1
               hyprcursor-0.1.9-1  hyprland-0.43.0-1  hyprlang-0.5.2-1  hyprutils-0.2.3-1
               hyprwayland-scanner-0.4.2-1  imath-3.1.12-1  iniparser-4.2.4-1  iso-codes-4.17.0-1
               jack2-1.9.22-1  jbigkit-2.1-8  jq-1.7.1-2  js128-128.2.0-1  json-glib-1.10.0-1
               l-smash-2.14.5-4  lame-3.100-5  lcms2-2.16-1  libass-0.17.3-1
               libasyncns-1:0.8+r3+g68cd5af-3  libavc1394-0.5.4-6  libbluray-1.3.4-2  libbs2b-3.1.0-9
               libbsd-0.12.2-2  libcloudproviders-0.3.6-1  libcolord-1.4.7-2  libcups-2:2.4.10-1
               libdaemon-0.14-6  libdatrie-0.2.13-4  libdbusmenu-glib-16.04.0.r498-2
               libdbusmenu-gtk3-16.04.0.r498-2  libdeflate-1.21-1  libdisplay-info-0.2.0-1
               libdovi-3.3.1-1  libdrm-2.4.123-1  libdvdnav-6.1.1-2  libdvdread-6.1.3-2
               libedit-20240517_3.1-1  libei-1.3.0-1  libepoxy-1.5.10-3  libevdev-1.13.3-1
               libfontenc-1.1.8-1  libgirepository-1.82.0-1  libglvnd-1.7.0-1  libgudev-238-1
               libiec61883-1.2.0-8  libinput-1.26.2-1  libjpeg-turbo-3.0.4-1  libjxl-0.11.0-1
               libliftoff-0.5.0-1  libmd-1.1.0-2  libmodplug-0.8.9.0-6  libngtcp2-1.7.0-2
               libnice-0.1.22-1  libnm-1.48.10-1  libogg-1.3.5-2  libomxil-bellagio-0.9.3-5
               libopenmpt-0.7.10-1  libpciaccess-0.18.1-2  libpgm-5.3.128-3  libpipewire-1:1.2.4-1
               libplacebo-7.349.0-2  libpng-1.6.44-1  libproxy-0.5.8-1  libpulse-17.0-3
               libraw1394-2.1.2-4  librsvg-2:2.59.0-1  libsamplerate-0.2.2-3  libsndfile-1.2.2-2
               libsodium-1.0.20-1  libsoup3-3.6.0-1  libsoxr-0.1.3-4  libssh-0.11.1-1
               libstemmer-2.2.0-2  libthai-0.1.29-3  libtheora-1.1.1-6  libtiff-4.7.0-1
               libunibreak-6.1-1  libunwind-1.8.1-3  libuv-1.49.0-1  libva-2.22.0-1  libvdpau-1.5-3
               libvorbis-1.3.7-3  libvpl-2.13.0-1  libvpx-1.14.1-1  libwacom-2.13.0-1
               libwebp-1.4.0-2  libwireplumber-0.5.6-1  libx11-1.8.10-1  libxau-1.0.11-3
               libxcb-1.17.0-1  libxcomposite-0.4.6-2  libxcursor-1.2.2-1  libxcvt-0.1.2-2
               libxdamage-1.1.6-2  libxdmcp-1.1.5-1  libxext-1.3.6-1  libxfixes-6.0.1-2
               libxfont2-2.0.7-1  libxft-2.3.8-2  libxi-1.8.2-1  libxinerama-1.1.5-2
               libxkbcommon-1.7.0-2  libxkbcommon-x11-1.7.0-2  libxkbfile-1.1.3-1  libxrandr-1.5.4-1
               libxrender-0.9.11-2  libxshmfence-1.3.2-2  libxtst-1.2.5-1  libxv-1.0.12-2
               libxxf86vm-1.1.5-2  libzip-1.10.1-2  llvm-libs-18.1.8-4
               lm_sensors-1:3.6.0.r41.g31d1f125-3  lua-5.4.7-1  lua-lgi-0.9.2-10  lua51-5.1.5-12
               lua51-lgi-0.9.2-10  lua53-5.3.6-3  lua53-lgi-0.9.2-10  lzo-2.10-5  mesa-1:24.2.3-1
               mpdecimal-4.0.0-2  mpg123-1.32.7-1  mtdev-1.1.7-1  node-gyp-10.2.0-1  nodejs-22.9.0-1
               nodejs-nopt-7.2.0-2  npm-10.8.3-1  nspr-4.35-3  nss-3.104-1  ocl-icd-2.3.2-2
               oniguruma-6.9.9-1  opencore-amr-0.1.6-2  openexr-3.2.4-1  openjpeg2-2.5.2-1
               opus-1.5.2-1  orc-0.4.40-1  pango-1:1.54.0-1  pixman-0.43.4-1  portaudio-1:19.7.0-3
               pugixml-1.14-1  python-3.12.6-1  python-gobject-3.50.0-1  rav1e-0.7.1-1
               rubberband-3.3.0-2  sdl2-2.30.7-1  seatd-0.8.0-2  semver-7.6.3-1  shaderc-2024.2-1
               shared-mime-info-2.4-1  slurp-1.5.0-1  snappy-1.1.10-1  sndio-1.10.0-1  speex-1.2.1-2
               speexdsp-1.2.1-2  spirv-tools-2024.2-1  srt-1.5.3-2  svt-av1-2.2.1-1
               tinysparql-3.8.0-1  tomlplusplus-3.4.0-1  v4l-utils-1.28.1-1  vapoursynth-R69-1
               vid.stab-1.1.1-2  vmaf-3.0.0-1  vulkan-headers-1:1.3.295-1
               vulkan-icd-loader-1.3.295-1  vulkan-validation-layers-1.3.290-2  wayland-1.23.1-1
               wayland-protocols-1.37-1  x264-3:0.164.r3108.31e19f9-2  x265-3.6-1  xcb-proto-1.17.0-2
               xcb-util-0.4.1-2  xcb-util-errors-1.0.1-2  xcb-util-image-0.4.1-3
               xcb-util-keysyms-0.4.1-5  xcb-util-renderutil-0.3.10-2  xcb-util-wm-0.4.2-2
               xkeyboard-config-2.42-1  xorg-fonts-encodings-1.1.0-1  xorg-server-common-21.1.13-1
               xorg-setxkbmap-1.3.4-2  xorg-xinput-1.6.4-2  xorg-xkbcomp-1.4.7-1  xorg-xprop-1.2.7-1
               xorg-xrandr-1.5.2-2  xorg-xwayland-24.1.2-1  xorgproto-2024.1-2  xvidcore-1.3.7-3
               xxhash-0.8.2-1  zeromq-4.3.5-2  zimg-3.0.5-1  aylurs-gtk-shell-2.0.1-2
               bun-bin-1.1.30-1  gpu-screen-recorder-r897.6e0f541-1  grimblast-git-r108.1e531dc-1
               hyprpicker-0.3.0-1  libastal-4-git-r597.920e7d2-1  libastal-apps-git-r597.920e7d2-1
               libastal-auth-git-r597.920e7d2-1  libastal-battery-git-r597.920e7d2-1
               libastal-bluetooth-git-r597.920e7d2-1  libastal-cava-git-r501.078dc04-1
               libastal-git-r597.920e7d2-1  libastal-gjs-git-r597.920e7d2-1
               libastal-greetd-git-r597.920e7d2-1  libastal-hyprland-git-r597.920e7d2-1
               libastal-io-git-r597.920e7d2-1  libastal-lua-git-r597.920e7d2-1
               libastal-lua51-git-r597.920e7d2-1  libastal-lua53-git-r597.920e7d2-1
               libastal-meta-1-8  libastal-mpris-git-r597.920e7d2-1
               libastal-network-git-r597.920e7d2-1  libastal-notifd-git-r597.920e7d2-1
               libastal-powerprofiles-git-r597.920e7d2-1  libastal-river-git-r597.920e7d2-1
               libastal-tray-git-r597.920e7d2-1  libastal-wireplumber-git-r597.920e7d2-1
               libcava-0.10.3-1  matugen-bin-2.3.0-1

Total Download Size:    200.05 MiB
Total Installed Size:  1222.87 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 mesa-1:24.2.3-1-x86_64.pkg.tar.zst failed to download
 Total (  1/245)                  200.1 MiB  16.4 MiB/s 00:12 [#################################] 100%
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.sunred.org : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.ubrco.de : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from arch-mirror.wtako.net : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.lcarilla.de : Failed to connect to mirror.lcarilla.de port 443 after 10001 ms: Could not connect to server
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.ufscar.br : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
==> Making package: ags-hyprpanel-git r385.0555a84-1 (Wed Nov 20 12:03:41 2024)
==> Retrieving sources...
  -> Updating HyprPanel git repo...
==> Validating source files with sha256sums...
    HyprPanel ... Skipped
warning: database file for 'core-testing' does not exist (use '-Sy' to download)
warning: database file for 'extra-testing' does not exist (use '-Sy' to download)
==> Making package: ags-hyprpanel-git r385.0555a84-1 (Wed Nov 20 12:03:45 2024)
==> Checking runtime dependencies...
warning: database file for 'core-testing' does not exist (use '-Sy' to download)
warning: database file for 'extra-testing' does not exist (use '-Sy' to download)
==> Installing missing dependencies...
warning: database file for 'core-testing' does not exist (use '-Sy' to download)
warning: database file for 'extra-testing' does not exist (use '-Sy' to download)
error: target not found: grimblast-git
error: target not found: gpu-screen-recorder
error: target not found: hyprpicker
error: target not found: matugen-bin
error: target not found: aylurs-gtk-shell
error: target not found: bun-bin
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> pipewire
  -> libgtop
  -> bluez
  -> bluez-utils
  -> btop
  -> networkmanager
  -> dart-sass
  -> wl-clipboard
  -> brightnessctl
  -> swww
  -> gnome-bluetooth-3.0
  -> libdbusmenu-gtk3
  -> grimblast-git
  -> gpu-screen-recorder
  -> hyprpicker
  -> matugen-bin
  -> aylurs-gtk-shell
  -> bun-bin
==> Checking buildtime dependencies...
warning: database file for 'core-testing' does not exist (use '-Sy' to download)
warning: database file for 'extra-testing' does not exist (use '-Sy' to download)
==> Installing missing dependencies...
warning: database file for 'core-testing' does not exist (use '-Sy' to download)
warning: database file for 'extra-testing' does not exist (use '-Sy' to download)
error: failed to prepare transaction (could not find database)
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> unzip
  -> git
==> ERROR: Could not resolve all dependencies.
==> ERROR: Build failed, check /home/fib_nm/chroot/fib_nm/build

Here are mirrorlists on main system and in chroot:

[fib_nm@archlaptop ~]$ cat /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated
 by Reflector #################
################################################################################

# With:       reflector --verbose -l 5 -p https --sort rate --save /etc/pacman.d/mirrorlist
# When:       2024-11-20 08:33:54 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2024-11-20 08:33:36 UTC
# Last Check: 2024-11-20 08:21:36 UTC

Server = https://mirror.sunred.org/archlinux/$repo/os/$arch
Server = https://mirror.ubrco.de/archlinux/$repo/os/$arch
Server = https://arch-mirror.wtako.net/$repo/os/$arch
Server = https://mirror.lcarilla.de/archlinux/$repo/os/$arch
Server = https://mirror.ufscar.br/archlinux/$repo/os/$arch
[fib_nm@archlaptop ~]$ cat chroot/root/etc/pacman.d/mirrorlist
Server = https://mirror.sunred.org/archlinux/$repo/os/$arch
Server = https://mirror.ubrco.de/archlinux/$repo/os/$arch
Server = https://arch-mirror.wtako.net/$repo/os/$arch
Server = https://mirror.lcarilla.de/archlinux/$repo/os/$arch
Server = https://mirror.ufscar.br/archlinux/$repo/os/$arch

Mirrors were generated by reflector today. Installing packages on main system works without any problems.

I'm using:

linux 6.11.9.arch1-1
hyprland 0.45.2-1

Last edited by fib_nm (2024-11-20 12:04:22)

Offline

#2 2024-11-20 10:29:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,985

Re: [Solved] network error when building in chroot

error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.sunred.org : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.ubrco.de : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from arch-mirror.wtako.net : The requested URL returned error: 404
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.lcarilla.de : Failed to connect to mirror.lcarilla.de port 443 after 10001 ms: Could not connect to server
error: failed retrieving file 'mesa-1:24.2.3-1-x86_64.pkg.tar.zst' from mirror.ufscar.br : The requested URL returned error: 404

Current version of mesa in repos is 24.2.7 , the pacman db in your chroot is outdated (yes, chroots need to be updated also.)

I use a small custom script called chroot-update for that with this content :

#! /bin/sh
arch-nspawn $CHROOT/root pacman -Syu

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-11-20 12:04:03

fib_nm
Member
Registered: 2024-02-27
Posts: 18

Re: [Solved] network error when building in chroot

Thanks! Didn't know that.

Offline

Board footer

Powered by FluxBB