You are not logged in.

#1 2026-03-12 18:37:17

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

[SOLVED] Yay giving "is not a clone of" error for many packages

Hello everyone.

I recently installed Arch Linux on a new system using the `archinstall` script and went with the Hyprland starter pack (I guess you could call it).

I have installed `yay` just fine and I have also managed to install some packages with `yay` but I am struggling to install others as I get an error, something along the lines of:
"==> ERROR: /home/mo0rby/.cache/yay/nct6687d-dkms-git/nct6687d-dkms-git is not a clone of https://github.com/Fred78290/nct6687d
    Aborting...
-> error making: nct6687d-dkms-git-exit status 17
-> Failed to install the following packages. Manual intervention is required:
nct6687d-dkms-git - exit status 17
"

This particular output is from me trying to install a chip module so I can get `lm_sensors` working.

I get this same error when running `yay -S ${something}` or if I go into the `~/.cache/yay/${something}` directory that gets created and try to run `makepkg -i`.
I have tried deleting the cache data and re-running, I get the same error.

What can I do?

Last edited by Mo0rBy (2026-03-12 21:04:39)

Offline

#2 2026-03-12 19:30:25

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Just tried using "paru" and I get the exact same error.

Offline

#3 2026-03-12 19:49:34

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,408
Website

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

What does /home/mo0rby/.cache/yay/nct6687d-dkms-git/nct6687d-dkms-git/.git/config contain, if it exists?

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2026-03-12 19:55:00

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

This is the cat of that file:

❯ cat config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
[remote "origin"]
        url = https://github.com/Fred78290/nct6687d
        tagOpt = --no-tags
        fetch = +refs/*:refs/*
        mirror = true

Offline

#5 2026-03-12 20:07:08

astralc
Member
Registered: 2022-09-17
Posts: 126

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Do you have some insteadOf in your ~/.gitconfig?

Offline

#6 2026-03-12 20:09:41

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Nope, if you want to see it, it's here: https://github.com/Mo0rBy/moorby-dotfil … git/config

And it's path in my system is ~/.config/git/config if that matters.

Last edited by Mo0rBy (2026-03-12 20:10:30)

Offline

#7 2026-03-12 20:36:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

printenv | grep -i git

Online

#8 2026-03-12 20:38:26

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

❯ printenv | grep -i git
GIT_CONFIG=/home/mo0rby/.config/git/config

Offline

#9 2026-03-12 20:39:11

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Unset that.

Online

#10 2026-03-12 20:39:37

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

It also shows the same location and expected config options with "git config --list --show-origin"
No unexpected extras:

file:/home/mo0rby/.config/git/config    user.name=Will Moorby
file:/home/mo0rby/.config/git/config    user.email=will.moorby2@gmail.com
file:/home/mo0rby/.config/git/config    user.signingkey=ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuyiGZTmETl+gbagjExKLWQiClEVSHVh8AYqpkQMgLW
file:/home/mo0rby/.config/git/config    gpg.format=ssh
file:/home/mo0rby/.config/git/config    gpg.ssh.program=/opt/1Password/op-ssh-sign
file:/home/mo0rby/.config/git/config    gpg.ssh.allowedsignersfile=~/.ssh/allowed_signers
file:/home/mo0rby/.config/git/config    commit.gpgsign=true
file:/home/mo0rby/.config/git/config    tag.gpgsign=true
file:/home/mo0rby/.config/git/config    push.autosetupremote=true
file:/home/mo0rby/.config/git/config    diff.external=difft
file:/home/mo0rby/.config/git/config    core.eol=lf
file:/home/mo0rby/.config/git/config    core.autocrlf=false
file:/home/mo0rby/.config/git/config    fsck.zeropaddedfilemode=ignore
file:/home/mo0rby/.config/git/config    fetch.fsck.zeropaddedfilemode=ignore
file:/home/mo0rby/.config/git/config    receive.fsck.zeropaddedfilemode=ignore
(END)

Offline

#11 2026-03-12 20:41:41

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

It worked!

So whats up with that?
Why should that envVar not be set? And if it is unset, is that going to affect my git config used globally?

Offline

#12 2026-03-12 20:42:02

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Online

#13 2026-03-12 20:46:28

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Oh ok, so it's just an old Git thing thats been kept around for compatibility but has been replaced by XDG_CONFIG_HOME?
Is it Git that sets this envVar in the 1st place?

Just checked on my Mac and it is set there too, I am coming from Mac as my main software dev machine, so it may be that the oh-my-zsh Git plugin is setting it?

I'm just curious what this is at this point.

Thanks for helping!

Offline

#14 2026-03-12 20:51:13

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Is it Git that sets this envVar in the 1st place?

No.

o it may be that the oh-my-zsh Git plugin is setting it?

OMZ is generally always a good target to blame and usually at fault - so I'd not be surprised.
But you'll have to either trace the shell (zsh -x, gonna be a lot of text) or

grep -r GIT_CONFIG /etc ~/.*

to figure where this is coming from if you didn't intentionally put it there.

Online

#15 2026-03-12 20:53:00

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

I'm a dumb-ass, I set it within my .zshenv file.

Still, I'd like to better understand what are the repercussions of setting/unsetting this are this are and also how can I point Git to a custom git config file (as I have done) without it messing with yay/paru/other AUR helpers?

I suppose I could "alias yay=unset GIT_CONFIG; yay"?

Last edited by Mo0rBy (2026-03-12 20:53:42)

Offline

#16 2026-03-12 21:02:35

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Well, I removed it from my .zshenv file and "git config --list --show-origin" gives the same results while the "GIT_CONFIG" envVar is not set, so I guess you just don't need that all.

Amazing! Thank you so much for helping with that! I didn't think it would be so simple.

Now how do I mark this as solved?

Last edited by Mo0rBy (2026-03-12 21:05:02)

Offline

#17 2026-03-12 21:04:02

Mo0rBy
Member
Registered: 2026-03-12
Posts: 23

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Offline

#18 2026-03-12 21:04:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [SOLVED] Yay giving "is not a clone of" error for many packages

Welcome to the pro-show tongue

Mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB