Cros_SDK commcand not found

1,490 views
Skip to first unread message

Julian Robbins

unread,
Apr 11, 2018, 9:51:14 AM4/11/18
to Chromium OS dev
I have the code synced/downloaded, I have read other forums and the instructions which both say try adding depot tools to path and that does not make much sense to me .. Can anyone tell me what i'm doing wrong?

Kumar, Abhijeet

unread,
Apr 11, 2018, 11:00:25 AM4/11/18
to Julian Robbins, Chromium OS dev

It would be “cros_sdk”

--
--
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.

James Smith

unread,
Apr 11, 2018, 2:12:07 PM4/11/18
to Chromium OS dev, jule...@gmail.com
Hey, I used to get problems when trying to enter the 'chroot' (cros_sdk) when I was starting out.
It sounds like you need to install 'depot_tools', but as you said in your post you are having trouble with that too. These commands should get things working for you.

1. Install 'depot_tools'

             $  cd chromiumos                                                                                                                      Change "chromiumos" to whatever the folder is called where you are downloading chromiumos into.
             $  git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git                     This will download 'depot_tools' into the working directory.
             $  export PATH="${PATH}:${HOME}/chromiumos/depot_tools"                                                This will extract the 'depot_tools' files into the working directory.   


2.  Change the '~/.bashrc' file to include 'depot_tools'

             $  sudo nano ~/.bashrc
             Now add this line of code to the end of that file.
             export PATH="${PATH}:${HOME}/chromiumos/depot_tools"
             To exit the 'nano' window press [CTRL + X] then press Y to save and then followed by pressing [ENTER].


3.  Enter 'chroot'
             $  cros_sdk


Hope this helps.   :)

Julian Robbins

unread,
Apr 11, 2018, 3:33:10 PM4/11/18
to James Smith, Chromiu...@chromium.org, abhijee...@intel.com
I can, give me a few moments.

Julian Robbins

unread,
Apr 11, 2018, 3:40:13 PM4/11/18
to Chromium OS dev
julian@julian-VirtualBox:~$ ^C
julian@julian-VirtualBox:~$ ^C
julian@julian-VirtualBox:~$ cd depot tools
bash: cd: depot: No such file or directory
julian@julian-VirtualBox:~$ cd depottools
bash: cd: depottools: No such file or directory
julian@julian-VirtualBox:~$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools
fatal: destination path 'depot_tools' already exists and is not an empty directory.
julian@julian-VirtualBox:~$ cd chromium/tools/depot_tools/chromiumos
bash: cd: chromium/tools/depot_tools/chromiumos: No such file or directory
julian@julian-VirtualBox:~$ cd chromiumos
julian@julian-VirtualBox:~/chromiumos$ cros_sdk
cros_sdk: command not found
julian@julian-VirtualBox:~/chromiumos$ history
    1  bash_history
    2  exit
    3  git
    4  git confoig
    5  git config
    6  exit
    7  repo -j4 --no-history
    8  git clone https://chromium.googlesource.com/chromium/tools/depot_tools
    9  repo-j4 --no-history
   10  repo -j4 --no-history
   11  repo init
   12  git config
   13  repo init
   14  cd chromiumos
   15  repo -j4 --no-history
   16  repo sync -j4 --no-history
   17  repo sync -j4
   18  cross_sdk
   19  cd/chromiumos
   20  cd chromiumos
   21  cross_sdk
   22  cros_sdk
   23  cd depot tools
   24  cd depottools
   25  git clone https://chromium.googlesource.com/chromium/tools/depot_tools
   26  cd chromium/tools/depot_tools/chromiumos
   27  cd chromiumos
   28  cros_sdk
   29  history

Julian Robbins

unread,
Apr 11, 2018, 4:34:09 PM4/11/18
to Chromium OS dev
it says it failed to create a chroot


here is the history


cros_sdk
14:52:29: NOTICE: Mounted /home/julian/chromiumos/chroot.img on chroot
14:52:30: NOTICE: Downloading SDK tarball...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2908M  100 2908M    0     0  10.0M      0  0:04:49  0:04:49 --:--:-- 9859k
14:57:22: 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
/home/julian/chromiumos/src/scripts/sdk_lib/make_chroot.sh: line 105:   499 Bus error               (core dumped) "$ENTER_CHROOT" --chroot "$FLAGS_chroot" --early_make_chroot --cache_dir "${FLAGS_cache_dir}" -- "${ENTER_CHROOT_ARGS[@]}" "${early_env[@]}" "$@"
Running ['/home/julian/chromiumos/src/scripts/sdk_lib/make_chroot.sh', '--stage3_path', '/home/julian/chromiumos/.cache/sdks/cros-sdk-2018.04.04.131411.tar.xz', '--chroot', '/home/julian/chromiumos/chroot', '--cache_dir', '/home/julian/chromiumos/.cache'] failed!

James Smith

unread,
Apr 11, 2018, 4:36:30 PM4/11/18
to Chromium OS dev
When you ran 'repo sync' what folder were you inside of then?
and also have you changed the sudoers? as told in the developer guide.

James Smith

unread,
Apr 11, 2018, 4:52:41 PM4/11/18
to Chromium OS dev
Copy and paste the below into the terminal, don't change anything to it.  if this gives the same error then you will probably need to change your 'sudoers'

cd ${HOME}/chromiumos
export PATH="${PATH}:${HOME}/chromiumos/depot_tools"
cros_sdk

Julian Robbins

unread,
Apr 12, 2018, 9:23:09 AM4/12/18
to Chromium OS dev


I did change sudoers, as said in dev guide, I got gibberish ( at least from my perspective, ( I know the basics of linux, the absolute basics,) I do not remember the exact message it gave once i ran that command for sudo configuration thing. It is back to saying it cant find cros_sdk.
I was in the chromiumos directory in the home thing or whatever.. ( sorry if I sound angry, been dealing with my other windows pc and school) I can take a screenshot and post here in a moment, Apologies for late response
 

Julian Robbins

unread,
Apr 12, 2018, 9:25:29 AM4/12/18
to Chromium OS dev
Screenshot 2018-04-12 at 08.24.16.png
Screenshot 2018-04-12 at 08.24.11.png
Screenshot 2018-04-12 at 08.23.29.png

Julian Robbins

unread,
Apr 12, 2018, 9:32:28 AM4/12/18
to Chromium OS dev

It said something about something .tmp unchanged

James Smith

unread,
Apr 12, 2018, 2:37:33 PM4/12/18
to Chromium OS dev
Ok,  so you are downloading the 'depot_tools' but forgetting to export them all you need to do is...


1. download 'depot_tools' and export it into your working directory
   $ cd ${HOME}/chromiumos
   $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
   $ export PATH="${PATH}:${HOME}/chromiumos/depot_tools"


2. download the latest source code
   $ repo sync


3. This will remove the old 'chroot' and re-add it back  (this might error when trying to remove it. if it does don't worry and just do the next step)
   $ cros_sdk --delete
   $ cros_sdk

if it is still getting errors when trying to enter the 'chroot' then it is a problem with your sudoers, I used to have that problem when I was trying to get my build working, but I found a workaround on an older post.
What they did was make a script and put those command inside that, and run it with "sudo" positions. don't know why that worked but it just did....


On Thursday, April 12, 2018 at 2:25:29 PM UTC+1, Julian Robbins wrote:


Julian Robbins

unread,
Apr 14, 2018, 11:06:13 AM4/14/18
to Chromium OS dev
    lost = self._revlist(not_rev(revid), HEAD)
  File "/home/julian/chromiumos/.repo/repo/project.py", line 2501, in _revlist
    return self.work_git.rev_list(*a, **kw)
  File "/home/julian/chromiumos/.repo/repo/project.py", line 2700, in rev_list
    (self._project.name, str(args), p.stderr))
error.GitError: chromiumos/platform/bisect-kit rev-list (u'^# Generated by LVM2 version 2.02.133(2) ', 'HEAD', '--'): fatal: bad revision '^# Generated by LVM2 version 2.02.133(2) '





the error at the end of the sync of code

James Smith

unread,
Apr 14, 2018, 5:56:57 PM4/14/18
to Chromium OS dev
When you run "repo sync" command do it in the "chromiumos" folder not the "depot_tools" folder.

Julian Robbins

unread,
Apr 14, 2018, 9:27:47 PM4/14/18
to Chromium OS dev
I had a VM fail, i've started over and now this is what i'm greeted by:







... A new repo command ( 1.23) is available.
... You should upgrade soon:

    cp /home/julian/chromiumos/.repo/repo/repo /usr/bin/repo

Fetching project chromiumos/platform/touch_noise_filter
Fetching project chromiumos/third_party/libscrypt
Fetching project chromiumos/third_party/whining
Fetching project chromium/buildtools
Fetching project chromium/src/tools/md_browser
Fetching project toolchain/gcc
Fetching project chromiumos/platform/cfm-device-monitor
Fetching project chromiumos/platform/monitor_reconfig
Fetching projects:   0% (1/191)  Fetching project chromiumos/platform/audiotest
Fetching projects:   1% (2/191)  Fetching project aosp/platform/system/connectivity/apmanager
Fetching project chromiumos/third_party/dpkt
Fetching projects:   2% (4/191)  Fetching project chromiumos/platform/bisect-kit
Fetching project chromiumos/platform/tast
Fetching projects:   3% (6/191)  Fetching project chromiumos/third_party/kvmtool
Fetching project chromiumos/platform/xf86-input-cmt
Fetching projects:   4% (8/191)  Fetching project chromiumos/third_party/gobi3k-sdk
Fetching project chromiumos/third_party/arm-trusted-firmware
Fetching projects:   5% (10/191)  Fetching project chromiumos/platform/touchpad-tests
Fetching project chromiumos/third_party/mesa
Fetching projects:   6% (12/191)  Fetching project chromiumos/third_party/libdrm
Fetching project chromiumos/platform/chromiumos-assets
Fetching projects:   7% (14/191)  Fetching project chromiumos/third_party/gdmwimax
Fetching project chromiumos/third_party/khronos
Fetching projects:   8% (16/191)  Fetching project aosp/platform/system/core/libsync
Fetching project chromiumos/infra/lucifer
Fetching projects:   9% (18/191)  Fetching project chromiumos/platform/ec
Fetching project chromiumos/overlays/chromiumos-overlay
Fetching projects:  10% (20/191)  Fetching project chromiumos/platform/uboot-env
Fetching project platform/external/minijail
Fetching projects:  11% (22/191)  Fetching project chromiumos/platform/tpm_lite
Fetching projects:  12% (23/191)  Fetching project chromiumos/third_party/coreboot/blobs
Fetching project chromiumos/third_party/modemmanager-next
Fetching projects:  13% (25/191)  Fetching project chromiumos/third_party/linux-firmware
Fetching project chromiumos/third_party/bootstub
Fetching projects:  14% (27/191)  Fetching project chromiumos/third_party/dbus-cplusplus
Fetching project chromiumos/third_party/libsigrok-cli
Fetching projects:  15% (29/191)  Fetching project chromiumos/third_party/tlsdate
Fetching project chromiumos/docs
Fetching projects:  16% (31/191)  Fetching project apps/libapps
Fetching project chromiumos/third_party/tpm2
Fetching projects:  17% (33/191)  Fetching project aosp/platform/external/libchrome
Fetching project chromiumos/platform/bmpblk
Fetching projects:  18% (35/191)  Fetching project chromiumos/platform/crosvm
Fetching project chromiumos/third_party/libqrtr
Fetching projects:  19% (37/191)  Fetching project chromiumos/infra_virtualenv
Fetching projects:  20% (39/191)  Fetching project platform/external/libcxxabi
Fetching project chromiumos/repohooks
Fetching project chromiumos/third_party/cbootimage
Fetching projects:  21% (41/191)  Fetching project chromiumos/platform/dev-util
Fetching project chromiumos/third_party/tegrastats
Fetching projects:  22% (43/191)  Fetching project chromiumos/third_party/cryptoc
Fetching projects:  23% (44/191)  Fetching project external/git.kernel.org/fs/xfs/xfstests-dev
Fetching project chromiumos/infra/ci_results_archiver
Fetching projects:  24% (46/191)  Fetching project chromiumos/platform/xorg-conf
Fetching project chromiumos/third_party/huddly-updater
Fetching projects:  25% (48/191)  Fetching project chromiumos/third_party/mesa
Fetching project chromiumos/third_party/cypress-tools
Fetching project chromiumos/overlays/portage-stable
Fetching projects:  26% (50/191)  Fetching project chromiumos/platform/firmware
Fetching project weave/libweave
Fetching projects:  27% (52/191)  Fetching project aosp/platform/external/libbrillo
Fetching project chromiumos/platform/vboot_reference
Fetching projects:  28% (54/191)  Fetching project chromiumos/overlays/eclass-overlay
Fetching project platform/external/bsdiff
Fetching projects:  29% (56/191)  Fetching project chromiumos/third_party/autotest
Fetching project chromiumos/third_party/toolchain-utils
Fetching projects:  30% (58/191)  Fetching project chromiumos/third_party/android_mtdutils
Fetching project chromiumos/infra/dummies/merge-sandbox
Fetching projects:  31% (60/191)  Fetching project chromiumos/third_party/portage_tool
Fetching project chromiumos/third_party/webrtc-apm
Fetching projects:  32% (62/191)  Fetching project chromiumos/platform/assets
Fetching project chromiumos/third_party/daisydog
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/assets.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/daisydog.git'
Fetching projects:  33% (64/191)  Fetching project chromiumos/third_party/libv4lplugins
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
fatal: loose object 07117811d9c5e646e9c853f1b7f76ca5a6639e8a (stored in /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a) is corrupt
fatal: The remote end hung up unexpectedly
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/libv4lplugins.git'
Fetching projects:  34% (65/191)  Fetching project chromiumos/third_party/kernel
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/kernel/experimental.git'
Fetching project platform/external/libunwind_llvm
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/aosp/external/libunwind_llvm.git'
Fetching projects:  35% (67/191)  Fetching project chromiumos/platform/tpm
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/tpm.git'
Fetching project chromiumos/third_party/mesa
Fetching project chromiumos/third_party/mmc-utils
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/mmc-utils.git'
error: cannot lock ref 'refs/remotes/cros/release-R67-10575.B': unable to resolve reference refs/remotes/cros/release-R67-10575.B: Invalid argument
From https://chromium.googlesource.com/chromiumos/third_party/portage_tool
 ! [new branch]      release-R67-10575.B -> cros/release-R67-10575.B  (unable to update local ref)
error: cannot lock ref 'refs/remotes/cros/stabilize-10569.B': unable to resolve reference refs/remotes/cros/stabilize-10569.B: Invalid argument
 ! [new branch]      stabilize-10569.B -> cros/stabilize-10569.B  (unable to update local ref)
Fetching projects:  36% (69/191)  Fetching project chromiumos/platform/mttools
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/mttools.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/aosp/external/libunwind_llvm.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/tpm.git'
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
fatal: loose object 07117811d9c5e646e9c853f1b7f76ca5a6639e8a (stored in /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a) is corrupt
fatal: The remote end hung up unexpectedly
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/assets.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/daisydog.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/mttools.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/libv4lplugins.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/kernel/experimental.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/mmc-utils.git'
error: cannot lock ref 'refs/remotes/cros/release-R67-10575.B': unable to resolve reference refs/remotes/cros/release-R67-10575.B: Invalid argument
From https://chromium.googlesource.com/chromiumos/third_party/portage_tool
 ! [new branch]      release-R67-10575.B -> cros/release-R67-10575.B  (unable to update local ref)
error: cannot lock ref 'refs/remotes/cros/stabilize-10569.B': unable to resolve reference refs/remotes/cros/stabilize-10569.B: Invalid argument
 ! [new branch]      stabilize-10569.B -> cros/stabilize-10569.B  (unable to update local ref)
error: Cannot fetch platform/external/libunwind_llvm
Fetching project chromiumos/platform/touch_updater
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/touch_updater.git'
error: Cannot fetch chromiumos/platform/tpm
error: Cannot fetch chromiumos/third_party/webrtc-apm
error: Cannot fetch chromiumos/third_party/portage_tool
error: Cannot fetch chromiumos/third_party/kernel
error: Cannot fetch chromiumos/third_party/mmc-utils
error: Cannot fetch chromiumos/platform/mttools
error: Cannot fetch chromiumos/third_party/libv4lplugins
error: Cannot fetch chromiumos/third_party/daisydog
error: Cannot fetch chromiumos/platform/assets
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/touch_updater.git'
error: Cannot fetch chromiumos/platform/touch_updater

error: Exited sync due to fetch errors

Keith I Myers

unread,
Apr 14, 2018, 9:31:12 PM4/14/18
to Julian Robbins, Chromium OS dev
What is the full command you are using to run the repo sync?

--
--
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-dev+unsubscribe@chromium.org.



--
 
--
Keith I Myers
https://Kiddie.Networks - Cheap Web Hosting Services ran by kids
 

Julian Robbins

unread,
Apr 14, 2018, 9:47:33 PM4/14/18
to Chromium OS dev


On Wednesday, April 11, 2018 at 8:51:14 AM UTC-5, Julian Robbins wrote:

Julian Robbins

unread,
Apr 14, 2018, 9:48:53 PM4/14/18
to Chromium OS dev, jule...@gmail.com
julian@julian-VirtualBox:~$ cd chromiumos
julian@julian-VirtualBox:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git


... A new repo command ( 1.23) is available.
... You should upgrade soon:

    cp /home/julian/chromiumos/.repo/repo/repo /usr/bin/repo


Your identity is: Julian Robbins <julero****@gmail.com>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/julian/chromiumos
julian@julian-VirtualBox:~/chromiumos$ repo sync


... A new repo command ( 1.23) is available.
... You should upgrade soon:

    cp /home/julian/chromiumos/.repo/repo/repo /usr/bin/repo

Fetching project chromiumos/platform/touch_noise_filterFetching project chromiumos/third_party/libscrypt


Fetching project chromiumos/third_party/whining
Fetching project chromium/buildtools
Fetching project chromium/src/tools/md_browserFetching project toolchain/gcc
Fetching project chromiumos/third_party/mesa

Fetching project chromiumos/third_party/modemmanager-next
Fetching projects:  13% (25/191)  Fetching project chromiumos/third_party/linux-firmware
Fetching project chromiumos/third_party/bootstub
Fetching projects:  14% (27/191)  Fetching project chromiumos/third_party/dbus-cplusplus
Fetching project chromiumos/third_party/libsigrok-cli
Fetching projects:  15% (29/191)  Fetching project chromiumos/third_party/tlsdate
Fetching project chromiumos/docs
Fetching projects:  16% (31/191)  Fetching project apps/libapps
Fetching project chromiumos/third_party/tpm2
Fetching projects:  17% (33/191)  Fetching project aosp/platform/external/libchrome
Fetching project chromiumos/platform/bmpblk
Fetching projects:  18% (35/191)  Fetching project chromiumos/platform/crosvm
Fetching project chromiumos/third_party/mesa

Fetching project chromiumos/third_party/libqrtr
Fetching projects:  19% (37/191)  Fetching project chromiumos/infra_virtualenv
Fetching project platform/external/libcxxabi
Fetching projects:  20% (39/191)  Fetching project chromiumos/repohooks
Fetching projects:  21% (41/191)  Fetching project chromiumos/third_party/cbootimage

Fetching project chromiumos/platform/dev-util
Fetching project chromiumos/third_party/tegrastats
Fetching projects:  22% (43/191)  Fetching project chromiumos/third_party/cryptoc
Fetching projects:  23% (44/191)  Fetching project external/git.kernel.org/fs/xfs/xfstests-dev
Fetching project chromiumos/infra/ci_results_archiver
Fetching projects:  24% (46/191)  Fetching project chromiumos/platform/xorg-conf
Fetching project chromiumos/third_party/huddly-updater
Fetching projects:  25% (48/191)  Fetching project chromiumos/third_party/cypress-tools

Fetching project chromiumos/overlays/portage-stable
Fetching projects:  26% (50/191)  Fetching project chromiumos/platform/firmware
Fetching project weave/libweave
Fetching projects:  27% (52/191)  Fetching project aosp/platform/external/libbrillo
Fetching project chromiumos/platform/vboot_reference
Fetching projects:  28% (54/191)  Fetching project chromiumos/overlays/eclass-overlay
Fetching project platform/external/bsdiff
Fetching projects:  29% (56/191)  Fetching project chromiumos/third_party/autotest
Fetching project chromiumos/third_party/toolchain-utils
Fetching projects:  30% (58/191)  Fetching project chromiumos/third_party/android_mtdutils
Fetching project chromiumos/infra/dummies/merge-sandbox
Fetching projects:  31% (60/191)  Fetching project chromiumos/third_party/portage_tool
Fetching project chromiumos/third_party/webrtc-apm
Fetching projects:  32% (62/191)  Fetching project chromiumos/platform/assets
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/assets.git'
Fetching project chromiumos/third_party/daisydog
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/daisydog.git'
Fetching projects:  33% (64/191)  Fetching project chromiumos/third_party/libv4lplugins
Fetching projects:  34% (65/191)  Fetching project chromiumos/third_party/kernel
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/kernel/experimental.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/libv4lplugins.git'
Fetching project platform/external/libunwind_llvm
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/aosp/external/libunwind_llvm.git'
Fetching projects:  35% (67/191)  Fetching project chromiumos/platform/tpm
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/tpm.git'
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
fatal: loose object 07117811d9c5e646e9c853f1b7f76ca5a6639e8a (stored in /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a) is corrupt
fatal: The remote end hung up unexpectedly
Fetching project chromiumos/third_party/mmc-utils
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/mmc-utils.git'
error: cannot lock ref 'refs/remotes/cros/release-R67-10575.B': unable to resolve reference refs/remotes/cros/release-R67-10575.B: Invalid argument
From https://chromium.googlesource.com/chromiumos/third_party/portage_tool
 ! [new branch]      release-R67-10575.B -> cros/release-R67-10575.B  (unable to update local ref)
error: cannot lock ref 'refs/remotes/cros/stabilize-10569.B': unable to resolve reference refs/remotes/cros/stabilize-10569.B: Invalid argument
 ! [new branch]      stabilize-10569.B -> cros/stabilize-10569.B  (unable to update local ref)
Fetching projects:  36% (69/191)  Fetching project chromiumos/platform/mttools
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/mttools.git'
error: cannot lock ref 'refs/remotes/cros/release-R67-10575.B': unable to resolve reference refs/remotes/cros/release-R67-10575.B: Invalid argument
From https://chromium.googlesource.com/chromiumos/third_party/portage_tool
 ! [new branch]      release-R67-10575.B -> cros/release-R67-10575.B  (unable to update local ref)
error: cannot lock ref 'refs/remotes/cros/stabilize-10569.B': unable to resolve reference refs/remotes/cros/stabilize-10569.B: Invalid argument
 ! [new branch]      stabilize-10569.B -> cros/stabilize-10569.B  (unable to update local ref)
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
error: object file /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a is empty
fatal: loose object 07117811d9c5e646e9c853f1b7f76ca5a6639e8a (stored in /home/julian/chromiumos/.repo/projects/src/third_party/webrtc-apm.git/objects/07/117811d9c5e646e9c853f1b7f76ca5a6639e8a) is corrupt
fatal: The remote end hung up unexpectedly
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/aosp/external/libunwind_llvm.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/kernel/experimental.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/mmc-utils.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/assets.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/daisydog.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/libv4lplugins.git'
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/third_party/tpm.git'

fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/mttools.git'
error: Cannot fetch chromiumos/platform/assets

Fetching project chromiumos/platform/touch_updater
fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/touch_updater.git'
error: Cannot fetch chromiumos/third_party/mmc-utils

error: Cannot fetch chromiumos/platform/tpm
error: Cannot fetch chromiumos/third_party/webrtc-apm
error: Cannot fetch chromiumos/third_party/portage_tool
error: Cannot fetch platform/external/libunwind_llvm
error: Cannot fetch chromiumos/third_party/kernel
error: Cannot fetch chromiumos/third_party/daisydog
error: Cannot fetch chromiumos/third_party/libv4lplugins
error: Cannot fetch chromiumos/platform/mttools

fatal: Not a git repository: '/home/julian/chromiumos/.repo/projects/src/platform/touch_updater.git'
error: Cannot fetch chromiumos/platform/touch_updater

error: Exited sync due to fetch errors


To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.

Keith I Myers

unread,
Apr 14, 2018, 9:52:15 PM4/14/18
to Julian Robbins, Chromium OS dev

Try (all one line) 
repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git -g minilayout

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.

Julian Robbins

unread,
Apr 14, 2018, 10:24:56 PM4/14/18
to Chromium OS dev, jule...@gmail.com

julian@julian-VirtualBox:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git -g minilayout


... A new repo command ( 1.23) is available.
... You should upgrade soon:

    cp /home/julian/chromiumos/.repo/repo/repo /usr/bin/repo


Your identity is: Julian Robbins
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/julian/chromiumos

Keith I Myers

unread,
Apr 14, 2018, 10:27:22 PM4/14/18
to Julian Robbins, Chromium OS dev
Great, now you just need to run "repo sync -j4" and go grab a coffee

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.

Julian Robbins

unread,
Apr 14, 2018, 11:13:44 PM4/14/18
to Keith I Myers, Chromium OS dev
Giving fatal error. Virtualbox giving execution errors, nothing I've tried had worked. I've deleted the VM and decided that I'll deal with it's sorry excuse for choosing not to work when I have more patience, it's been throwing errors at me all day.

James Smith

unread,
Apr 16, 2018, 8:41:36 AM4/16/18
to Chromium OS dev, keithiok...@gmail.com
I wouldn't just leave it there, Just make a new VM with a fresh version of ubuntu then after that has installed make a backup of it.
Then change the sudoers, install depot_tools and download the source.
after that make another backup of the VM, just in case something goes wrong again.

then enter the chroot (cros_sdk) and build the packages, ect.....

So then if things go wrong and are not working you can always restore form the backup and not have to start from scratch every time

Keep this post uptodate, I want to get this working for you... 

Keith I Myers

unread,
Apr 16, 2018, 9:27:52 AM4/16/18
to James Smith, Chromium OS dev
I am not sure how much that will help in this case as I am pretty sure that the amount of RAM on the machine will not be enough to build ChromiumOS. 

Julian Robbins

unread,
Apr 16, 2018, 10:13:52 AM4/16/18
to Chromium OS dev, adamk...@gmail.com
Well, on my very first try, I got it to work ( way before I came to the forums, like back in november, it worked then. but I had an laptop just like the one i have now except it was an asus with an i7 and like 8gb of ram. I'm probaly going have to get like some type of external ram or something to do this..)

Julian Robbins

unread,
Apr 16, 2018, 10:14:33 AM4/16/18
to Chromium OS dev, adamk...@gmail.com

James Smith

unread,
Apr 16, 2018, 10:25:31 AM4/16/18
to Chromium OS dev, adamk...@gmail.com
If you have the script in the home directory all you need to do is run

sudo chmod +x ./your_script_name

Then to run the script you need to run

sudo ./your_script_name

Hope this helps



--
<tbody style="margin:0px;padding:0px;border:0

Julian Robbins

unread,
Feb 15, 2020, 11:28:40 PM2/15/20
to Chromium OS Development
I can' t seem to get cros_sdk to work. The sudoers thing doesnt seem to do anything as it says "/etc/sudoers.d/relax_requirements.tmp unchanged". I'm not entirely sure where I went off this time, so any help would be appreciated.

Julian Robbins

unread,
Feb 9, 2021, 10:03:12 PM2/9/21
to Chromium OS Development, Adam Kearn
I know this is an old topic, got a new high end pc, and have done a few steps (starting from scratch) and here is what I get.

<pre><font color="#4E9A06"><b>julian@ubuntu</b></font>:<font color="#3465A4"><b>~</b></font>$ cd ~/chromiumos
<font color="#4E9A06"><b>julian@ubuntu</b></font>:<font color="#3465A4"><b>~/chromiumos</b></font>$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.

warning: templates not found /build/git-repo-publish/parts/git/install/usr/share/git-core/templates
Get https://chromium.googlesource.com/external/repo.git
remote: Counting objects: 224, done
remote: Total 6370 (delta 4399), reused 6370 (delta 4399)
Receiving objects: 100% (6370/6370), 1.84 MiB | 0 bytes/s, done.
Resolving deltas: 100% (4399/4399), done.
From https://chromium.googlesource.com/external/repo
 * [new branch]      main            -&gt; origin/main
 * [new branch]      master          -&gt; origin/master
 * [new branch]      stable          -&gt; origin/stable
 * [new branch]      upstream/main   -&gt; origin/upstream/main
 * [new branch]      upstream/maint  -&gt; origin/upstream/maint
 * [new branch]      upstream/repo-1 -&gt; origin/upstream/repo-1
 * [new branch]      upstream/stable -&gt; origin/upstream/stable
 * [new tag]         v1.0            -&gt; v1.0
 * [new tag]         v1.0.1          -&gt; v1.0.1
 * [new tag]         v1.0.2          -&gt; v1.0.2
 * [new tag]         v1.0.3          -&gt; v1.0.3
 * [new tag]         v1.0.4          -&gt; v1.0.4
 * [new tag]         v1.0.5          -&gt; v1.0.5
 * [new tag]         v1.0.6          -&gt; v1.0.6
 * [new tag]         v1.0.7          -&gt; v1.0.7
 * [new tag]         v1.0.8          -&gt; v1.0.8
 * [new tag]         v1.0.9          -&gt; v1.0.9
 * [new tag]         v1.1            -&gt; v1.1
 * [new tag]         v1.10.0         -&gt; v1.10.0
 * [new tag]         v1.10.1         -&gt; v1.10.1
 * [new tag]         v1.10.2         -&gt; v1.10.2
 * [new tag]         v1.10.3         -&gt; v1.10.3
 * [new tag]         v1.10.4         -&gt; v1.10.4
 * [new tag]         v1.11.0         -&gt; v1.11.0
 * [new tag]         v1.11.1         -&gt; v1.11.1
 * [new tag]         v1.11.1-cr1     -&gt; v1.11.1-cr1
 * [new tag]         v1.11.1-cr2     -&gt; v1.11.1-cr2
 * [new tag]         v1.11.1-cr3     -&gt; v1.11.1-cr3
 * [new tag]         v1.11.1-cr4     -&gt; v1.11.1-cr4
 * [new tag]         v1.11.1-cr5     -&gt; v1.11.1-cr5
 * [new tag]         v1.12.0         -&gt; v1.12.0
 * [new tag]         v1.12.1         -&gt; v1.12.1
 * [new tag]         v1.12.10        -&gt; v1.12.10
 * [new tag]         v1.12.11        -&gt; v1.12.11
 * [new tag]         v1.12.12        -&gt; v1.12.12
 * [new tag]         v1.12.13        -&gt; v1.12.13
 * [new tag]         v1.12.13-cr1    -&gt; v1.12.13-cr1
 * [new tag]         v1.12.13-cr2    -&gt; v1.12.13-cr2
 * [new tag]         v1.12.13-cr3    -&gt; v1.12.13-cr3
 * [new tag]         v1.12.13-cr4    -&gt; v1.12.13-cr4
 * [new tag]         v1.12.13-cr5    -&gt; v1.12.13-cr5
 * [new tag]         v1.12.13-cr6    -&gt; v1.12.13-cr6
 * [new tag]         v1.12.13-cr7    -&gt; v1.12.13-cr7
 * [new tag]         v1.12.13-cr8    -&gt; v1.12.13-cr8
 * [new tag]         v1.12.14        -&gt; v1.12.14
 * [new tag]         v1.12.15        -&gt; v1.12.15
 * [new tag]         v1.12.16        -&gt; v1.12.16
 * [new tag]         v1.12.16-cr1    -&gt; v1.12.16-cr1
 * [new tag]         v1.12.17        -&gt; v1.12.17
 * [new tag]         v1.12.17-cr1    -&gt; v1.12.17-cr1
 * [new tag]         v1.12.17-cr2    -&gt; v1.12.17-cr2
 * [new tag]         v1.12.17-cr3    -&gt; v1.12.17-cr3
 * [new tag]         v1.12.18        -&gt; v1.12.18
 * [new tag]         v1.12.19        -&gt; v1.12.19
 * [new tag]         v1.12.2         -&gt; v1.12.2
 * [new tag]         v1.12.20        -&gt; v1.12.20
 * [new tag]         v1.12.21        -&gt; v1.12.21
 * [new tag]         v1.12.22        -&gt; v1.12.22
 * [new tag]         v1.12.23        -&gt; v1.12.23
 * [new tag]         v1.12.24        -&gt; v1.12.24
 * [new tag]         v1.12.25        -&gt; v1.12.25
 * [new tag]         v1.12.26        -&gt; v1.12.26
 * [new tag]         v1.12.27        -&gt; v1.12.27
 * [new tag]         v1.12.28        -&gt; v1.12.28
 * [new tag]         v1.12.29        -&gt; v1.12.29
 * [new tag]         v1.12.3         -&gt; v1.12.3
 * [new tag]         v1.12.3.1       -&gt; v1.12.3.1
 * [new tag]         v1.12.30        -&gt; v1.12.30
 * [new tag]         v1.12.30.1      -&gt; v1.12.30.1
 * [new tag]         v1.12.31        -&gt; v1.12.31
 * [new tag]         v1.12.32        -&gt; v1.12.32
 * [new tag]         v1.12.33        -&gt; v1.12.33
 * [new tag]         v1.12.34        -&gt; v1.12.34
 * [new tag]         v1.12.34-cr1    -&gt; v1.12.34-cr1
 * [new tag]         v1.12.34-cr2    -&gt; v1.12.34-cr2
 * [new tag]         v1.12.35        -&gt; v1.12.35
 * [new tag]         v1.12.36        -&gt; v1.12.36
 * [new tag]         v1.12.37        -&gt; v1.12.37
 * [new tag]         v1.12.37-cr1    -&gt; v1.12.37-cr1
 * [new tag]         v1.12.37-cr2    -&gt; v1.12.37-cr2
 * [new tag]         v1.12.37-cr3    -&gt; v1.12.37-cr3
 * [new tag]         v1.12.37-cr4    -&gt; v1.12.37-cr4
 * [new tag]         v1.12.37-cr5    -&gt; v1.12.37-cr5
 * [new tag]         v1.12.37-cr6    -&gt; v1.12.37-cr6
 * [new tag]         v1.12.4         -&gt; v1.12.4
 * [new tag]         v1.12.5         -&gt; v1.12.5
 * [new tag]         v1.12.6         -&gt; v1.12.6
 * [new tag]         v1.12.7         -&gt; v1.12.7
 * [new tag]         v1.12.8         -&gt; v1.12.8
 * [new tag]         v1.12.9         -&gt; v1.12.9
 * [new tag]         v1.13.0         -&gt; v1.13.0
 * [new tag]         v1.13.1         -&gt; v1.13.1
 * [new tag]         v1.13.1-cr1     -&gt; v1.13.1-cr1
 * [new tag]         v1.13.10        -&gt; v1.13.10
 * [new tag]         v1.13.11        -&gt; v1.13.11
 * [new tag]         v1.13.2         -&gt; v1.13.2
 * [new tag]         v1.13.2-cr1     -&gt; v1.13.2-cr1
 * [new tag]         v1.13.2-cr2     -&gt; v1.13.2-cr2
 * [new tag]         v1.13.3         -&gt; v1.13.3
 * [new tag]         v1.13.3-cr1     -&gt; v1.13.3-cr1
 * [new tag]         v1.13.4         -&gt; v1.13.4
 * [new tag]         v1.13.4-cr1     -&gt; v1.13.4-cr1
 * [new tag]         v1.13.5         -&gt; v1.13.5
 * [new tag]         v1.13.5-cr1     -&gt; v1.13.5-cr1
 * [new tag]         v1.13.5.1       -&gt; v1.13.5.1
 * [new tag]         v1.13.5.1-cr1   -&gt; v1.13.5.1-cr1
 * [new tag]         v1.13.6         -&gt; v1.13.6
 * [new tag]         v1.13.6-cr1     -&gt; v1.13.6-cr1
 * [new tag]         v1.13.7         -&gt; v1.13.7
 * [new tag]         v1.13.7-cr1     -&gt; v1.13.7-cr1
 * [new tag]         v1.13.7.1       -&gt; v1.13.7.1
 * [new tag]         v1.13.7.1-cr1   -&gt; v1.13.7.1-cr1
 * [new tag]         v1.13.8         -&gt; v1.13.8
 * [new tag]         v1.13.8-cr1     -&gt; v1.13.8-cr1
 * [new tag]         v1.13.9         -&gt; v1.13.9
 * [new tag]         v1.13.9-cr1     -&gt; v1.13.9-cr1
 * [new tag]         v1.13.9.1       -&gt; v1.13.9.1
 * [new tag]         v1.13.9.1-cr1   -&gt; v1.13.9.1-cr1
 * [new tag]         v1.13.9.2       -&gt; v1.13.9.2
 * [new tag]         v1.13.9.3       -&gt; v1.13.9.3
 * [new tag]         v1.13.9.4       -&gt; v1.13.9.4
 * [new tag]         v1.2            -&gt; v1.2
 * [new tag]         v1.3            -&gt; v1.3
 * [new tag]         v1.3.1          -&gt; v1.3.1
 * [new tag]         v1.3.2          -&gt; v1.3.2
 * [new tag]         v1.4            -&gt; v1.4
 * [new tag]         v1.4.1          -&gt; v1.4.1
 * [new tag]         v1.4.2          -&gt; v1.4.2
 * [new tag]         v1.4.3          -&gt; v1.4.3
 * [new tag]         v1.4.4          -&gt; v1.4.4
 * [new tag]         v1.5            -&gt; v1.5
 * [new tag]         v1.5.1          -&gt; v1.5.1
 * [new tag]         v1.6            -&gt; v1.6
 * [new tag]         v1.6.1          -&gt; v1.6.1
 * [new tag]         v1.6.10         -&gt; v1.6.10
 * [new tag]         v1.6.10.1       -&gt; v1.6.10.1
 * [new tag]         v1.6.10.2       -&gt; v1.6.10.2
 * [new tag]         v1.6.2          -&gt; v1.6.2
 * [new tag]         v1.6.3          -&gt; v1.6.3
 * [new tag]         v1.6.4          -&gt; v1.6.4
 * [new tag]         v1.6.5          -&gt; v1.6.5
 * [new tag]         v1.6.6          -&gt; v1.6.6
 * [new tag]         v1.6.7          -&gt; v1.6.7
 * [new tag]         v1.6.7.1        -&gt; v1.6.7.1
 * [new tag]         v1.6.7.2        -&gt; v1.6.7.2
 * [new tag]         v1.6.7.3        -&gt; v1.6.7.3
 * [new tag]         v1.6.7.4        -&gt; v1.6.7.4
 * [new tag]         v1.6.7.5        -&gt; v1.6.7.5
 * [new tag]         v1.6.8          -&gt; v1.6.8
 * [new tag]         v1.6.8.1        -&gt; v1.6.8.1
 * [new tag]         v1.6.8.10       -&gt; v1.6.8.10
 * [new tag]         v1.6.8.11       -&gt; v1.6.8.11
 * [new tag]         v1.6.8.2        -&gt; v1.6.8.2
 * [new tag]         v1.6.8.3        -&gt; v1.6.8.3
 * [new tag]         v1.6.8.4        -&gt; v1.6.8.4
 * [new tag]         v1.6.8.5        -&gt; v1.6.8.5
 * [new tag]         v1.6.8.6        -&gt; v1.6.8.6
 * [new tag]         v1.6.8.7        -&gt; v1.6.8.7
 * [new tag]         v1.6.8.8        -&gt; v1.6.8.8
 * [new tag]         v1.6.8.9        -&gt; v1.6.8.9
 * [new tag]         v1.6.9          -&gt; v1.6.9
 * [new tag]         v1.6.9.1        -&gt; v1.6.9.1
 * [new tag]         v1.6.9.2        -&gt; v1.6.9.2
 * [new tag]         v1.6.9.3        -&gt; v1.6.9.3
 * [new tag]         v1.6.9.4        -&gt; v1.6.9.4
 * [new tag]         v1.6.9.5        -&gt; v1.6.9.5
 * [new tag]         v1.6.9.6        -&gt; v1.6.9.6
 * [new tag]         v1.6.9.7        -&gt; v1.6.9.7
 * [new tag]         v1.6.9.8        -&gt; v1.6.9.8
 * [new tag]         v1.7            -&gt; v1.7
 * [new tag]         v1.7.1          -&gt; v1.7.1
 * [new tag]         v1.7.2          -&gt; v1.7.2
 * [new tag]         v1.7.3          -&gt; v1.7.3
 * [new tag]         v1.7.3.1        -&gt; v1.7.3.1
 * [new tag]         v1.7.4          -&gt; v1.7.4
 * [new tag]         v1.7.4.1        -&gt; v1.7.4.1
 * [new tag]         v1.7.4.2        -&gt; v1.7.4.2
 * [new tag]         v1.7.4.3        -&gt; v1.7.4.3
 * [new tag]         v1.7.5          -&gt; v1.7.5
 * [new tag]         v1.7.6          -&gt; v1.7.6
 * [new tag]         v1.7.6.1        -&gt; v1.7.6.1
 * [new tag]         v1.7.7          -&gt; v1.7.7
 * [new tag]         v1.7.7.1        -&gt; v1.7.7.1
 * [new tag]         v1.7.7.2        -&gt; v1.7.7.2
 * [new tag]         v1.7.7.3        -&gt; v1.7.7.3
 * [new tag]         v1.7.7.4        -&gt; v1.7.7.4
 * [new tag]         v1.7.7.5        -&gt; v1.7.7.5
 * [new tag]         v1.7.7.6        -&gt; v1.7.7.6
 * [new tag]         v1.7.8          -&gt; v1.7.8
 * [new tag]         v1.7.8.1        -&gt; v1.7.8.1
 * [new tag]         v1.7.8.2        -&gt; v1.7.8.2
 * [new tag]         v1.8.0          -&gt; v1.8.0
 * [new tag]         v1.8.1          -&gt; v1.8.1
 * [new tag]         v1.8.2          -&gt; v1.8.2
 * [new tag]         v1.9.0          -&gt; v1.9.0
 * [new tag]         v1.9.1          -&gt; v1.9.1
 * [new tag]         v1.9.2          -&gt; v1.9.2
 * [new tag]         v1.9.3          -&gt; v1.9.3
 * [new tag]         v1.9.4          -&gt; v1.9.4
 * [new tag]         v1.9.5          -&gt; v1.9.5
 * [new tag]         v1.9.6          -&gt; v1.9.6
 * [new tag]         v2.0            -&gt; v2.0
 * [new tag]         v2.1            -&gt; v2.1
 * [new tag]         v2.1.1          -&gt; v2.1.1
 * [new tag]         v2.10           -&gt; v2.10
 * [new tag]         v2.10-cr1       -&gt; v2.10-cr1
 * [new tag]         v2.11           -&gt; v2.11
 * [new tag]         v2.11-cr1       -&gt; v2.11-cr1
 * [new tag]         v2.11.1         -&gt; v2.11.1
 * [new tag]         v2.11.1-cr1     -&gt; v2.11.1-cr1
 * [new tag]         v2.12           -&gt; v2.12
 * [new tag]         v2.12-cr1       -&gt; v2.12-cr1
 * [new tag]         v2.12.1         -&gt; v2.12.1
 * [new tag]         v2.12.1-cr1     -&gt; v2.12.1-cr1
 * [new tag]         v2.2            -&gt; v2.2
 * [new tag]         v2.3            -&gt; v2.3
 * [new tag]         v2.3-cr1        -&gt; v2.3-cr1
 * [new tag]         v2.4            -&gt; v2.4
 * [new tag]         v2.4.1          -&gt; v2.4.1
 * [new tag]         v2.4.1-cr1      -&gt; v2.4.1-cr1
 * [new tag]         v2.5            -&gt; v2.5
 * [new tag]         v2.5-cr1        -&gt; v2.5-cr1
 * [new tag]         v2.6            -&gt; v2.6
 * [new tag]         v2.6-cr1        -&gt; v2.6-cr1
 * [new tag]         v2.7            -&gt; v2.7
 * [new tag]         v2.7-cr1        -&gt; v2.7-cr1
 * [new tag]         v2.8            -&gt; v2.8
 * [new tag]         v2.8-cr1        -&gt; v2.8-cr1
 * [new tag]         v2.9            -&gt; v2.9
 * [new tag]         v2.9-cr1        -&gt; v2.9-cr1
  File &quot;/home/julian/chromiumos/.repo/repo/main.py&quot;, line 79
    file=sys.stderr)
        ^
SyntaxError: invalid syntax
</pre>

Mike Frysinger

unread,
Feb 9, 2021, 10:05:38 PM2/9/21
to Julian Robbins, Chromium OS Development, Adam Kearn
your `python3` is old.  upgrade it to python3.6+.
-mike

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
Message has been deleted

Julian Robbins

unread,
Feb 10, 2021, 1:20:08 PM2/10/21
to Chromium OS Development, Mike Frysinger, Chromium OS Development, Adam Kearn, Julian Robbins
Currently, after starting fresh again, im getting this:
ulian@ubuntu:~/chromiumos$ sudo nano ~/.bashrc
julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git

Command 'repo' not found, but can be installed with:

sudo snap install git-repo

julian@ubuntu:~/chromiumos$

Brian Norris

unread,
Feb 10, 2021, 1:34:20 PM2/10/21
to Julian Robbins, Chromium OS Development, Mike Frysinger, Adam Kearn
Are you looking at the developer guide?


I believe your question is here:


I believe it's important that you use the version of 'repo' tracked there, and not necessarily the one provided by your distribution.

Mike Frysinger

unread,
Feb 10, 2021, 1:39:46 PM2/10/21
to Brian Norris, Julian Robbins, Chromium OS Development, Adam Kearn
that was true in the past, but we've upstreamed everything from our repo fork so upstream versions should be fine to use as long as they are up-to-date.  using the depot_tools copy gives us confidence that you're using a recent version.
-mike

Julian Robbins

unread,
Feb 10, 2021, 1:48:15 PM2/10/21
to Chromium OS Development, Mike Frysinger, Julian Robbins, Chromium OS Development, Adam Kearn, Brian Norris
how do I use the depot tools version? i've exported to path, added bashrc, put it in chromiumos folder. Not sure what I am doing wrong

Mike Frysinger

unread,
Feb 10, 2021, 2:21:31 PM2/10/21
to Julian Robbins, Chromium OS Development, Adam Kearn, Brian Norris
follow the documentation that Brian linked
-mike
Message has been deleted

Julian Robbins

unread,
Feb 10, 2021, 2:28:14 PM2/10/21
to Chromium OS Development, Mike Frysinger, Chromium OS Development, Adam Kearn, Brian Norris, Julian Robbins
julian@ubuntu:~/chromiumos$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fatal: destination path 'depot_tools' already exists and is not an empty directory.
julian@ubuntu:~/chromiumos$ export PATH="${PATH}:${HOME}/chromiumos/depot_tools"

julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest
/usr/bin/env: ‘python’: No such file or directory

julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest
/usr/bin/env: ‘python’: No such file or directory
julian@ubuntu:~/chromiumos$

Julian Robbins

unread,
Feb 10, 2021, 2:28:59 PM2/10/21
to Chromium OS Development, Mike Frysinger, Chromium OS Development, Adam Kearn, Brian Norris
julian@ubuntu:~$ cd ~/chromiumos
julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git -g minilayout


Command 'repo' not found, but can be installed with:

sudo snap install git-repo

julian@ubuntu:~/chromiumos$ sudo nano ~/.bashrc
[sudo] password for julian:


Use "fg" to return to nano.

[1]+  Stopped                 sudo nano ~/.bashrc
julian@ubuntu:~/chromiumos$ sudo nano ~/.bashrc

julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git

Command 'repo' not found, but can be installed with:

sudo snap install git-repo

julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest

Command 'repo' not found, but can be installed with:

sudo snap install git-repo

julian@ubuntu:~/chromiumos$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fatal: destination path 'depot_tools' already exists and is not an empty directory.
julian@ubuntu:~/chromiumos$ export PATH="${PATH}:${HOME}/chromiumos/depot_tools"
julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest
/usr/bin/env: ‘python’: No such file or directory
julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest
/usr/bin/env: ‘python’: No such file or directory
julian@ubuntu:~/chromiumos$



Julian Robbins

unread,
Feb 10, 2021, 2:33:00 PM2/10/21
to Chromium OS Development, Julian Robbins, Mike Frysinger, Chromium OS Development, Adam Kearn, Brian Norris
julian@ubuntu:~$ cd ~/chromiumos

julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest

Command 'repo' not found, but can be installed with:

sudo snap install git-repo

julian@ubuntu:~/chromiumos$ repo sync -j4


Command 'repo' not found, but can be installed with:

sudo snap install git-repo

julian@ubuntu:~/chromiumos$ sudo snap install git-repo
[sudo] password for julian:
git-repo 1.12.37-3 from Jim Hodapp (jhodapp) installed

julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.

warning: templates not found /build/git-repo-publish/parts/git/install/usr/share/git-core/templates
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 1, done
remote: Finding sources: 100% (39/39)
remote: Total 39 (delta 11), reused 39 (delta 11)
Unpacking objects: 100% (39/39), done.
From https://gerrit.googlesource.com/git-repo
   2a2da80..ce64e3d  main       -> origin/main
 * [new tag]         v2.12.1    -> v2.12.1
  File "/home/julian/chromiumos/.repo/repo/main.py", line 79

    file=sys.stderr)
        ^
SyntaxError: invalid syntax
julian@ubuntu:~/chromiumos$

Julian Robbins

unread,
Feb 10, 2021, 2:35:37 PM2/10/21
to Chromium OS Development, Julian Robbins, Mike Frysinger, Chromium OS Development, Adam Kearn, Brian Norris

Im restoring from a prior snapshot, because I am unsure whats going on here, as I swear that i'm following each and every step.

Kevin Chowski

unread,
Feb 10, 2021, 2:35:40 PM2/10/21
to Julian Robbins, Chromium OS Development, Mike Frysinger, Adam Kearn, Brian Norris
That looks like an error you posted before, to which Mike suggested ensuring you have python 3.6 or higher installed.

What does `python --version` and `python3 --version` say?

You may need to `sudo snal install` a newer python version; I dunno what that package manager is, so sorry I can't suggest a specific package.

Julian Robbins

unread,
Feb 10, 2021, 2:36:35 PM2/10/21
to Chromium OS Development, Kevin Chowski, Chromium OS Development, Mike Frysinger, Adam Kearn, Brian Norris, Julian Robbins
Python is 3.8.5 last I checked. Using Ubuntu 20.04

Julian Robbins

unread,
Feb 10, 2021, 4:57:09 PM2/10/21
to Chromium OS Development, Julian Robbins, Kevin Chowski, Chromium OS Development, Mike Frysinger, Adam Kearn, Brian Norris
Did a reinstall, again, .. heres the python version.
julian@ubuntu:~$ python3 --version
Python 3.8.5
...



Made it to the repo step before i got another error.

julian@ubuntu:~$ sudo apt-get install git-core gitk git-gui curl lvm2 thin-provisioning-tools \
>      python-pkg-resources python-virtualenv python-oauth2client xz-utils \
>      python3.6
[sudo] password for julian:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Note, selecting 'python3.6-2to3' for regex 'python3.6'
Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
Package python-virtualenv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-virtualenv' has no installation candidate
E: Unable to locate package python-oauth2client
julian@ubuntu:~$ sudo apt-get install git-core gitk git-gui curl lvm2 thin-provisioning-tools \
>      python3-pkg-resources python3-virtualenv python3-oauth2client xz-utils \
>      python3.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Note, selecting 'python3.6-2to3' for regex 'python3.6'
Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
python3-pkg-resources is already the newest version (45.2.0-1).
python3-pkg-resources set to manually installed.
xz-utils is already the newest version (5.2.4-1ubuntu1).
xz-utils set to manually installed.
The following packages were automatically installed and are no longer required:
  libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  dmeventd git-man libaio1 libdevmapper-event1.02.1 liberror-perl
  liblvm2cmd2.03 libreadline5 libtcl8.6 libtk8.6 python-pip-whl
  python3-appdirs python3-distlib python3-distutils python3-filelock
  python3-importlib-metadata python3-more-itertools python3-openssl
  python3-pyasn1 python3-pyasn1-modules python3-rsa python3-sqlalchemy
  python3-sqlalchemy-ext python3-uritemplate python3-zipp tcl tcl8.6 tk tk8.6
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email gitweb git-cvs
  git-mediawiki git-svn meld python-openssl-doc python3-openssl-dbg
  python-sqlalchemy-doc python3-psycopg2 python3-mysqldb python3-fdb
  tcl-tclreadline
The following NEW packages will be installed:
  curl dmeventd git git-gui git-man gitk libaio1 libdevmapper-event1.02.1
  liberror-perl liblvm2cmd2.03 libreadline5 libtcl8.6 libtk8.6 lvm2
  python-pip-whl python3-appdirs python3-distlib python3-distutils
  python3-filelock python3-importlib-metadata python3-more-itertools
  python3-oauth2client python3-openssl python3-pyasn1 python3-pyasn1-modules
  python3-rsa python3-sqlalchemy python3-sqlalchemy-ext python3-uritemplate
  python3-virtualenv python3-zipp tcl tcl8.6 thin-provisioning-tools tk tk8.6
0 upgraded, 36 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 69.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.4 [161 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libdevmapper-event1.02.1 amd64 2:1.02.167-1ubuntu1 [11.9 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libaio1 amd64 0.3.112-5 [7,184 B]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liblvm2cmd2.03 amd64 2.03.07-1ubuntu1 [673 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/main amd64 dmeventd amd64 2:1.02.167-1ubuntu1 [35.1 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu focal/main amd64 git-man all 1:2.25.1-1ubuntu3 [884 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal/main amd64 git amd64 1:2.25.1-1ubuntu3 [4,554 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libtcl8.6 amd64 8.6.10+dfsg-1 [902 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libtk8.6 amd64 8.6.10-1 [714 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu focal/main amd64 tk8.6 amd64 8.6.10-1 [12.5 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu focal/main amd64 tcl8.6 amd64 8.6.10+dfsg-1 [14.8 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 tcl amd64 8.6.9+1 [5,112 B]
Get:14 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 tk amd64 8.6.9+1 [3,240 B]
Get:15 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 git-gui all 1:2.25.1-1ubuntu3 [222 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 gitk all 1:2.25.1-1ubuntu3 [142 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libreadline5 amd64 5.2+dfsg-3build3 [100 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu focal/main amd64 lvm2 amd64 2.03.07-1ubuntu1 [1,053 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.1 [1,799 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-appdirs all 1.4.3-2.1 [10.8 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-distlib all 0.3.0-1 [116 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-distutils all 3.8.5-1~20.04.1 [141 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-filelock all 3.0.12-2 [7,948 B]
Get:24 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-more-itertools all 4.2.0-1build1 [39.4 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-zipp all 1.0.0-1 [5,312 B]
Get:26 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-importlib-metadata all 1.5.0-1 [9,992 B]
Get:27 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-openssl all 19.0.0-1build1 [43.3 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-pyasn1 all 0.4.2-3build1 [46.7 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-pyasn1-modules all 0.2.1-0.2build1 [32.9 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-rsa all 4.0-3 [24.7 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-sqlalchemy all 1.3.12+ds1-1ubuntu2 [763 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-uritemplate all 0.6-4 [5,332 B]
Get:33 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-oauth2client all 4.1.2-5 [61.6 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-sqlalchemy-ext amd64 1.3.12+ds1-1ubuntu2 [13.6 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-virtualenv all 20.0.17-1 [63.4 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu focal/main amd64 thin-provisioning-tools amd64 0.8.5-4build1 [375 kB]
Fetched 13.1 MB in 11s (1,182 kB/s)                                            
Extracting templates from packages: 100%
Selecting previously unselected package curl.
(Reading database ... 181547 files and directories currently installed.)
Preparing to unpack .../00-curl_7.68.0-1ubuntu2.4_amd64.deb ...
Unpacking curl (7.68.0-1ubuntu2.4) ...
Selecting previously unselected package libdevmapper-event1.02.1:amd64.
Preparing to unpack .../01-libdevmapper-event1.02.1_2%3a1.02.167-1ubuntu1_amd64.deb ...
Unpacking libdevmapper-event1.02.1:amd64 (2:1.02.167-1ubuntu1) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../02-libaio1_0.3.112-5_amd64.deb ...
Unpacking libaio1:amd64 (0.3.112-5) ...
Selecting previously unselected package liblvm2cmd2.03:amd64.
Preparing to unpack .../03-liblvm2cmd2.03_2.03.07-1ubuntu1_amd64.deb ...
Unpacking liblvm2cmd2.03:amd64 (2.03.07-1ubuntu1) ...
Selecting previously unselected package dmeventd.
Preparing to unpack .../04-dmeventd_2%3a1.02.167-1ubuntu1_amd64.deb ...
Unpacking dmeventd (2:1.02.167-1ubuntu1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../05-liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../06-git-man_1%3a2.25.1-1ubuntu3_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package git.
Preparing to unpack .../07-git_1%3a2.25.1-1ubuntu3_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package libtcl8.6:amd64.
Preparing to unpack .../08-libtcl8.6_8.6.10+dfsg-1_amd64.deb ...
Unpacking libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Selecting previously unselected package libtk8.6:amd64.
Preparing to unpack .../09-libtk8.6_8.6.10-1_amd64.deb ...
Unpacking libtk8.6:amd64 (8.6.10-1) ...
Selecting previously unselected package tk8.6.
Preparing to unpack .../10-tk8.6_8.6.10-1_amd64.deb ...
Unpacking tk8.6 (8.6.10-1) ...
Selecting previously unselected package tcl8.6.
Preparing to unpack .../11-tcl8.6_8.6.10+dfsg-1_amd64.deb ...
Unpacking tcl8.6 (8.6.10+dfsg-1) ...
Selecting previously unselected package tcl.
Preparing to unpack .../12-tcl_8.6.9+1_amd64.deb ...
Unpacking tcl (8.6.9+1) ...
Selecting previously unselected package tk.
Preparing to unpack .../13-tk_8.6.9+1_amd64.deb ...
Unpacking tk (8.6.9+1) ...
Selecting previously unselected package git-gui.
Preparing to unpack .../14-git-gui_1%3a2.25.1-1ubuntu3_all.deb ...
Unpacking git-gui (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package gitk.
Preparing to unpack .../15-gitk_1%3a2.25.1-1ubuntu3_all.deb ...
Unpacking gitk (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../16-libreadline5_5.2+dfsg-3build3_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-3build3) ...
Selecting previously unselected package lvm2.
Preparing to unpack .../17-lvm2_2.03.07-1ubuntu1_amd64.deb ...
Unpacking lvm2 (2.03.07-1ubuntu1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../18-python-pip-whl_20.0.2-5ubuntu1.1_all.deb ...
Unpacking python-pip-whl (20.0.2-5ubuntu1.1) ...
Selecting previously unselected package python3-appdirs.
Preparing to unpack .../19-python3-appdirs_1.4.3-2.1_all.deb ...
Unpacking python3-appdirs (1.4.3-2.1) ...
Selecting previously unselected package python3-distlib.
Preparing to unpack .../20-python3-distlib_0.3.0-1_all.deb ...
Unpacking python3-distlib (0.3.0-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../21-python3-distutils_3.8.5-1~20.04.1_all.deb ...
Unpacking python3-distutils (3.8.5-1~20.04.1) ...
Selecting previously unselected package python3-filelock.
Preparing to unpack .../22-python3-filelock_3.0.12-2_all.deb ...
Unpacking python3-filelock (3.0.12-2) ...
Selecting previously unselected package python3-more-itertools.
Preparing to unpack .../23-python3-more-itertools_4.2.0-1build1_all.deb ...
Unpacking python3-more-itertools (4.2.0-1build1) ...
Selecting previously unselected package python3-zipp.
Preparing to unpack .../24-python3-zipp_1.0.0-1_all.deb ...
Unpacking python3-zipp (1.0.0-1) ...
Selecting previously unselected package python3-importlib-metadata.
Preparing to unpack .../25-python3-importlib-metadata_1.5.0-1_all.deb ...
Unpacking python3-importlib-metadata (1.5.0-1) ...
Selecting previously unselected package python3-openssl.
Preparing to unpack .../26-python3-openssl_19.0.0-1build1_all.deb ...
Unpacking python3-openssl (19.0.0-1build1) ...
Selecting previously unselected package python3-pyasn1.
Preparing to unpack .../27-python3-pyasn1_0.4.2-3build1_all.deb ...
Unpacking python3-pyasn1 (0.4.2-3build1) ...
Selecting previously unselected package python3-pyasn1-modules.
Preparing to unpack .../28-python3-pyasn1-modules_0.2.1-0.2build1_all.deb ...
Unpacking python3-pyasn1-modules (0.2.1-0.2build1) ...
Selecting previously unselected package python3-rsa.
Preparing to unpack .../29-python3-rsa_4.0-3_all.deb ...
Unpacking python3-rsa (4.0-3) ...
Selecting previously unselected package python3-sqlalchemy.
Preparing to unpack .../30-python3-sqlalchemy_1.3.12+ds1-1ubuntu2_all.deb ...
Unpacking python3-sqlalchemy (1.3.12+ds1-1ubuntu2) ...
Selecting previously unselected package python3-uritemplate.
Preparing to unpack .../31-python3-uritemplate_0.6-4_all.deb ...
Unpacking python3-uritemplate (0.6-4) ...
Selecting previously unselected package python3-oauth2client.
Preparing to unpack .../32-python3-oauth2client_4.1.2-5_all.deb ...
Unpacking python3-oauth2client (4.1.2-5) ...
Selecting previously unselected package python3-sqlalchemy-ext.
Preparing to unpack .../33-python3-sqlalchemy-ext_1.3.12+ds1-1ubuntu2_amd64.deb ...
Unpacking python3-sqlalchemy-ext (1.3.12+ds1-1ubuntu2) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../34-python3-virtualenv_20.0.17-1_all.deb ...
Unpacking python3-virtualenv (20.0.17-1) ...
Selecting previously unselected package thin-provisioning-tools.
Preparing to unpack .../35-thin-provisioning-tools_0.8.5-4build1_amd64.deb ...
Unpacking thin-provisioning-tools (0.8.5-4build1) ...
Setting up python3-distutils (3.8.5-1~20.04.1) ...
Setting up python3-more-itertools (4.2.0-1build1) ...
Setting up python3-filelock (3.0.12-2) ...
Setting up libreadline5:amd64 (5.2+dfsg-3build3) ...
Setting up libdevmapper-event1.02.1:amd64 (2:1.02.167-1ubuntu1) ...
Setting up python3-openssl (19.0.0-1build1) ...
Setting up python3-distlib (0.3.0-1) ...
Setting up python3-zipp (1.0.0-1) ...
Setting up python3-sqlalchemy (1.3.12+ds1-1ubuntu2) ...
Setting up python3-uritemplate (0.6-4) ...
Setting up liberror-perl (0.17029-1) ...
Setting up python3-sqlalchemy-ext (1.3.12+ds1-1ubuntu2) ...
Setting up libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Setting up python3-pyasn1 (0.4.2-3build1) ...
Setting up git-man (1:2.25.1-1ubuntu3) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.1) ...
Setting up curl (7.68.0-1ubuntu2.4) ...
Setting up libaio1:amd64 (0.3.112-5) ...
Setting up python3-appdirs (1.4.3-2.1) ...
Setting up tcl8.6 (8.6.10+dfsg-1) ...
Setting up python3-importlib-metadata (1.5.0-1) ...
Setting up libtk8.6:amd64 (8.6.10-1) ...
Setting up python3-virtualenv (20.0.17-1) ...
Setting up python3-pyasn1-modules (0.2.1-0.2build1) ...
Setting up thin-provisioning-tools (0.8.5-4build1) ...
update-initramfs: deferring update (trigger activated)
Setting up git (1:2.25.1-1ubuntu3) ...
Setting up tcl (8.6.9+1) ...
Setting up python3-rsa (4.0-3) ...
Setting up tk8.6 (8.6.10-1) ...
Setting up python3-oauth2client (4.1.2-5) ...
Setting up tk (8.6.9+1) ...
Setting up git-gui (1:2.25.1-1ubuntu3) ...
Setting up gitk (1:2.25.1-1ubuntu3) ...
Setting up liblvm2cmd2.03:amd64 (2.03.07-1ubuntu1) ...
Setting up dmeventd (2:1.02.167-1ubuntu1) ...
Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket.
dm-event.service is a disabled or a static unit, not starting it.
Setting up lvm2 (2.03.07-1ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service.
Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service.
Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket.
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for systemd (245.4-4ubuntu3.4) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-43-generic
julian@ubuntu:~$ python3 --version
Python 3.8.5
julian@ubuntu:~$ ^C
julian@ubuntu:~$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Cloning into 'depot_tools'...
remote: Sending approximately 36.60 MiB ...
remote: Counting objects: 4, done
remote: Finding sources: 100% (4/4)
remote: Total 41899 (delta 28565), reused 41899 (delta 28565)
Receiving objects: 100% (41899/41899), 36.60 MiB | 18.21 MiB/s, done.
Resolving deltas: 100% (28565/28565), done.
julian@ubuntu:~$ mkdir -p ~/chromiumos
julian@ubuntu:~$ cd chromiumos
Cloning into 'depot_tools'...
remote: Sending approximately 36.60 MiB ...
remote: Counting objects: 4, done
remote: Finding sources: 100% (4/4)
remote: Total 41899 (delta 28565), reused 41899 (delta 28565)
Receiving objects: 100% (41899/41899), 36.60 MiB | 18.52 MiB/s, done.
Resolving deltas: 100% (28565/28565), done.

julian@ubuntu:~/chromiumos$ export PATH="${PATH}:${HOME}/chromiumos/depot_tools"
julian@ubuntu:~/chromiumos$  sudo nano ~/.bashrc



Use "fg" to return to nano.

[1]+  Stopped                 sudo nano ~/.bashrc
julian@ubuntu:~/chromiumos$ fg
sudo nano ~/.bashrc
julian@ubuntu:~/chromiumos$ fg
bash: fg: current: no such job

julian@ubuntu:~/chromiumos$ sudo nano ~/.bashrc
julian@ubuntu:~/chromiumos$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git
/usr/bin/env: ‘python’: No such file or directory
julian@ubuntu:~/chromiumos$

dragon788

unread,
Feb 10, 2021, 5:39:09 PM2/10/21
to Julian Robbins, Chromium OS Development, Kevin Chowski, Mike Frysinger, Adam Kearn, Brian Norris
I think vapier mentioned in the group but 18.04 is the minimum version and 20.04 probably isn't heavily tested.

That said your issue is that since Python 2 was EOL before 20.04 came out, it was never packaged for that version so any `python-something` won't work, you'll need to use `python3-something`.

I'm not sure if the build scripts have all been updated to handle a missing python/python2.

A sort of workaround is symlinking python3 to /bin/python or /usr/bin/python but not everything will like it if you do that.

Julian Robbins

unread,
Feb 10, 2021, 6:00:01 PM2/10/21
to Chromium OS Development, drag...@gmail.com, Chromium OS Development, Kevin Chowski, Mike Frysinger, Adam Kearn, Brian Norris, Julian Robbins
Figured out the issue, the system was confused, and needed a reboot an needed python symlinked. So far, my network hasnt crashed, (thank you gig speed internet)

Lucas Wang

unread,
Feb 10, 2021, 8:38:10 PM2/10/21
to Chromium OS Development, jule...@gmail.com, Kevin Chowski, Chromium OS Development, Mike Frysinger, Adam Kearn, Brian Norris

For the error:
/usr/bin/env: ‘python’: No such file or directory

It seems like what's happening is that it's looking for a directory called 'python', but python 3 is actually called 'python3'. (I think)
 
I did what the second answer (not the one marked as the final answer) instructed to do here: https://askubuntu.com/questions/942930/usr-bin-env-python-no-such-file-or-directory

Which involves installing this package:

sudo apt-get install python-is-python3

And it seemed to work for me.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages