cros_sdk error

669 views
Skip to first unread message

Yitian Li

unread,
Feb 23, 2016, 10:15:14 PM2/23/16
to Chromium OS dev
I create the chroot by cros_sdk
then comes an error
yitian@APTX-4869:OS$ cros_sdk 
22:00:23: NOTICE: Downloading SDK tarball...
22:00:23: NOTICE: Creating chroot. This may take a few minutes...

INFO    cros_sdk:make_chroot: Unpacking stage3...
INFO    cros_sdk:make_chroot: Set timezone...
INFO    cros_sdk:make_chroot: Adding user/group...

INFO    cros_sdk:make_chroot: Setting up mounts...
INFO    cros_sdk:make_chroot: Running init_setup()...
INFO    cros_sdk:make_chroot: Setting up hosts/resolv...
INFO    cros_sdk:make_chroot: Setting up /etc/make.*...
INFO    cros_sdk:make_chroot: Running post-inst configuration hacks
>>> Regenerating /etc/ld.so.cache...
lrwxrwxrwx 1 yitian chronos  184 Feb 23 22:02 /etc/make.conf -> /mnt/host/source/src/third_party/chromiumos-overlay/chromeos/config/make.conf.amd64-host
lrwxrwxrwx 1 yitian chronos  142 Feb 23 22:02 /etc/portage/make.profile -> /usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0/sdk

/usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0:
total 6
drwxrwxrwx 1 yitian chronos 4096 Feb 23 00:57 chromeos
-rwxrwxrwx 1 yitian chronos    2 Feb 23 00:57 eapi
-rwxrwxrwx 1 yitian chronos  423 Feb 23 00:57 make.defaults
drwxrwxrwx 1 yitian chronos    0 Feb 23 00:57 no-multilib
-rwxrwxrwx 1 yitian chronos   29 Feb 23 00:57 parent
drwxrwxrwx 1 yitian chronos    0 Feb 23 00:57 sdk
INFO    cros_sdk:make_chroot: Updating portage

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)


>>> Jobs: 0 of 0 complete                          Load avg: 1.73, 1.16, 0.62
INFO    cros_sdk:make_chroot: Updating python-2.x
>>> Jobs: 0 of 0 complete                          Load avg: 1.67, 1.15, 0.62
INFO    cros_sdk:make_chroot: Updating host toolchain
Determining required toolchain updates...
Updating packages:
['sys-devel/binutils', 'sys-kernel/linux-headers', 'sys-devel/gcc']
22:03:37: INFO: RunCommand: /mnt/host/source/chromite/bin/parallel_emerge --oneshot --update --getbinpkg --usepkgonly sys-devel/binutils sys-kernel/linux-headers sys-devel/gcc
22:03:41: INFO: RunCommand: /media/yitian/Software/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/x86-generic/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmpe4HVJg.tmp
22:03:46: INFO: RunCommand: /media/yitian/Software/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/amd64-generic/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmpzlu7SB.tmp
22:03:49: INFO: RunCommand: /media/yitian/Software/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/arm-generic/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmpIADPJ0.tmp
22:03:54: INFO: RunCommand: /media/yitian/Software/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/panther_embedded_minimal/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmplzVWK_.tmp
22:03:57: INFO: RunCommand: /media/yitian/Software/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/gizmo/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmptXMS46.tmp
22:04:01: INFO: RunCommand: /media/yitian/Software/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/amd64-host/chroot-2016.02.17.114951/packages/Packages /tmp/tmpJvCPft.tmp
Starting fast-emerge.
 Building package sys-devel/binutils sys-kernel/linux-headers sys-devel/gcc on root
Calculating deps...
Deps calculated in 0m2.1s
Done
Nothing to clean!
INFO    cros_sdk:make_chroot: Running emerge curl sudo ...

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.
21:51:12: ERROR: chroot cannot be in a nosuid mount

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.
Starting fast-emerge.
 Building package pbzip2 dev-libs/openssl net-misc/curl sudo on root
Calculating deps...
Deps calculated in 0m2.4s

Total: 0 packages, Size of downloads: 0 KiB
Done
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib64/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
Running ['/media/yitian/Software/OS/src/scripts/sdk_lib/make_chroot.sh', '--stage3_path', '/media/yitian/Software/OS/.cache/sdks/cros-sdk-2016.02.17.114951.tar.xz', '--chroot', '/media/yitian/Software/OS/chroot', '--cache_dir', '/media/yitian/Software/OS/.cache'] failed!

Help!
Thanks a lot

Mike Frysinger

unread,
Feb 23, 2016, 10:22:06 PM2/23/16
to Yitian Li, Chromium OS dev
On Tue, Feb 23, 2016 at 10:15 PM, Yitian Li <yitian...@gmail.com> wrote:
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib64/sudo/sudoers.so must be owned by uid 0

make sure you aren't running cros_sdk as root, and you're trying to run it on a proper linux filesystem (like ext4) rather than something like ntfs.
-mike

Yitian Li

unread,
Feb 24, 2016, 3:00:31 PM2/24/16
to Chromium OS dev, yitian...@gmail.com
yitian@APTX-4869:OS$ cros_sdk 
14:40:34: NOTICE: Downloading SDK tarball...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1292M  100 1292M    0     0  8530k      0  0:02:35  0:02:35 --:--:-- 9533k
14:43:10: NOTICE: Creating chroot. This may take a few minutes...

INFO    cros_sdk:make_chroot: Unpacking stage3...
INFO    cros_sdk:make_chroot: Set timezone...
INFO    cros_sdk:make_chroot: Adding user/group...

INFO    cros_sdk:make_chroot: Setting up mounts...
INFO    cros_sdk:make_chroot: Running init_setup()...
INFO    cros_sdk:make_chroot: Setting up hosts/resolv...
INFO    cros_sdk:make_chroot: Setting up /etc/make.*...
INFO    cros_sdk:make_chroot: Running post-inst configuration hacks
>>> Regenerating /etc/ld.so.cache...
lrwxrwxrwx 1 root   root      88 Feb 24 14:44 /etc/make.conf -> /mnt/host/source/src/third_party/chromiumos-overlay/chromeos/config/make.conf.amd64-host
lrwxrwxrwx 1 root   root      67 Feb 24 14:44 /etc/portage/make.profile -> /usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0/sdk

/usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0:
total 24
drwxrwxr-x 3 yitian chronos 4096 Feb 24 14:16 chromeos
-rw-rw-r-- 1 yitian chronos    2 Feb 24 14:16 eapi
-rw-rw-r-- 1 yitian chronos  423 Feb 24 14:16 make.defaults
drwxrwxr-x 2 yitian chronos 4096 Feb 24 14:16 no-multilib
-rw-rw-r-- 1 yitian chronos   29 Feb 24 14:16 parent
drwxrwxr-x 2 yitian chronos 4096 Feb 24 14:16 sdk
INFO    cros_sdk:make_chroot: Updating portage

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)


>>> Jobs: 0 of 0 complete                           Load avg: 4.64, 3.63, 3.43
INFO    cros_sdk:make_chroot: Updating python-2.x
>>> Jobs: 0 of 0 complete                           Load avg: 4.51, 3.62, 3.42
INFO    cros_sdk:make_chroot: Updating host toolchain
Determining required toolchain updates...
Updating packages:
['sys-devel/binutils', 'sys-kernel/linux-headers', 'sys-devel/gcc']
14:46:49: INFO: RunCommand: /mnt/host/source/chromite/bin/parallel_emerge --oneshot --update --getbinpkg --usepkgonly sys-devel/binutils sys-kernel/linux-headers sys-devel/gcc
14:46:54: INFO: RunCommand: /media/yitian/Data/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/x86-generic/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmp6rbWwH.tmp
14:46:59: INFO: RunCommand: /media/yitian/Data/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/amd64-generic/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmpcPrJx9.tmp
14:47:02: INFO: RunCommand: /media/yitian/Data/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/arm-generic/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmp0RKFtx.tmp
14:47:06: INFO: RunCommand: /media/yitian/Data/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/panther_embedded_minimal/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmpoD_nAE.tmp
14:47:09: INFO: RunCommand: /media/yitian/Data/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/gizmo/paladin-R48-7597.0.0-rc3/packages/Packages /tmp/tmpvlAVj0.tmp
14:47:13: INFO: RunCommand: /media/yitian/Data/OS/.cache/common/gsutil_4.16.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cp -v -- gs://chromeos-prebuilt/host/amd64/amd64-host/chroot-2016.02.17.114951/packages/Packages /tmp/tmpI50qG1.tmp
Starting fast-emerge.
 Building package sys-devel/binutils sys-kernel/linux-headers sys-devel/gcc on root
Calculating deps...
Deps calculated in 0m2.5s
Done
Nothing to clean!
INFO    cros_sdk:make_chroot: Running emerge curl sudo ...

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.
Starting fast-emerge.
 Building package pbzip2 dev-libs/openssl net-misc/curl sudo on root
Calculating deps...
Deps calculated in 0m3.1s

Total: 0 packages, Size of downloads: 0 KiB
Done
INFO    : Chroot is already initialized to 139
INFO    : Elapsed time (run_chroot_version_hooks): 0m0s
INFO    : Updating chroot
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
Running ['/media/yitian/Data/OS/src/scripts/sdk_lib/make_chroot.sh', '--stage3_path', '/media/yitian/Data/OS/.cache/sdks/cros-sdk-2016.02.17.114951.tar.xz', '--chroot', '/media/yitian/Data/OS/chroot', '--cache_dir', '/media/yitian/Data/OS/.cache'] failed!


I checked the filesystem this time, /usr/bin/sudo is in an ext4 file system, cros_sdk is also in a ext4 file system.

Mike Frysinger

unread,
Feb 24, 2016, 3:13:43 PM2/24/16
to Yitian Li, Chromium OS dev
On Wed, Feb 24, 2016 at 3:00 PM, Yitian Li <yitian...@gmail.com> wrote:
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

have you tried checking the mount options as the error message shows ?
-mike

Yitian Li

unread,
Feb 24, 2016, 3:35:11 PM2/24/16
to Chromium OS dev, yitian...@gmail.com


I have set the root directory nosuid, and the same with build root directory

Mike Frysinger

unread,
Feb 24, 2016, 3:47:13 PM2/24/16
to Yitian Li, Chromium OS dev
cros_sdk needs suid to work
-mike

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en


S The Volcano

unread,
Mar 30, 2016, 9:54:03 PM3/30/16
to Chromium OS dev
Are you running ./cros_sdk or ./cros_sdk --bootstrap?

Janice Hourly

unread,
Mar 30, 2016, 11:01:46 PM3/30/16
to S The Volcano, Chromium OS dev
test

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en

---
You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages