Ubuntu16.04
方法一:失败
$ sudo apt install mkbootimg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mkbootimg
方法二:失败
$ sudo apt install -y android-tools-mkbootimg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package android-tools-mkbootimg
方法三:失败
$ sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree
Reading state information... Done
aptitude is already the newest version (0.7.4-2ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
$ sudo aptitude install android-tools-mkbootimg
Couldn't find any package whose name or description matched "android-tools-mkbootimg"
Couldn't find any package whose name or description matched "android-tools-mkbootimg"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
方法四(Ubuntu换源):失败
$ sudo vim /etc/apt/sources.list
[sudo] password for liefyuan:
$ sudo apt install -y android-tools-mkbootimg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package android-tools-mkbootimg
$ sudo aptitude install mkbootimg
Couldn't find any package whose name or description matched "mkbootimg"
Couldn't find any package whose name or description matched "mkbootimg"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
离线
后面解决了,我直接下载了.deb文件然后安装的
离线