debian 怎么升级 adb 版本?
今天安装了一个最新的 debian12
_,met$$$$$gg. pon@wechat-console
,g$$$$$$$$$$$$$$$P. ------------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 12 (bookworm) x86_64
,$$P' `$$$. Host: MS-7917 1.0
',$$P ,ggs. `$$b: Kernel: 6.1.0-17-amd64
`d$$' ,$P"' . $$$ Uptime: 17 hours, 21 mins
$$P d$' , $$P Packages: 2414 (dpkg)
$$: $$. - ,d$$' Shell: zsh 5.9
$$; Y$b._ _,d$P' Terminal: node
Y$$. `.`"Y$$$$P"' CPU: Intel i7-4790K (8) @ 4.400GHz
`$$b "-.__ GPU: NVIDIA GeForce GTX 970
`Y$$ Memory: 2235MiB / 15942MiB
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
`"""
然后安装 adb
sudo apt-get install android-tools-adb
但是上面的 adb 版本好古老啊
╰─➤ adb --version 130 ↵
Android Debug Bridge version 1.0.41
Version 29.0.6-debian
Installed as /usr/lib/android-sdk/platform-tools/adb
这么老的 adb
不支持 adb pair
命令
同样是 brew 在 mac 上安装 adb
brew install android-platform-tools
版本就很新
╰─➤ adb --version 130 ↵
Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Installed as /opt/homebrew/bin/adb
Running on Darwin 23.2.0 (arm64)
╰─➤ sudo apt update && sudo apt upgrade -y
[sudo] pon 的密码:
命中:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
获取:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease [52.1 kB]
获取:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease [56.5 kB]
获取:4 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB]
获取:5 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en.diff/Index [51.0 kB]
获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [21.4 kB]
获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [21.4 kB]
获取:7 https://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
获取:8 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [18.6 kB]
获取:8 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [18.6 kB]
获取:9 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
获取:10 https://security.debian.org/debian-security bookworm-security/main amd64 Packages [134 kB]
已下载 488 kB,耗时 4秒 (122 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
所有软件包均为最新。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
正在计算更新... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
已经升级过了,还是老的
╰─➤ adb --version
Android Debug Bridge version 1.0.41
Version 29.0.6-debian
Installed as /usr/lib/android-sdk/platform-tools/adb
我需要 adb > 30.0.x
看来不能使用 apt 安装了,需要自己外部安装,写谁相关经验、相关资料可以参考
在这里下载最新的 adb 版本
https://developer.android.com/tools/releases/platform-tools?h...
下载后是一个 zip 文件,直接解压,然后一级目录下面就是最新的 adb 命令