/opt/flutter/bin/internal/shared.sh: line 229: /opt/flutter/bin/cache/dart-sdk/bin/dart: No such file or directory
i'm peacefully using flutter! but after few days of break this error comes up!
| Git Clone URL: | https://aur.archlinux.org/flutter.git (read-only, click to copy) |
|---|---|
| Package Base: | flutter |
| Description: | Flutter SDK component - web engine |
| Upstream URL: | https://flutter.dev |
| Keywords: | android fuchsia ios mobile sdk |
| Licenses: | custom, BSD, CCPL |
| Groups: | flutter |
| Conflicts: | flutter-engine-web |
| Provides: | flutter-engine-web |
| Submitter: | flipflop97 |
| Maintainer: | WithTheBraid |
| Last Packager: | WithTheBraid |
| Votes: | 151 |
| Popularity: | 0.021841 |
| First Submitted: | 2017-06-05 21:03 (UTC) |
| Last Updated: | 2026-02-22 06:08 (UTC) |
« First ‹ Previous 1 .. 16 17 18 19 20 21 22 23 24 25 26 .. 28 Next › Last »
/opt/flutter/bin/internal/shared.sh: line 229: /opt/flutter/bin/cache/dart-sdk/bin/dart: No such file or directory
i'm peacefully using flutter! but after few days of break this error comes up!
they put Dart in the Flutter archive for some reason
Yes, the reason is that breaking changes to the Dart SDK are landed with the corresponding fixes to the Flutter SDK. Also, you cannot "remove it" without significantly altering the Flutter tooling. The Flutter CLI tool ensures that the pinned version of the Dart SDK is present in its binary cache.
If you want to use a version of Flutter without depending on Flutter's pinned version of the Dart SDK, you would need to maintain a separate fork of the Flutter SDK, that tracks the breaking changes of the Arch Dart package, and has an updated Flutter tool that doesn't assume it controls the Dart installation.
Yes it blows my mind, they put Dart in the Flutter archive for some reason. I think we can safely remove it from there and use the system Dart
Cannot we use dart package instead of downloaded dark sdk from flutter?
@Rodancoci One should note that a restart of the computer is needed to make the change take effect.
@Rodancoci I compile my packages in a clean chroot and those packages are not needed to be specified in the PKGBUILD. Glu is a dependency of this package and it requires ninja and clang (check). It's strange that you didn't have those packages already installed.
Figured it out. clang and ninja should be added as makedeps.
The proper way to avoid the /opt/flutter/bin/cache permission error is to add the current user to the flutterusers group created by the flutter package. The flutter directory is owned by the root user and the flutterusers group.
usermod -aG flutterusers <user>
I'm getting a new error now, though:
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Building Linux application...
Unable to generate build files
I got permission errors when running flutter:
$ flutter
mkdir: cannot create directory '/opt/flutter/bin/cache': Permission denied
I "fixed" it by running sudo chmod a+rw -R /opt/flutter
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.