Skip to content

Error: Unable to pub upgrade flutter tool. Retrying in five seconds... MacOS 10.12.6 #15230

Closed

Description

@harry329

When I am doing flutter doctor -v, I am getting the below output,

flutter doctor -v
Building flutter tool...
Unknown command `/Users/harry/Flutter/flutter/bin/cache/dart-sdk/bin/pub'. Please specify one command of: add-blob, alias-env, attach-disk, blobs, cancel-task, clean-up, cloud-check, cloud-config, config, configs, cpi-config, create-env, create-release, delete-config, delete-deployment, delete-disk, delete-env, delete-release, delete-snapshot, delete-snapshots, delete-stemcell, delete-vm, deploy, deployment, deployments, disks, environment, environments, errands, event, events, export-release, finalize-release, generate-job, generate-package, help, ignore, init-release, inspect-release, instances, interpolate, locks, log-in, log-out, logs, manifest, orphan-disk, recreate, releases, remove-blob, repack-stemcell, reset-release, restart, run-errand, runtime-config, scp, snapshots, ssh, start, stemcells, stop, sync-blobs, take-snapshot, task, tasks, unignore, update-cloud-config, update-config, update-cpi-config, update-resurrection, update-runtime-config, upload-blobs, upload-release, upload-stemcell, variables, vendor-package or vms

Exit code 1
Error: Unable to pub upgrade flutter tool. Retrying in five seconds...

I tried using flutter both from beta and master branch

Activity

  1. cbracken commented on Mar 8, 2018

    @cbracken
    Member

    @harry329 can you paste the output of the following command?

    ls -al /Users/harry/Flutter/flutter/bin/cache/dart-sdk
    

    I'm wondering if something went wrong with the SDK download/unarchive. The following can be used to trigger a re-download, and may help:

    rm -rf /Users/harry/Flutter/flutter/bin/cache
    flutter doctor
    
  2. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    a: first hourThe first hour of using Flutter
    on Mar 8, 2018
  3. cbracken commented on Mar 8, 2018

    @cbracken
    Member

    One more question -- are you running BOSH? A search for add-blob, alias-env, attach-disk turned up the above page. I'm not familiar with it -- is it a shell of some sort?

    Once we've got an idea of what it is, we should try to avoid triggering whatever interaction with it we currently have in flutter_tools if possible. Does running without BOSH work around the issue for you?

  4. harry329 commented on Mar 20, 2018

    @harry329
    Author

    removing bosh worked for me, thanks :)

  5. github-actions commented on Sep 3, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: first hourThe first hour of using FluttertoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions