Getting the following error while building the flutter snap, getting this locally and while building on the remote servers
Failed to install or refresh a snap: 'flutter' does not exist or is not available on the desired channel 'latest/stable'. Use `snap info flutter` to get a list of channels the snap is available on.
Build failed
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 230, in run
self.pull()
File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 196, in pull
env=env)
File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 100, in run_build_command
return self.backend.run(args, env=full_env, **kwargs)
File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 537, in run
subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'lp-bionic-armhf', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_LOCAL_SOURCES=1', '--env', 'SNAPCRAFT_SETUP_CORE=1', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build-request-id": "lp-65007640", "build-request-timestamp": "2021-07-23T10:02:48Z", "build_url": "https://launchpad.net/~build.snapcraft.io/+snap/a49962441bf969e139d2944fe1e91c08/+build/1473478"}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/cybear-jinni && linux32 snapcraft pull']' returned non-zero exit status 2.
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=bionic --arch=armhf SNAPBUILD-1473478
Scanning for processes to kill in build SNAPBUILD-1473478
snapcraft.yaml content
name: cybear-jinni
version: '1.0'
summary: App to control your smart device through CyBear Jinni Hub
description: Single app to control smart device from different form factor through CyBear Jinni Hub
confinement: devmode
base: core18
parts:
cybear-jinni:
plugin: flutter
source: https://github.com/CyBear-Jinni/CBJ_App.git
flutter-target: lib/main.dart
override-build: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
snapcraftctl build
apps:
cybear-jinni:
command: cybear_jinni
extensions: [flutter-dev]