You are not logged in.

#1 2021-01-22 07:39:38

GlitchyGoats
Member
Registered: 2021-01-22
Posts: 6

Errors while installing essential packages (pacstrap)

I'm following the wiki installation guide. I didn't encounter any problems until I had to install packages with pacstrap.

Input:

 [root@archiso ~]# pacstrap /mnt base linux linux-firmware vim 

Output:

 ==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
error: failed retrieving file 'online-repo.db' from 192.168.1.156:8000 : Failed to connect to 192.168.1.156 port 8000: No route to host
error: failed to update online-repo (download library error)
error: failed to synchronize all databases
==> ERROR: Failed to install packages to new root 

My wireless seems to be working.

 [root@archiso ~]# ping archlinux.org 
PING archlinux.org(archlinux.org (2a01:4f9:c010:6b1f::1)) 56 data bytes
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=1 ttl=52 time=111 ms
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=2 ttl=52 time=111 ms
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=3 ttl=52 time=111 ms
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=4 ttl=52 time=110 ms 

I've tried using reflector several times with different protocols, locations, sync times, but I still get the same output as before.

Offline

#2 2021-01-22 07:49:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,237

Re: Errors while installing essential packages (pacstrap)

This is trying to add a repository called "online-repo" in your pacman.conf and download from it which is not a thing. If you didn't change anything you are probably not actually trying to install Arch. If you did change that, then I'm not quite sure what your goal was, did you try to include a local/personal repository?

Last edited by V1del (2021-01-22 07:50:18)

Online

#3 2021-01-22 07:54:31

GlitchyGoats
Member
Registered: 2021-01-22
Posts: 6

Re: Errors while installing essential packages (pacstrap)

V1del wrote:

This is trying to add a repository called "online-repo" in your pacman.conf and download from it which is not a thing. If you didn't change anything you are probably not actually trying to install Arch. If you did change that, then I'm not quite sure what your goal was, did you try to include a local/personal repository?

I didn't change anything or add any local repositories. I am actually trying to install arch.

Offline

#4 2021-01-22 08:30:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,237

Re: Errors while installing essential packages (pacstrap)

Can you check/post your /mnt/etc/pacman.conf?

Online

#5 2021-01-22 08:37:19

GlitchyGoats
Member
Registered: 2021-01-22
Posts: 6

Re: Errors while installing essential packages (pacstrap)

V1del wrote:

Can you check/post your /mnt/etc/pacman.conf?

For some reason, there's no pacman.conf file. There's only pacman.d, which is an empty directory.

Offline

#6 2021-01-22 08:46:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,237

Re: Errors while installing essential packages (pacstrap)

Ah whoops, just /etc/pacman.conf instead?

Last edited by V1del (2021-01-22 08:46:36)

Online

#7 2021-01-22 08:51:03

GlitchyGoats
Member
Registered: 2021-01-22
Posts: 6

Re: Errors while installing essential packages (pacstrap)

V1del wrote:

Ah whoops, just /etc/pacman.conf instead?

Alright, that worked. Here's pacman.conf.

 
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
# We cannot check disk space from within a chroot environment
#CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[online-repo]
SigLevel = Never
Server = http://192.168.1.156:8000/x86_64/

Offline

#8 2021-01-22 08:57:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,237

Re: Errors while installing essential packages (pacstrap)

There you have it at the end of the file, remove that last three lines.

How did you create the ISO/where did you download it from? Did you take someone's USB stick? That would be quite the issue if it was in the ISO, but it's at least not present in the latest ISO, so this is something that's must have happened on your installation setup if you haven't consciously changed something here.

Last edited by V1del (2021-01-22 09:08:02)

Online

#9 2021-01-22 09:10:59

GlitchyGoats
Member
Registered: 2021-01-22
Posts: 6

Re: Errors while installing essential packages (pacstrap)

V1del wrote:

There you have it at the end of the file, remove that last entry.

How did you create the ISO/where did you download it from? Did you take someone's USB stick? That would be quite the issue if it was in the ISO, but it's at least not present in the latest ISO, so this is something that's must have happened on your installation setup if you haven't consciously changed something here.

This is an ISO someone else made that included a driver for my wireless card so I didn't have to use a wired connection. I apologize for not mentioning this in the original post. I was under the impression that official-repo was an official repository. 

Here's the output after I removed official-repo.

 
[root@archiso etc]# pacstrap /mnt base base-devel linux linux-firmware vim
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: There are 24 members in group base-devel:
:: Repository core
   1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file
   7) findutils  8) flex  9) gawk  10) gcc  11) gettext  12) grep  13) groff
   14) gzip  15) libtool  16) m4  17) make  18) pacman  19) patch  20) pkgconf
   21) sed  22) sudo  23) texinfo  24) which

Enter a selection (default=all): 
resolving dependencies...
:: There are 2 providers available for initramfs:
:: Repository core
   1) mkinitcpio
:: Repository extra
   2) dracut

Enter a number (default=1): 
looking for conflicting packages...

Packages (140) acl-2.2.53-3  archlinux-keyring-20210110-1  argon2-20190702-3
               attr-2.4.48-3  audit-3.0-1  bash-5.1.004-1  bzip2-1.0.8-4
               ca-certificates-20181109-4  ca-certificates-mozilla-3.60.1-1
               ca-certificates-utils-20181109-4  coreutils-8.32-1
               cryptsetup-2.3.4-1  curl-7.74.0-1  db-5.3.28-5  dbus-1.12.20-1
               device-mapper-2.02.187-3  diffutils-3.7-3  e2fsprogs-1.45.6-3
               elfutils-0.182-1  expat-2.2.10-2  filesystem-2021.01.19-1
               gc-8.0.4-4  gcc-libs-10.2.0-4  gdbm-1.19-1  glib2-2.66.4-2
               glibc-2.32-5  gmp-6.2.1-1  gnupg-2.2.27-1  gnutls-3.7.0-1
               gpgme-1.15.1-1  gpm-1.20.7.r38.ge82d1a6-3  guile-2.2.6-2
               hwids-20200813.1-1  iana-etc-20201229-1  icu-68.2-1
               iproute2-5.10.0-2  iptables-1:1.8.7-1  iputils-20200821-1
               json-c-0.15-1  kbd-2.3.0-2  keyutils-1.6.3-1  kmod-28-1
               krb5-1.18.2-1  less-563-1  libarchive-3.5.1-1  libassuan-2.5.4-1
               libcap-2.46-1  libcap-ng-0.8.2-1  libcroco-0.6.13-2
               libelf-0.182-1  libffi-3.3-4  libgcrypt-1.8.7-1
               libgpg-error-1.41-1  libidn2-2.3.0-1  libksba-1.4.0-2
               libldap-2.4.56-1  libmicrohttpd-0.9.72-1  libmnl-1.0.4-3
               libmpc-1.2.1-1  libnetfilter_conntrack-1.0.8-1
               libnfnetlink-1.0.1-4  libnftnl-1.1.9-1  libnghttp2-1.41.0-1
               libnl-3.5.0-2  libp11-kit-0.23.22-1  libpcap-1.10.0-1
               libpsl-0.21.1-1  libsasl-2.1.27-3  libseccomp-2.5.1-2
               libsecret-0.20.4-1  libssh2-1.9.0-2  libtasn1-4.16.0-1
               libtirpc-1.3.1-1  libunistring-0.9.10-3  libxcrypt-4.4.17-1
               libxml2-2.9.10-8  licenses-20200427-1  linux-api-headers-5.8-1
               lz4-1:1.9.3-1  mkinitcpio-29-1  mkinitcpio-busybox-1.32.1-2
               mpfr-4.1.0-1  ncurses-6.2-1  nettle-3.7-1  npth-1.6-2
               openssl-1.1.1.i-2  p11-kit-0.23.22-1
               pacman-mirrorlist-20210110-1  pam-1.5.1-1  pambase-20200721.1-2
               pciutils-3.7.0-1  pcre-8.44-1  pcre2-10.36-1  perl-5.32.0-3
               pinentry-1.1.0-5  popt-1.18-1  procps-ng-3.3.16-2  psmisc-23.3-4
               readline-8.1.0-2  shadow-4.8.1-4  sqlite-3.34.0-1
               systemd-247.2-1  systemd-libs-247.2-1
               systemd-sysvcompat-247.2-1  tar-1.33-1  tzdata-2020f-1
               util-linux-2.36.1-4  util-linux-libs-2.36.1-4
               vim-runtime-8.2.2380-1  xz-5.2.5-1  zlib-1:1.2.11-4
               zstd-1.4.8-1  autoconf-2.70-1  automake-1.16.2-3  base-2-2
               binutils-2.35.1-1  bison-3.7.2-1  fakeroot-1.25.3-1  file-5.39-1
               findutils-4.7.0-2  flex-2.6.4-3  gawk-5.1.0-1  gcc-10.2.0-4
               gettext-0.21-1  grep-3.6-1  groff-1.22.4-3  gzip-1.10-3
               libtool-2.4.6+42+gb88cebd5-14  linux-5.10.9.arch1-1
               linux-firmware-20201218.646f159-1  m4-1.4.18-3  make-4.3-3
               pacman-5.2.2-1  patch-2.7.6-8  pkgconf-1.7.3-1  sed-4.8-1
               sudo-1.9.5.p1-1  texinfo-6.7-3  vim-8.2.2380-1  which-2.21-5

Total Installed Size:  1529.85 MiB

:: Proceed with installation? [Y/n] 
(140/140) checking keys in keyring                 [######################] 100%
downloading required keys...
error: key "7258734B41C31549" could not be looked up remotely
error: key "3B94A80E50A477C7" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root

Offline

#10 2021-01-22 09:33:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,237

Re: Errors while installing essential packages (pacstrap)

https://wiki.archlinux.org/index.php/Pa … mport_keys Try adjusting the keyserver in /mnt/etc/pacman.d/gnupg/gpg.conf (... or just /etc though I'd expect this to be copied over by now)

If this doesn't help either you should probably ask your friend for help, as this falls squarely into unsupported 3rd party guide territory, because there have been manipulations on the ISO that deviate from what we expect and you do not know what exactly has been done, which makes this bordeline impossible to properly help you.

Online

#11 2021-01-23 21:05:34

GlitchyGoats
Member
Registered: 2021-01-22
Posts: 6

Re: Errors while installing essential packages (pacstrap)

V1del wrote:

https://wiki.archlinux.org/index.php/Pa … mport_keys Try adjusting the keyserver in /mnt/etc/pacman.d/gnupg/gpg.conf (... or just /etc though I'd expect this to be copied over by now)

If this doesn't help either you should probably ask your friend for help, as this falls squarely into unsupported 3rd party guide territory, because there have been manipulations on the ISO that deviate from what we expect and you do not know what exactly has been done, which makes this bordeline impossible to properly help you.

Changing the keyserver fixed the error. I think I'll be good to go now. If I encounter any other problems I'll use a different ISO or ask the person who made it. Thanks for the help and sorry for the nooby questions smile

Offline

Board footer

Powered by FluxBB