Github Desktop AUR package be installed on one machine but not the other

I have two computers both with Manjaro KDE Plasma. I can install Github Desktop on one but not the other. This is the error message I get on the machine that fails to install the package:

Preparing...
Checking github-desktop dependencies...
Resolving dependencies...
Checking inter-conflicts...
Cloning github-desktop build files...
Generating github-desktop information...

Building github-desktop...
==> Making package: github-desktop 3.3.12-1 (Sat 20 Apr 2024 01:32:04 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning github-desktop git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/github-desktop'...
  -> Cloning gemoji git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/gemoji'...
  -> Cloning gitignore git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/gitignore'...
  -> Cloning choosealicense.com git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/choosealicense.com'...
  -> Found github-desktop.desktop
==> Validating source files with sha256sums...
    github-desktop ... NOT FOUND
    gemoji ... Skipped
    gitignore ... Skipped
    choosealicense.com ... Skipped
    github-desktop.desktop ... Passed
==> ERROR: One or more files did not pass the validity check!
Failed to build github-desktop

I tried emptying the build directory but it did not help. Any suggestion what to do next?

Well, I just answered a similar question for one of my AUR packages moments ago, so I’ll just paste the same thing here:

Do a fresh clone of the repo. See the Arch wiki for more info.

Keep in mind, AUR helpers are not officially supported.

Thanks for the guidance. Long story short, I still face the same error.

These are the steps I’ve taken:

❯ git clone https://aur.archlinux.org/github-desktop.git

❯ cd ./github-desktop

❯ makepkg -si
==> Making package: github-desktop 3.3.12-1 (Sat 20 Apr 2024 02:15:27 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning github-desktop git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/github-desktop'...
remote: Enumerating objects: 283898, done.
remote: Counting objects: 100% (452/452), done.
remote: Compressing objects: 100% (183/183), done.
remote: Total 283898 (delta 295), reused 359 (delta 268), pack-reused 283446
Receiving objects: 100% (283898/283898), 100.82 MiB | 23.53 MiB/s, done.
Resolving deltas: 100% (222754/222754), done.
  -> Cloning gemoji git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/gemoji'...
remote: Enumerating objects: 10649, done.
remote: Counting objects: 100% (230/230), done.
remote: Compressing objects: 100% (149/149), done.
remote: Total 10649 (delta 96), reused 168 (delta 67), pack-reused 10419
Receiving objects: 100% (10649/10649), 44.62 MiB | 28.00 MiB/s, done.
Resolving deltas: 100% (1381/1381), done.
  -> Cloning gitignore git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/gitignore'...
remote: Enumerating objects: 26461, done.
remote: Counting objects: 100% (190/190), done.
remote: Compressing objects: 100% (159/159), done.
remote: Total 26461 (delta 60), reused 145 (delta 28), pack-reused 26271
Receiving objects: 100% (26461/26461), 8.79 MiB | 19.69 MiB/s, done.
Resolving deltas: 100% (14016/14016), done.
  -> Cloning choosealicense.com git repo...
Cloning into bare repository '/var/tmp/pamac-build-mehran/github-desktop/choosealicense.com'...
remote: Enumerating objects: 10901, done.
remote: Counting objects: 100% (1256/1256), done.
remote: Compressing objects: 100% (222/222), done.
remote: Total 10901 (delta 1101), reused 1134 (delta 1017), pack-reused 9645
Receiving objects: 100% (10901/10901), 4.25 MiB | 11.85 MiB/s, done.
Resolving deltas: 100% (6666/6666), done.
  -> Found github-desktop.desktop
==> Validating source files with sha256sums...
    github-desktop ... NOT FOUND
    gemoji ... Skipped
    gitignore ... Skipped
    choosealicense.com ... Skipped
    github-desktop.desktop ... Passed
==> ERROR: One or more files did not pass the validity check!

If I had not the same package installed on another computer, I would have said that there’s something wrong with it. But since it works on my other computer, I’m at lost why it fails here!?

Well, you have to do a

updpkgsums

https://man.archlinux.org/man/updpkgsums.8.en

inside the directory.

1 Like

The checksums are correct as of the latest commit, however that is a good recommendation regardless.

I always run updpkgsums && makepkg -od first to update the checksums and extract the source files, the I’ll run makepkg -srif to build and install.

2 Likes

For anyone else who might be facing the same issue (including my future self):

First install updpkgsums:

sudo pacman -Syu pacman-contrib

Then:

updpkgsums && makepkg -od

And finally:

makepkg -srif

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.