Dropsource / monarch

Monarch is a tool for building Flutter widgets in isolation. It makes it easy to build, test and debug complex UIs.
https://monarchapp.io
MIT License
438 stars 23 forks source link

monarch upgrade issue on Ubuntu #103

Closed fertrig closed 1 year ago

fertrig commented 1 year ago

monarch upgrade fails on Ubuntu when user uses snap curl.

$ monarch upgrade
...
Downloading Monarch installation bundle version 2.1.4-pre.5

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to open the file monarch_linux_2.1.4-pre.5.tar.xz: Permission 
Warning: denied
  0 2647k    0 16030    0     0  63464      0  0:00:42 --:--:--  0:00:42 63611
curl: (23) Failure writing output to destination

This is a known issue with snap curl. The solution is to use apt curl instead.

$ sudo snap remove curl
$ sudo apt install curl

Monarch should detect the error and inform the user of the solution.

fertrig commented 1 year ago

Monarch will detect the error and print this message to the user:

You are using _snap_ curl which has known issues. Please use _apt_ curl instead.
See https://askubuntu.com/a/1387286

Alternatively, you can re-install Monarch: https://monarchapp.io/docs/install