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.
离线
whycan@ubuntu:/$
whycan@ubuntu:/$ sudo apt-get install mkbooting -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mkbooting
whycan@ubuntu:/$
whycan@ubuntu:/$
whycan@ubuntu:/$
whycan@ubuntu:/$ sudo apt-get install android-tools-mkbootimg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package android-tools-mkbootimg
whycan@ubuntu:/$
whycan@ubuntu:/$
whycan@ubuntu:/$ sudo apt-get update -y
Hit:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease
Reading package lists... Done
whycan@ubuntu:/$
whycan@ubuntu:/$ sudo apt-get install android-tools-mkbootimg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package android-tools-mkbootimg
whycan@ubuntu:/$
估计 ubuntu16.04 没这玩意。
https://linux-packages.com/ubuntu-xenial-xerus/all-packages?q=android-tools-mkbootimg
https://linux-packages.com/ubuntu-bionic-beaver/all-packages?q=android-tools-mkbootimg
离线
后面解决了,我直接下载了.deb文件然后安装的
离线
我找了下,好像即使是.deb的,它也标明要求的系统是18.04的额,你找的有提到这个吗?
离线