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

wwmkchroot yum errors #261

Open
gmkurtzer opened this issue Oct 26, 2020 · 2 comments
Open

wwmkchroot yum errors #261

gmkurtzer opened this issue Oct 26, 2020 · 2 comments

Comments

@gmkurtzer
Copy link
Member

First chroot I'm trying to build on the development branch, and having some issues. Not sure what is going on, I'll dig later, but in the mean time, putting it here to see if anyone else has seen this or knows what's going on.

Jeremy was the last one to touch it. ;-)

# wwmkchroot centos-7 /var/chroots/centos-7
Bad id for repo: mirror.centos.org_centos-7_7_os_$basearch_, byte = $ 32
adding repo from: http://mirror.centos.org/centos-7/7/os/$basearch/

[mirror.centos.org_centos-7_7_os_$basearch_]
name=added from: http://mirror.centos.org/centos-7/7/os/$basearch/
baseurl=http://mirror.centos.org/centos-7/7/os/$basearch/
enabled=1


Bad id for repo: mirror.centos.org_centos-7_7_os_$basearch_, byte = $ 32
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>
ERROR: Failed to install packages
@bensallen
Copy link
Member

Working for me on a new Warewulf install with 3.9.0-0.f26f3d6 on CentOS 8.

[root@ww00 ~]# wwmkchroot centos-7 /var/chroots/centos-7
warning: Generating 18 missing index(es), please wait...
[root@ww00 ~]# ls -la /var/chroots/centos-7
total 12
dr-xr-xr-x. 17 root root  240 Oct 27 03:20 .
drwxr-xr-x.  5 root root   54 Oct 27 03:18 ..
lrwxrwxrwx.  1 root root    7 Apr 11  2018 bin -> usr/bin
dr-xr-xr-x.  2 root root    6 Apr 11  2018 boot
drwxr-xr-x.  2 root root   18 Oct 27 03:19 dev
drwxr-xr-x. 63 root root 8192 Oct 27 03:20 etc
-rw-r--r--.  1 root root    0 Oct 27 03:20 fastboot
drwxr-xr-x.  2 root root    6 Apr 11  2018 home
lrwxrwxrwx.  1 root root    7 Apr 11  2018 lib -> usr/lib
lrwxrwxrwx.  1 root root    9 Apr 11  2018 lib64 -> usr/lib64
drwxr-xr-x.  2 root root    6 Apr 11  2018 media
drwxr-xr-x.  2 root root    6 Apr 11  2018 mnt
drwxr-xr-x.  2 root root    6 Apr 11  2018 opt
dr-xr-xr-x.  2 root root    6 Apr 11  2018 proc
dr-xr-x---.  3 root root   74 Oct 27 03:20 root
drwxr-xr-x. 13 root root  178 Oct 27 03:19 run
lrwxrwxrwx.  1 root root    8 Apr 11  2018 sbin -> usr/sbin
drwxr-xr-x.  2 root root    6 Apr 11  2018 srv
dr-xr-xr-x.  2 root root    6 Apr 11  2018 sys
drwxrwxrwt.  7 root root   93 Oct 27 03:19 tmp
drwxr-xr-x. 13 root root  155 Oct 27 03:18 usr
drwxr-xr-x. 19 root root  253 Oct 27 03:20 var

@skaersoe
Copy link

I have the same error building on a Fedora 26 system (don't ask). I found that is was $basearch not being filled before the YUM_MIRROR path was sent to dnf that caused the error. Explicitly providing the full url to the mirror (e.g. replacing $basearch with x86_64) solves the problem for me.

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

3 participants