Skip to content

update_dart_sdk.ps1 not digitally signed on Windows #133849

@a7md0

Description

@a7md0

Is there an existing issue for this?

Steps to reproduce

  1. Change the script execution policy using Group Policy (requires Windows Pro)

image

  1. Execute any flutter commands (e.g., flutter doctor)

The previous issues were closed due to inactivity:

  1. update_dart_sdk.ps1 not digitally signed #50934
  2. update_dart_sdk.ps1 is not digitally signed on Windows #39692

Expected results

The PowerShell script should be signed to work on Windows machines with policies restricting executing signed scripts only

Actual results

The script flutter\bin\internal\update_dart_sdk.ps1 is not digitally signed. Upon executing Flutter commands like flutter doctor or flutter upgrade the error would show

Code sample

Code sample
flutter doctor

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
& : File C:\flutter\bin\internal\update_dart_sdk.ps1 cannot be loaded. The file
C:\flutter\bin\internal\update_dart_sdk.ps1 is not digitally signed. You cannot run this script on the
current system. For more information about running scripts and setting execution policy, see about_Execution_Policies
at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:81
+ ... sdk.ps1'; & 'C:\flutter\bin\internal\update_dart_sdk.ps1' ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

Flutter Doctor output

Doctor output
> flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine b20183e04096094bcc37d9cde2a4b96f5cc684cf...
& : File C:\flutter\bin\internal\update_dart_sdk.ps1 cannot be loaded. The file
C:\flutter\bin\internal\update_dart_sdk.ps1 is not digitally signed. You cannot run this script on the
current system. For more information about running scripts and setting execution policy, see about_Execution_Policies
at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:81
+ ... sdk.ps1'; & 'C:\flutter\bin\internal\update_dart_sdk.ps1' ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
Building flutter tool...
Running pub upgrade...
Resolving dependencies... (3.0s)
Got dependencies.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.2, on Microsoft Windows [Version 10.0.22621.2134], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.2)
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1)
[✓] VS Code (version 1.81.1)
[✓] Connected device (1 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-windowsBuilding on or for Windows specificallyt: flutter doctorProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy