I'm getting the following error when I try to install the package, any idea on maybe why?
==> Starting build()...
Downloading Linux x64 Dart SDK from Flutter engine 3f3e560236539b7e2702f5ac790b2a4691b32d49...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 208M 100 208M 0 0 25.0M 0 0:00:08 0:00:08 --:--:-- 26.0M
Building flutter tool...
Could not find the pub cache. No `HOME` environment variable exists.
Consider setting the `PUB_CACHE` variable manually.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
I set the variable $HOME and $PUB_CACHE explicitly and when I run echo I get the right directories. I also tried clearing pub_cache as well as the cache where the downloaded files are.
Update: Fixed the issue by clearing the AUR cache and running flutter pub cache clean.
Pinned Comments
WithTheBraid commented on 2025-11-11 10:15 (UTC)
This package is deprecated in favor of
aur/flutterwhich now contains all required artifacts on its own. This PKGBUILD will be kept as is in order to ensure seamless builds of old Flutter version in future.