Error trying to clone zotero-client as part of the AUR pkgbuild script (zotero 6.0.37-1)

Hi all, So I'm running endeavour OS (Arch linux) and I manage my Zotero installation through the AUR: https://aur.archlinux.org/packages/zotero

So one of the first steps in the package build is to clone the zotero-client git and to create a working copy to build it. In the process, when it tries to download app/linux/updater.tar.xz, I get the following git errors:

Downloading app/linux/updater.tar.xz (74 KB)
Error downloading object: app/linux/updater.tar.xz (d7e9c81): Smudge error: Error downloading app/linux/updater.tar.xz (d7e9c81d2f86ec0f70d75107a022649292889807bc8b0b7eaf1bdfd5c1030bf1): error transferring "d7e9c81d2f86ec0f70d75107a022649292889807bc8b0b7eaf1bdfd5c1030bf1": [0] remote missing object d7e9c81d2f86ec0f70d75107a022649292889807bc8b0b7eaf1bdfd5c1030bf1

Errors logged to '/home/user/.cache/yay/zotero/src/zotero-client/.git/lfs/logs/20240405T131904.586641425.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: app/linux/updater.tar.xz: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.


I checked the PKGBUILD and the github issues and I didn't notice anybody else having problems with this. I decided to reinstall git-lfs. I decided to do a clean build so it cloned the zotero-client git successfully

-> Cloning zotero-client git repo...
Cloning into bare repository '/home/user/.cache/yay/zotero/zotero-client'...
remote: Enumerating objects: 225697, done.
remote: Counting objects: 100% (5303/5303), done.
remote: Compressing objects: 100% (2406/2406), done.
remote: Total 225697 (delta 3350), reused 4367 (delta 2730), pack-reused 220394
Receiving objects: 100% (225697/225697), 210.55 MiB | 27.02 MiB/s, done.
Resolving deltas: 100% (141352/141352), done.


But I still get the following error:

Cloning into 'zotero-client'...
done.
Downloading app/linux/updater.tar.xz (74 KB)
Error downloading object: app/linux/updater.tar.xz (d7e9c81): Smudge error: Error downloading app/linux/updater.tar.xz (d7e9c81d2f86ec0f70d75107a022649292889807bc8b0b7eaf1bdfd5c1030bf1): error transferring "d7e9c81d2f86ec0f70d75107a022649292889807bc8b0b7eaf1bdfd5c1030bf1": [0] remote missing object d7e9c81d2f86ec0f70d75107a022649292889807bc8b0b7eaf1bdfd5c1030bf1

Errors logged to '/home/user/.cache/yay/zotero/src/zotero-client/.git/lfs/logs/20240405T140126.404909419.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: app/linux/updater.tar.xz: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
  • Hey there, after months of ignoring this I finally decided to try and fix it. I found your post first, and then afterwards went to look at the comments at the AUR package's page and found this:

    ####
    If anyone runs into the following error, the solution is to run git lfs uninstall to remove the git lfs filters from the global ~/.gitconfig.

    Error downloading object: app/linux/updater.tar.xz (d7e9c81): Smudge error: Error downloading app/linux/updater.tar.xz ...
    ####

    Worked for me, I just ran " git lfs uninstall ", then ran yay again and it updated normally
Sign In or Register to comment.