Stuck on "Building electron22" whilst updating

I’m currently installing updates, and for about the last half hour in the package manager it’s been on “Building electron22” and doesn’t seem to be progressing?

The last two command line items when I click the arrow show:

  -> Cloning chromium-mirror git repo...
Cloning into bare repository '/var/tmp/pamac-build-js/electron22/chromium-mirror'...

Any advice how to get through this without force restarting and potentially “bricking” Manjaro like I did a previous time? :sweat_smile:

Do not include custom packages when you sync your system.

sudo pacman -Syu

Only after that you can

pamac update --aur
1 Like

A little more context would be good.
What package are you trying to build?

Check whether you still need it.
Check whether a better alternative exists - preferrably in the normal repos, as opposed to software in the AUR.

electron from AUR probably can be ditched in favor of the one from the repos

@Nachlese for the package it says

Building electron22...
==> Making package: electron22 22.3.27-6

I’m not sure what it is. I usually just run the update manager and let the system update whatever says needs updating. I’m not even sure what/if I need/ that electron package.

@linux-aarhus should I cancel the updates, then run those commands?

Edit: ok it stopped updating itself, and it said

Failed to build electron22.

yes, you should do that.
He would say the same - he already did. :sunglasses:

and then, on the second step, go back to what I said about more context and the rest
because that

was not much in terms of context

electron22 seems an “old” package, currently e31 seems the last one !
You should search for the package that needs it :
pactree -r electron22

and (probably remove e22 and the packages that need it then) install electron metapackage that should install e31 (both in extra)

1 Like

In addition to everything said so far - you did not provide context, why do you need chrome-mirrors for example, you did not provide logs, not to make updates and aur rebuild at the same time, that E22 is heavily outdated, etc…

i will add 3 things

  • you shouldn’t use aur on stable
  • you shouldn’t use aur at all if you do not understand how it works (i moved your topic)
  • electron can pull gigabytes and take hours to build from source so no sensible person does that, just use the binary

I still have Electron22 for one specific app I use.

Building the Electron package from AUR takes a long time, and requires a lot of overhead – as much as 20GB, if I recall – some users were caught out by this several months ago.

The workaround (then) was to completely remove Electron 22…

pamac remove electron22

…and then install electron22-bin (the binary package) from AUR.

pamac build electron22-bin

As it happens, the package was updated only a few days ago, and for my use case the binary (-bin) package installed without issue.

I hope this helps. Cheers.


Please remember to update any other packages that might already use older versions of Electron – these should ideally be rebuilt at each update.

1 Like

Thanks for the replies all.
I simply removed electron22 now. Not sure how/when I got that but I’m not using it for anything.

@Teo ok thanks, embarrassingly I wasn’t aware of how the AUR worked exactly. I can see I’ve got around 20 packages, most of them I know what they are that I installed but a few I can’t recall. So I’ll likely remove them and be mindful with the AUR in future.

FYI, since I posted that, <=29 are now EOL.

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