此问题的动机是,我不再能够在Red Hat机器上创建带有debootstrap功能的chroot。大约一年了,很多红帽更新我才能够。
sudo debootstrap --arch amd64 trusty trusty http://archive.ubuntu.com/ubuntu
sudo chroot trusty
结果:
groups: cannot find name for group ID 0
groups: cannot find name for group ID 1027
I have no name!@wsdev66:/#
这是意外行为,以及无法正常运行的chroot。预期输出为root @ wsdev66:/#。 Google让我相信运行/ debootstrap / debootstrap --second-stage可以解决此问题,但是那里不存在具有该名称的脚本或二进制文件。有一个名为debootstrap.log的日志文件,其内容为:
gzip: /usr/share/debootstrap/devices.tar.gz: Permission denied
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
它似乎是失败的chroot的来源。
ls表示对所有人的读取权限:
ll /usr/share/debootstrap/devices.tar.gz
-rw-r--r--. 1 root root 3518 Apr 6 09:33 /usr/share/debootstrap/devices.tar.gz
根据上一个命令的结果判断,即使不存在任何ACL,也要检查它们:
getfacl /usr/share/debootstrap/devices.tar.gz
getfacl: Removing leading '/' from absolute path names
# file: usr/share/debootstrap/devices.tar.gz
# owner: root
# group: root
user::rw-
group::r--
other::r--
所有父目录均由root:root拥有,并具有权限:drwxr-xr-x。
cp /usr/share/debootstrap/devices.tar.gz ~
cp: cannot open `/usr/share/debootstrap/devices.tar.gz' for reading: Permission denied
我认为这是不正确/意外的。 为什么我不能复制此文件或成功创建chroot?
系统信息:
Linux 主机名 2.6.32-431.11.2.el6.x86_64#1 SMP星期一3月3日13:32:45 EST 2014 x86_64 x86_64 x86_64 GNU / Linux []
LSB版本::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing- 4.0-noarch
发行者ID:RedHatEnterpriseWorkstation
描述:Red Hat Enterprise Linux Workstation 6.5版(圣地亚哥)
发布:6.5
代号:圣地亚哥
mount:
/ dev / mapper / vg_ngdw-lv_root on /类型ext4(rw)
这个问题的动机是,我不再能够在Red Hat机器上使用debootstrap创建可运行的chroot。大约一年了,我能够进行许多Red Hat更新。 sudo ...
RHEL 6.5尚未正式支持适用于Linux 1.9的McAfee VSE。
我能够通过停止所有McAfee服务来解决此问题: