Failed to update AUR package

Hello,

I’ve been having trouble updating Stremio from AUR using pamac GUI.
I’ m getting this from the console:

Preparing...
Synchronizing package databases...
Cloning stremio build files...
Generating stremio information...
Checking stremio dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building stremio...
==> Making package: stremio 4.4.168-1 (ter 07 mai 2024 00:22:49)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating stremio-shell git repo...
  -> Updating libmpv git repo...
  -> Updating SingleApplication git repo...
  -> Updating razerchroma git repo...
  -> Found stremio-4.4.168-server.js
  -> Found stremio-4.4.168-stremio.asar
  -> Found 010-stremio-do-not-download-server-js.patch
==> Validating source files with sha256sums...
    stremio-shell ... NOT FOUND
    libmpv ... Skipped
    SingleApplication ... Skipped
    razerchroma ... Skipped
    stremio-4.4.168-server.js ... Passed
    stremio-4.4.168-stremio.asar ... Passed
    010-stremio-do-not-download-server-js.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
Failed to build stremio

Preparing...
Synchronizing package databases...
Refreshing core.db...
Refreshing extra.db...
Refreshing multilib.db...
Refreshing core.files...
Refreshing extra.files...
Refreshing multilib.files...
Refreshing AUR...
Warning: stremio: ignoring package upgrade (4.4.165-1 => 4.4.168-1)
Nothing to do.
Transaction successfully finished.

Preparing...
Synchronizing package databases...
Cloning stremio build files...
Generating stremio information...
Checking stremio dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building stremio...
==> Making package: stremio 4.4.168-1 (ter 07 mai 2024 00:31:46)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating stremio-shell git repo...
  -> Updating libmpv git repo...
  -> Updating SingleApplication git repo...
  -> Updating razerchroma git repo...
  -> Found stremio-4.4.168-server.js
  -> Found stremio-4.4.168-stremio.asar
  -> Found 010-stremio-do-not-download-server-js.patch
==> Validating source files with sha256sums...
    stremio-shell ... NOT FOUND
    libmpv ... Skipped
    SingleApplication ... Skipped
    razerchroma ... Skipped
    stremio-4.4.168-server.js ... Passed
    stremio-4.4.168-stremio.asar ... Passed
    010-stremio-do-not-download-server-js.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
Failed to build stremio


Any suggestions on how to go through?
Thanks

The problem is right there.

Maybe try to clean build (or clean the build dir).

If all else fails - use makepkg (and updpkgsums?).

I presume it’s stremio 4.4.168-1 from the AUR that you’re trying to install. I noticed a comment that seems related, however their resolution is less than ideal. I’d suggest you contact the maintainer directly.

Further to this; a comment from the maintainer [dbermond]: “Sorry, but Manjaro is not supported. Please seek help in your distribution support channels.”

So, it would seem they are not being overly helpful, in this instance.

Edit:- It seems one of the sources listed doesn’t exist. - The AUR page lists Stremio-Shell v4.4.168 whereas the latest version available on GitHub is v4.4.107.

Cheers.

What version are you trying to update from? If it is a pre-4.4.168 version, then you might want to try building the stremio-beta package, which I just successfully built on my Stable system. The beta package is v4.4.168-0, not the v4.4.168-1 that failed to build for you. It has been flagged as out-of-date on the AUR though.

If you were trying to update from v4.4.168-0 to v4.4.168-1, then you can ignore what I have just written.

I’m trying to update from 4.4.165…

I guess it went trough using:

[jesuslinux@A9410 ~]$ yay -S --mflags --skipchecksums stremio

Don’t you see anything inherently wrong with skipping the validity check?

A better approach might be to find which file is failing, obtain its checksum value from the source, and update the PKGBUILD if everything seems in order.

I don’t know how to do that…

My point is that if whatever file is somehow damaged, and if that’s the reason for the validity check failing, the package might still continue to build by skipping the check, but might also cause you grief later.

This is just something for consideration.

In fairness, it might also be that the checksum simply hasn’t been updated in the PKGBUILD file and that the source is actually fine; in which case, see the the post from @cscs .

Cheers.

It seems to be working fine.
If it stops working I uninstall the AUR version and install the flatpak one.

It seems AUR is having some issues lately…

I don’t think the issue are caused by AUR as a source.

AUR should not be used by anyone on stable branch - using custom scripts from AUR assumes you are on Manjaro edge (unstable) branch.

There is a topic elaborating on the topic - search need to know about manjaro and aur

I usually recommend to build custom packages from the command line

sudo pacman-mirrors -aS unstable
git clone https://aur.archlinux.org/streamio
cd streamio

if there is issues with the checksum (that may happen if the author bumps the release but forget to update checksums) run

updpkgsums

continue with

makepkg -iscC

Works without issue for me when using makepkg.

Provided all the dependencies are there (installed from normal repo, nothing from AUR).

My procedure:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/stremio.tar.gz
(get the snapshot from the AUR website.)

unpack it in its own directory
cd into that directory
run updpkgsums
then run makepkg

successful build without errors of: stremio-4.4.168-1-x86_64.pkg.tar.zst
found in the same directory
makepkg -i would have installed it after successful build

I just installed it using yay. No errors/warnings/problems whatsoever. Are you sure you did a clean build? or delete the cache.

The package has been updated to generate checksums for the git tag supported by pacman 6.1.0. Either switch to the testing branch or skip the checksums for now.

I believe that is what I did…

Is it working?
I’m confused.
I choose to go with: it’s working for you now.
Good! :+1:

You believe you did what? :thinking:

What branch are you using?

pacman-mirrors -G

What version of pacman do you have installed?

pacman -Qi pacman
[jesuslinux@A9410 ~]$ pacman-mirrors -G
stable
[jesuslinux@A9410 ~]$ pacman -Qi pacman
Name            : pacman
Version         : 6.0.2-18
Description     : A library-based package manager with dependency support
Architecture    : x86_64
URL             : https://www.archlinux.org/pacman/
Licenses        : GPL-2.0-or-later
Groups          : None
Provides        : libalpm.so=13-64
Depends On      : bash  glibc  libarchive  curl  gpgme  pacman-mirrorlist  gettext  gawk  coreutils  gnupg  grep
Optional Deps   : perl-locale-gettext: translation support in makepkg-template
Required By     : archlinux-keyring  base  base-devel  libpamac  manjaro-keyring  mhwd  pacman-contrib  yay
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 4,73 MiB
Packager        : Mark Wagie <mark@manjaro.org>
Build Date      : sáb 10 fev 2024 15:51:23
Install Date    : sáb 24 fev 2024 21:19:32
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

It’s working fine just like before…

Now I’m even more confused
because to me

and the thread title
“Failed to update …”

look like contradictions.

I’ll leave this be.