leoafarias / fvm

Flutter Version Management: A simple CLI to manage Flutter SDK versions.
https://fvm.app
MIT License
4.73k stars 233 forks source link

[BUG] Failed to create symlink. #796

Open khoirul-mustofa opened 2 weeks ago

khoirul-mustofa commented 2 weeks ago

Issue: Permission Denied on Symlink Creation During FVM Installation

Description: While attempting to install FVM on my Linux system using the provided installation script, I encountered a permission error when the script tried to create a symbolic link in /usr/local/bin. The error occurred despite using sudo with the curl command. It seems that the symbolic link creation step inside the bash script requires superuser permissions, but the script itself isn't being executed with the necessary privileges.

System Information:

OS: Pop!_OS (based on Ubuntu) Architecture: x64 FVM Version: 3.2.1 (detected by the installer)

Steps to Reproduce:

  1. Run the following command on a Linux system (Pop!_OS in this case):
    
    sudo curl -fsSL https://fvm.app/install.sh | bash

Workaround: Running the following command resolves the issue:


curl -fsSL https://fvm.app/install.sh | sudo bash
zakblacki commented 2 weeks ago

Same issue

steffenkleinle commented 1 day ago

We experience the same issue when attempting to install fvm in the CI. Thanks @jeevithakannan2 for the quick PR, it fixes the issue for us. Any chance we can get this merged/released?