`KeyError: ('cmdline-tools','latest')` on `sdkmanager --install "cmdline-tools;latest"`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sdkmanager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
```
$ sdkmanager --install "cmdline-
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
method(
File "/usr/lib/
url = packages[key]
KeyError: ('cmdline-tools', 'latest')
```
The reason why I tried running above command is that when [installing `flutter`](https:/
```
...
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-
See https:/
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https:/
...
```
Using `sdkmanager` from [this source](https:/
Already noticed on Stack Overflow:
- https:/
- https:/
```
$ lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
```
```
$ apt-cache policy sdkmanager
sdkmanager:
Installed: 0.5.1-1
Candidate: 0.5.1-1
Version table:
*** 0.5.1-1 500
500 http://
100 /var/lib/
```
This works for me in v0.6.4:
~ $ sdkmanager --install "cmdline- tools;latest" /dl.google. com/android/ repository/ commandlinetool s-linux- 11391160_ latest. zip into /home/hans/ .cache/ sdkmanager/ commandlinetool s-linux- 11391160_ latest. zip r-olwn0xvm sdk/cmdline- tools/latest
Downloading https:/
Unzipping to /tmp/.sdkmanage
Installing into /tmp/android-
~ $
You can get recent versions from the PPA: /launchpad. net/~fdroid/ +archive/ ubuntu/ fdroidserver
https:/