pm list packages /bin/sh: pm: not found
时间: 2023-08-10 07:09:40 浏览: 464
这个错误提示表明您运行的命令 `/bin/sh: pm: not found` 中的 `pm` 命令未找到。
`pm` 命令是 Android 操作系统中的一个包管理器,用于管理安装在设备上的应用程序。如果您在计算机的命令行中运行 `pm` 命令,这个命令并不会被识别。
如果您想要列出安装在 Android 设备上的应用程序列表,可以尝试以下命令:
```
adb shell 'pm list packages'
```
这个命令会通过 `adb` 工具连接到设备并在设备的 shell 环境中运行 `pm list packages` 命令,从而列出设备上的应用程序列表。
如果您还有其他问题,请随时与我联系。
相关问题
/bin/sh: mysql_config: command not found /bin/sh: mariadb_config: command not found /bin/sh: mysql_config: command not found
These errors indicate that the system is unable to locate the "mysql_config" or "mariadb_config" command. This could be due to a missing package or an incorrect installation.
To resolve this issue, you can try the following steps:
1. Install the MySQL or MariaDB development package by running the following command:
For MySQL:
```
sudo apt-get install libmysqlclient-dev
```
For MariaDB:
```
sudo apt-get install libmariadbclient-dev
```
2. If the above command does not work, you can try locating the "mysql_config" or "mariadb_config" command manually by running the following command:
```
sudo find / -name mysql_config
```
If the command is found, update the PATH environment variable to include the directory where the command is located. For example, if the command is located in "/usr/local/mysql/bin", you can add the following line to your .bashrc or .bash_profile file:
```
export PATH=$PATH:/usr/local/mysql/bin
```
3. If the above steps do not work, you may need to reinstall MySQL or MariaDB and ensure that the required development packages are installed.
行 10482: prebuilts/clang/host/linux-x86/clang-r416183b1/bin/llvm-strip: error: 'packages/modules/adb/enable_overlayfs.sh': The file was not recognized as a valid object file
这是一个错误信息,看起来是在编译过程中遇到了问题。具体原因可能是因为在编译 `packages/modules/adb/enable_overlayfs.sh` 这个文件时出现了问题,导致无法被识别为有效的对象文件。建议检查一下编译过程中是否有其他的错误提示,或者尝试在编译之前更新相关的依赖库和工具链。
阅读全文