在mnt的数据目录构建cuttlefish镜像导致失败的问题

举报
Amrf 发表于 2023/02/28 10:33:08 2023/02/28
【摘要】 运行docker/build.sh --rebuild_debs_verbose的报错日志如下:dpkg-preconfigure: unable to re-open stdin:usage: unpack_boot_image.py [-h] [-dest DEST] [-boot_img BOOT_IMG]unpack_boot_image.py: error: unrecognize...

运行docker/build.sh --rebuild_debs_verbose的报错日志如下:

dpkg-preconfigure: unable to re-open stdin:
usage: unpack_boot_image.py [-h] [-dest DEST] [-boot_img BOOT_IMG]
unpack_boot_image.py: error: unrecognized arguments: /usr/lib/cuttlefish-common/bin/
/home/vsoc-01/host/android-cuttlefish/base/debian/cuttlefish-base.install: 4: host/packages/cuttlefish-base/etc: Permission denied
dh_install: warning: debian/cuttlefish-base.install is marked executable but does not appear to an executable config.
dh_install: warning:
dh_install: warning: If debian/cuttlefish-base.install is intended to be an executable config file, please ensure it can
dh_install: warning: be run as a stand-alone script/program (e.g. "./debian/cuttlefish-base.install")
dh_install: warning: Otherwise, please remove the executable bit from the file (e.g. chmod -x "debian/cuttlefish-base.install")
dh_install: warning:
dh_install: warning: Please see "Executable debhelper config files" in debhelper(7) for more information.
dh_install: warning:
dh_install: error: debian/cuttlefish-base.install (executable config) returned exit code 126
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


/home/vsoc-01/host/android-cuttlefish/frontend/debian/cuttlefish-orchestration.install: 1: host/packages/cuttlefish-orchestration/etc:           Permission denied
2023/02/27 12:13:43 Error with device endpoint: Failed to create unix socket: listen unixpacket /run/cuttlefish/operator: bind: no such           file or directory
/home/vsoc-01/host/android-cuttlefish/frontend/debian/cuttlefish-orchestration.install: 3: src/operator/webui/dist/static: Permission d          enied
/home/vsoc-01/host/android-cuttlefish/frontend/debian/cuttlefish-orchestration.install: 4: src/operator/intercept: Permission denied
dh_install: warning: debian/cuttlefish-orchestration.install is marked executable but does not appear to an executable config.
dh_install: warning:
dh_install: warning: If debian/cuttlefish-orchestration.install is intended to be an executable config file, please ensure it can
dh_install: warning: be run as a stand-alone script/program (e.g. "./debian/cuttlefish-orchestration.install")
dh_install: warning: Otherwise, please remove the executable bit from the file (e.g. chmod -x "debian/cuttlefish-orchestration.install"          )
dh_install: warning:
dh_install: warning: Please see "Executable debhelper config files" in debhelper(7) for more information.
dh_install: warning:
dh_install: error: debian/cuttlefish-orchestration.install (executable config) returned exit code 126
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
cp: cannot stat '/home/vsoc-01/host/android-cuttlefish/*.deb': No such file or directory
fail to exec/attach to the container, meow_yumi, running in background
Failed to build .deb host packages, rerun with --rebuild_debs_verbose for details

查看目录下的文件权限后,发现所有文件的权限组都是root并且chown修改无效

在非mnt目录下进行同样的操作之后,错误消除可以正常完成镜像编译;

--------------------------------------------------------------

后续:

参考下面的帖子将ntfs格式分区转成ext4后问题同样得到解决

https://blog.csdn.net/yao201606/article/details/84934832

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。