root@279935169f72:/etc# sudo yum update bash: sudo: command not found root@279935169f72:/etc#
时间: 2024-02-01 11:04:08 浏览: 39
It seems like the `sudo` command is not installed on your Docker container. You can try to install it using the following command:
```
apt-get update
apt-get install sudo
```
After that, you can use the `sudo` command to run commands with root privileges.
相关问题
file:///storage/emulated/0/Android/data/com.Laowaipanda/cache/video-cache/04f72df2524c46.mp4转换长File
您可以使用Python的`Path`模块来转换长文件路径。下面是一个示例代码:
```python
from pathlib import Path
# 原始文件路径
original_path = "file:///storage/emulated/0/Android/data/com.Laowaipanda/cache/video-cache/04f72df2524c46.mp4"
# 转换为长文件路径
long_file_path = Path(original_path).resolve()
# 打印结果
print("长文件路径:", long_file_path)
```
这段代码将原始文件路径转换为长文件路径,并打印出结果。请注意,您需要确保在使用`Path`模块之前导入它。
Failed to resolve: com.android.support:camera2:1.0.0 <a href="add.google.maven.repository">Add Google Maven repository and sync project</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a><br><a href="Unresolved dependencies">Show Details</a> Affected Modules: <a href="openFile:D:/Android_aitalk_exp1144_21707f72/sample/MApplication2/app/build.gradle">app</a>
这个错误是因为您的项目中使用了一个无法解析的依赖项 com.android.support:camera2:1.0.0。这可能是因为该依赖项不存在或无法访问。
要解决此问题,您可以尝试以下几个步骤:
1. 确保您的项目中已经添加了 Google Maven 仓库。您可以在项目的 build.gradle 文件中添加以下代码:
```groovy
allprojects {
repositories {
google()
// 其他仓库
}
}
```
2. 确保您的项目中的 build.gradle 文件中正确引用了 camera2 依赖项。请确保您的 dependencies 部分类似于以下代码:
```groovy
dependencies {
implementation 'com.android.support:camera2:1.0.0'
// 其他依赖项
}
```
3. 如果上述步骤都没有解决问题,您可以尝试使用更高版本的 camera2 依赖项。请注意,您可能需要查找合适的版本号。
希望这些步骤能够帮助您解决问题。如果问题仍然存在,请提供更多详细信息,以便我们更好地帮助您解决问题。