headmelted / codebuilds

Community builds of Visual Studio Code for Chromebooks and Raspberry Pi
https://code.headmelted.com
MIT License
1.03k stars 56 forks source link

install apparently worked on dell chromebook 13 (7310), but can't find how to launch code-oss #42

Open mohawkTrail opened 6 years ago

mohawkTrail commented 6 years ago

I did eventually manage to install, which took some time and research. Since I had restored the OS into debug mode, I had to modify the chroot password before the VS code installation worked.

I suspect something is wrong with the install, or possibly I just can't figure out how to launch VS code.

I've opened chroot, opened a shell, sudo bash, and then did a find / -iname code-oss\* without luck. I saw one directory named /mnt/stateful_partition/crouton/chroots/code-oss-chroot.

Any guidance on what I might have done wrong?

mohawkTrail commented 6 years ago

I've

All this seemed successful (and no permissions or password change issues this time).

I'm totally puzzled as to what to do next.

pivotcafe commented 6 years ago

After the install completes, do you see the final set of instructions on how to start VSCode? If not, run through each of the steps listed in the chromebook.sh file manually and see if you get any errors.

mohawkTrail commented 6 years ago

The final instructions are indeed missing. Here's my console output, following instructions after a fresh recovery.

I have not yet traced where the error occurs.

After this shows in the console, I am back at the crosh> prompt.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                          _   __ _             _             ___          _
 /\   /(_)___ _   _  __ _| | / _\ |_ _   _  __| (_) ___     / __\___   __| | ___ 
 \ \ / / / __| | | |/ _` | | \ \| __| | | |/ _` | |/ _ \   / /  / _ \ / _` |/ _ \
  \ V /| \__ \ |_| | (_| | | _\ \ |_| |_| | (_| | | (_) | / /__| (_) | (_| |  __/
   \_/ |_|___/\__,_|\__,_|_| \__/\__|\__,_|\__,_|_|\___/  \____/\___/ \__,_|\___|

                                  for Chromebooks          
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

                       PLEASE READ THIS INFORMATION CAREFULLY           

This tool will guide you through setting up your Chromebook for Visual Studio Code.

Code requires a Linux environment to run, so we'll need to install a Ubuntu 16.04
(Xenial Xerus) environment first. Then we'll install git, and some helpers to make
using Code as smooth as possible on your Chromebook, including a launch helper that
will start Code in it's own window 'code'.

During the installation of the Linux chroot, crouton will ask several questions to
ensure you are aware of the changes it is making.

PLEASE READ ALL OF THE QUESTIONS YOU ARE ASKED CAREFULLY BEFORE ANSWERING.

DISCLAIMER:

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THIS 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS SOFTWARE.

Install now? (y/n): y
Great! Let's get to it then.
Downloading crouton...
--2018-01-08 21:59:54--  https://goo.gl/fd3zc
Resolving goo.gl... 172.217.12.206, 2607:f8b0:4006:805::200e
Connecting to goo.gl|172.217.12.206|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/dnschneid/crouton/raw/master/installer/crouton [following]
--2018-01-08 21:59:54--  https://github.com/dnschneid/crouton/raw/master/installer/crouton
Resolving github.com... 192.30.255.112, 192.30.255.113
Connecting to github.com|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton [following]
--2018-01-08 21:59:55--  https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton
Resolving raw.githubusercontent.com... 151.101.116.133
Connecting to raw.githubusercontent.com|151.101.116.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3653 (3.6K) [application/octet-stream]
Saving to: 'crouton'

crouton                        100%[=================================================>]   3.57K  --.-KB/s    in 0s      

2018-01-08 21:59:55 (30.9 MB/s) - 'crouton' saved [3653/3653]

crouton downloaded.
Detecting architecture...
bash: [: missing `]'
Architecture detected as x86_64...
Preparing xenial chroot with XIWI (you will be prompted for a root password.  You can use crouton to encrypt the chroot later if you wish.)...
Chroot will be created as armhf. This will be changed later when Electron introduces 64-bit ARM support...

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Downloading latest crouton installer...
######################################################################## 100.0%
WARNING: USB booting is enabled; consider disabling it.
WARNING: Signed boot verification is disabled; consider enabling it.
You can use the following command: sudo crossystem dev_boot_usb=0 dev_boot_signed_only=1
Installing xenial-armhf chroot to /usr/local/chroots/code-oss-chroot
Downloading latest debootstrap...
######################################################################## 100.0%
Patching debootstrap...
Downloading bootstrap files...
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/ubuntu-archive-keyring.gpg
I: Retrieving InRelease 
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ports.ubuntu.com/ubuntu-ports...
I: Retrieving adduser 3.113+nmu3ubuntu4
I: Validating adduser 3.113+nmu3ubuntu4
I: Retrieving apt 1.2.10ubuntu1
I: Validating apt 1.2.10ubuntu1
I: Retrieving apt-utils 1.2.10ubuntu1
I: Validating apt-utils 1.2.10ubuntu1
I: Retrieving base-files 9.4ubuntu4
I: Validating base-files 9.4ubuntu4
I: Retrieving base-passwd 3.5.39
I: Validating base-passwd 3.5.39
I: Retrieving bash 4.3-14ubuntu1
I: Validating bash 4.3-14ubuntu1
I: Retrieving bsdutils 1:2.27.1-6ubuntu3
I: Validating bsdutils 1:2.27.1-6ubuntu3
I: Retrieving busybox-initramfs 1:1.22.0-15ubuntu1
I: Validating busybox-initramfs 1:1.22.0-15ubuntu1
I: Retrieving bzip2 1.0.6-8
I: Validating bzip2 1.0.6-8
I: Retrieving console-setup 1.108ubuntu15
I: Validating console-setup 1.108ubuntu15
I: Retrieving console-setup-linux 1.108ubuntu15
I: Validating console-setup-linux 1.108ubuntu15
I: Retrieving coreutils 8.25-2ubuntu2
I: Validating coreutils 8.25-2ubuntu2
I: Retrieving cpio 2.11+dfsg-5ubuntu1
I: Validating cpio 2.11+dfsg-5ubuntu1
I: Retrieving cron 3.0pl1-128ubuntu2
I: Validating cron 3.0pl1-128ubuntu2
I: Retrieving dash 0.5.8-2.1ubuntu2
I: Validating dash 0.5.8-2.1ubuntu2
I: Retrieving debconf 1.5.58ubuntu1
I: Validating debconf 1.5.58ubuntu1
I: Retrieving debconf-i18n 1.5.58ubuntu1
I: Validating debconf-i18n 1.5.58ubuntu1
I: Retrieving debianutils 4.7
I: Validating debianutils 4.7
I: Retrieving dh-python 2.20151103ubuntu1
I: Validating dh-python 2.20151103ubuntu1
I: Retrieving diffutils 1:3.3-3
I: Validating diffutils 1:3.3-3
I: Retrieving distro-info-data 0.28
I: Validating distro-info-data 0.28
I: Retrieving dpkg 1.18.4ubuntu1
I: Validating dpkg 1.18.4ubuntu1
I: Retrieving e2fslibs 1.42.13-1ubuntu1
I: Validating e2fslibs 1.42.13-1ubuntu1
I: Retrieving e2fsprogs 1.42.13-1ubuntu1
I: Validating e2fsprogs 1.42.13-1ubuntu1
I: Retrieving eject 2.1.5+deb1+cvs20081104-13.1
I: Validating eject 2.1.5+deb1+cvs20081104-13.1
I: Retrieving file 1:5.25-2ubuntu1
I: Validating file 1:5.25-2ubuntu1
I: Retrieving findutils 4.6.0+git+20160126-2
I: Validating findutils 4.6.0+git+20160126-2
I: Retrieving gcc-5-base 5.3.1-14ubuntu2
I: Validating gcc-5-base 5.3.1-14ubuntu2
I: Retrieving gcc-6-base 6.0.1-0ubuntu1
I: Validating gcc-6-base 6.0.1-0ubuntu1
I: Retrieving gnupg 1.4.20-1ubuntu3
I: Validating gnupg 1.4.20-1ubuntu3
I: Retrieving gpgv 1.4.20-1ubuntu3
I: Validating gpgv 1.4.20-1ubuntu3
I: Retrieving grep 2.24-1
I: Validating grep 2.24-1
I: Retrieving gzip 1.6-4ubuntu1
I: Validating gzip 1.6-4ubuntu1
I: Retrieving hostname 3.16ubuntu2
I: Validating hostname 3.16ubuntu2
I: Retrieving ifupdown 0.8.10ubuntu1
I: Validating ifupdown 0.8.10ubuntu1
I: Retrieving init 1.29ubuntu1
I: Validating init 1.29ubuntu1
I: Retrieving init-system-helpers 1.29ubuntu1
I: Validating init-system-helpers 1.29ubuntu1
I: Retrieving initramfs-tools 0.122ubuntu8
I: Validating initramfs-tools 0.122ubuntu8
I: Retrieving initramfs-tools-bin 0.122ubuntu8
I: Validating initramfs-tools-bin 0.122ubuntu8
I: Retrieving initramfs-tools-core 0.122ubuntu8
I: Validating initramfs-tools-core 0.122ubuntu8
I: Retrieving initscripts 2.88dsf-59.3ubuntu2
I: Validating initscripts 2.88dsf-59.3ubuntu2
I: Retrieving insserv 1.14.0-5ubuntu3
I: Validating insserv 1.14.0-5ubuntu3
I: Retrieving iproute2 4.3.0-1ubuntu3
I: Validating iproute2 4.3.0-1ubuntu3
I: Retrieving iputils-ping 3:20121221-5ubuntu2
I: Validating iputils-ping 3:20121221-5ubuntu2
I: Retrieving isc-dhcp-client 4.3.3-5ubuntu12
I: Validating isc-dhcp-client 4.3.3-5ubuntu12
I: Retrieving isc-dhcp-common 4.3.3-5ubuntu12
I: Validating isc-dhcp-common 4.3.3-5ubuntu12
I: Retrieving kbd 1.15.5-1ubuntu4
I: Validating kbd 1.15.5-1ubuntu4
I: Retrieving keyboard-configuration 1.108ubuntu15
I: Validating keyboard-configuration 1.108ubuntu15
I: Retrieving klibc-utils 2.0.4-8ubuntu1
I: Validating klibc-utils 2.0.4-8ubuntu1
I: Retrieving kmod 22-1ubuntu4
I: Validating kmod 22-1ubuntu4
I: Retrieving less 481-2.1
I: Validating less 481-2.1
I: Retrieving libacl1 2.2.52-3
I: Validating libacl1 2.2.52-3
I: Retrieving libapparmor1 2.10.95-0ubuntu2
I: Validating libapparmor1 2.10.95-0ubuntu2
I: Retrieving libapt-inst2.0 1.2.10ubuntu1
I: Validating libapt-inst2.0 1.2.10ubuntu1
I: Retrieving libapt-pkg5.0 1.2.10ubuntu1
I: Validating libapt-pkg5.0 1.2.10ubuntu1
I: Retrieving libatm1 1:2.5.1-1.5
I: Validating libatm1 1:2.5.1-1.5
I: Retrieving libattr1 1:2.4.47-2
I: Validating libattr1 1:2.4.47-2
I: Retrieving libaudit-common 1:2.4.5-1ubuntu2
I: Validating libaudit-common 1:2.4.5-1ubuntu2
I: Retrieving libaudit1 1:2.4.5-1ubuntu2
I: Validating libaudit1 1:2.4.5-1ubuntu2
I: Retrieving libblkid1 2.27.1-6ubuntu3
I: Validating libblkid1 2.27.1-6ubuntu3
I: Retrieving libbsd0 0.8.2-1
I: Validating libbsd0 0.8.2-1
I: Retrieving libbz2-1.0 1.0.6-8
I: Validating libbz2-1.0 1.0.6-8
I: Retrieving libc-bin 2.23-0ubuntu3
I: Validating libc-bin 2.23-0ubuntu3
I: Retrieving libc6 2.23-0ubuntu3
I: Validating libc6 2.23-0ubuntu3
I: Retrieving libcap2 1:2.24-12
I: Validating libcap2 1:2.24-12
I: Retrieving libcap2-bin 1:2.24-12
I: Validating libcap2-bin 1:2.24-12
I: Retrieving libcomerr2 1.42.13-1ubuntu1
I: Validating libcomerr2 1.42.13-1ubuntu1
I: Retrieving libcryptsetup4 2:1.6.6-5ubuntu2
I: Validating libcryptsetup4 2:1.6.6-5ubuntu2
I: Retrieving libdb5.3 5.3.28-11
I: Validating libdb5.3 5.3.28-11
I: Retrieving libdebconfclient0 0.198ubuntu1
I: Validating libdebconfclient0 0.198ubuntu1
I: Retrieving libdevmapper1.02.1 2:1.02.110-1ubuntu10
I: Validating libdevmapper1.02.1 2:1.02.110-1ubuntu10
I: Retrieving libdns-export162 1:9.10.3.dfsg.P4-8
I: Validating libdns-export162 1:9.10.3.dfsg.P4-8
I: Retrieving libestr0 0.1.10-1
I: Validating libestr0 0.1.10-1
I: Retrieving libexpat1 2.1.0-7
I: Validating libexpat1 2.1.0-7
I: Retrieving libfdisk1 2.27.1-6ubuntu3
I: Validating libfdisk1 2.27.1-6ubuntu3
I: Retrieving libffi6 3.2.1-4
I: Validating libffi6 3.2.1-4
I: Retrieving libfribidi0 0.19.7-1
I: Validating libfribidi0 0.19.7-1
I: Retrieving libgcc1 1:6.0.1-0ubuntu1
I: Validating libgcc1 1:6.0.1-0ubuntu1
I: Retrieving libgcrypt20 1.6.5-2
I: Validating libgcrypt20 1.6.5-2
I: Retrieving libgmp10 2:6.1.0+dfsg-2
I: Validating libgmp10 2:6.1.0+dfsg-2
I: Retrieving libgnutls-openssl27 3.4.10-4ubuntu1
I: Validating libgnutls-openssl27 3.4.10-4ubuntu1
I: Retrieving libgnutls30 3.4.10-4ubuntu1
I: Validating libgnutls30 3.4.10-4ubuntu1
I: Retrieving libgpg-error0 1.21-2ubuntu1
I: Validating libgpg-error0 1.21-2ubuntu1
I: Retrieving libhogweed4 3.2-1
I: Validating libhogweed4 3.2-1
I: Retrieving libidn11 1.32-3ubuntu1
I: Validating libidn11 1.32-3ubuntu1
I: Retrieving libisc-export160 1:9.10.3.dfsg.P4-8
I: Validating libisc-export160 1:9.10.3.dfsg.P4-8
I: Retrieving libjson-c2 0.11-4ubuntu2
I: Validating libjson-c2 0.11-4ubuntu2
I: Retrieving libklibc 2.0.4-8ubuntu1
I: Validating libklibc 2.0.4-8ubuntu1
I: Retrieving libkmod2 22-1ubuntu4
I: Validating libkmod2 22-1ubuntu4
I: Retrieving liblocale-gettext-perl 1.07-1build1
I: Validating liblocale-gettext-perl 1.07-1build1
I: Retrieving liblz4-1 0.0~r131-2ubuntu2
I: Validating liblz4-1 0.0~r131-2ubuntu2
I: Retrieving liblzma5 5.1.1alpha+20120614-2ubuntu2
I: Validating liblzma5 5.1.1alpha+20120614-2ubuntu2
I: Retrieving libmagic1 1:5.25-2ubuntu1
I: Validating libmagic1 1:5.25-2ubuntu1
I: Retrieving libmnl0 1.0.3-5
I: Validating libmnl0 1.0.3-5
I: Retrieving libmount1 2.27.1-6ubuntu3
I: Validating libmount1 2.27.1-6ubuntu3
I: Retrieving libmpdec2 2.4.2-1
I: Validating libmpdec2 2.4.2-1
I: Retrieving libncurses5 6.0+20160213-1ubuntu1
I: Validating libncurses5 6.0+20160213-1ubuntu1
I: Retrieving libncursesw5 6.0+20160213-1ubuntu1
I: Validating libncursesw5 6.0+20160213-1ubuntu1
I: Retrieving libnettle6 3.2-1
I: Validating libnettle6 3.2-1
I: Retrieving libnewt0.52 0.52.18-1ubuntu2
I: Validating libnewt0.52 0.52.18-1ubuntu2
I: Retrieving libnih1 1.0.3-4.3ubuntu1
I: Validating libnih1 1.0.3-4.3ubuntu1
I: Retrieving libp11-kit0 0.23.2-3
I: Validating libp11-kit0 0.23.2-3
I: Retrieving libpam-modules 1.1.8-3.2ubuntu2
I: Validating libpam-modules 1.1.8-3.2ubuntu2
I: Retrieving libpam-modules-bin 1.1.8-3.2ubuntu2
I: Validating libpam-modules-bin 1.1.8-3.2ubuntu2
I: Retrieving libpam-runtime 1.1.8-3.2ubuntu2
I: Validating libpam-runtime 1.1.8-3.2ubuntu2
I: Retrieving libpam0g 1.1.8-3.2ubuntu2
I: Validating libpam0g 1.1.8-3.2ubuntu2
I: Retrieving libpcre3 2:8.38-3.1
I: Validating libpcre3 2:8.38-3.1
I: Retrieving libpng12-0 1.2.54-1ubuntu1
I: Validating libpng12-0 1.2.54-1ubuntu1
I: Retrieving libpopt0 1.16-10
I: Validating libpopt0 1.16-10
I: Retrieving libprocps4 2:3.3.10-4ubuntu2
I: Validating libprocps4 2:3.3.10-4ubuntu2
I: Retrieving libpython3-stdlib 3.5.1-3
I: Validating libpython3-stdlib 3.5.1-3
I: Retrieving libpython3.5-minimal 3.5.1-10
I: Validating libpython3.5-minimal 3.5.1-10
I: Retrieving libpython3.5-stdlib 3.5.1-10
I: Validating libpython3.5-stdlib 3.5.1-10
I: Retrieving libreadline6 6.3-8ubuntu2
I: Validating libreadline6 6.3-8ubuntu2
I: Retrieving libseccomp2 2.2.3-3ubuntu3
I: Validating libseccomp2 2.2.3-3ubuntu3
I: Retrieving libselinux1 2.4-3build2
I: Validating libselinux1 2.4-3build2
I: Retrieving libsemanage-common 2.3-1build3
I: Validating libsemanage-common 2.3-1build3
I: Retrieving libsemanage1 2.3-1build3
I: Validating libsemanage1 2.3-1build3
I: Retrieving libsepol1 2.4-2
I: Validating libsepol1 2.4-2
I: Retrieving libslang2 2.3.0-2ubuntu1
I: Validating libslang2 2.3.0-2ubuntu1
I: Retrieving libsmartcols1 2.27.1-6ubuntu3
I: Validating libsmartcols1 2.27.1-6ubuntu3
I: Retrieving libsqlite3-0 3.11.0-1ubuntu1
I: Validating libsqlite3-0 3.11.0-1ubuntu1
I: Retrieving libss2 1.42.13-1ubuntu1
I: Validating libss2 1.42.13-1ubuntu1
I: Retrieving libssl1.0.0 1.0.2g-1ubuntu4
I: Validating libssl1.0.0 1.0.2g-1ubuntu4
I: Retrieving libstdc++6 5.3.1-14ubuntu2
I: Validating libstdc++6 5.3.1-14ubuntu2
I: Retrieving libsystemd0 229-4ubuntu4
I: Validating libsystemd0 229-4ubuntu4
I: Retrieving libtasn1-6 4.7-3
I: Validating libtasn1-6 4.7-3
I: Retrieving libtext-charwidth-perl 0.04-7build5
I: Validating libtext-charwidth-perl 0.04-7build5
I: Retrieving libtext-iconv-perl 1.7-5build4
I: Validating libtext-iconv-perl 1.7-5build4
I: Retrieving libtext-wrapi18n-perl 0.06-7.1
I: Validating libtext-wrapi18n-perl 0.06-7.1
I: Retrieving libtinfo5 6.0+20160213-1ubuntu1
I: Validating libtinfo5 6.0+20160213-1ubuntu1
I: Retrieving libudev1 229-4ubuntu4
I: Validating libudev1 229-4ubuntu4
I: Retrieving libusb-0.1-4 2:0.1.12-28
I: Validating libusb-0.1-4 2:0.1.12-28
I: Retrieving libustr-1.0-1 1.0.4-5
I: Validating libustr-1.0-1 1.0.4-5
I: Retrieving libuuid1 2.27.1-6ubuntu3
I: Validating libuuid1 2.27.1-6ubuntu3
I: Retrieving libxtables11 1.6.0-2ubuntu3
I: Validating libxtables11 1.6.0-2ubuntu3
I: Retrieving linux-base 4.0ubuntu1
I: Validating linux-base 4.0ubuntu1
I: Retrieving locales 2.23-0ubuntu3
I: Validating locales 2.23-0ubuntu3
I: Retrieving login 1:4.2-3.1ubuntu5
I: Validating login 1:4.2-3.1ubuntu5
I: Retrieving logrotate 3.8.7-2ubuntu2
I: Validating logrotate 3.8.7-2ubuntu2
I: Retrieving lsb-base 9.20160110
I: Validating lsb-base 9.20160110
I: Retrieving lsb-release 9.20160110
I: Validating lsb-release 9.20160110
I: Retrieving makedev 2.3.1-93ubuntu1
I: Validating makedev 2.3.1-93ubuntu1
I: Retrieving mawk 1.3.3-17ubuntu2
I: Validating mawk 1.3.3-17ubuntu2
I: Retrieving mime-support 3.59ubuntu1
I: Validating mime-support 3.59ubuntu1
I: Retrieving mount 2.27.1-6ubuntu3
I: Validating mount 2.27.1-6ubuntu3
I: Retrieving multiarch-support 2.23-0ubuntu3
I: Validating multiarch-support 2.23-0ubuntu3
I: Retrieving ncurses-base 6.0+20160213-1ubuntu1
I: Validating ncurses-base 6.0+20160213-1ubuntu1
I: Retrieving ncurses-bin 6.0+20160213-1ubuntu1
I: Validating ncurses-bin 6.0+20160213-1ubuntu1
I: Retrieving net-tools 1.60-26ubuntu1
I: Validating net-tools 1.60-26ubuntu1
I: Retrieving netbase 5.3
I: Validating netbase 5.3
I: Retrieving netcat-openbsd 1.105-7ubuntu1
I: Validating netcat-openbsd 1.105-7ubuntu1
I: Retrieving passwd 1:4.2-3.1ubuntu5
I: Validating passwd 1:4.2-3.1ubuntu5
I: Retrieving perl-base 5.22.1-9
I: Validating perl-base 5.22.1-9
I: Retrieving procps 2:3.3.10-4ubuntu2
I: Validating procps 2:3.3.10-4ubuntu2
I: Retrieving python3 3.5.1-3
I: Validating python3 3.5.1-3
I: Retrieving python3-minimal 3.5.1-3
I: Validating python3-minimal 3.5.1-3
I: Retrieving python3.5 3.5.1-10
I: Validating python3.5 3.5.1-10
I: Retrieving python3.5-minimal 3.5.1-10
I: Validating python3.5-minimal 3.5.1-10
I: Retrieving readline-common 6.3-8ubuntu2
I: Validating readline-common 6.3-8ubuntu2
I: Retrieving resolvconf 1.78ubuntu2
I: Validating resolvconf 1.78ubuntu2
I: Retrieving rsyslog 8.16.0-1ubuntu3
I: Validating rsyslog 8.16.0-1ubuntu3
I: Retrieving sed 4.2.2-7
I: Validating sed 4.2.2-7
I: Retrieving sensible-utils 0.0.9
I: Validating sensible-utils 0.0.9
I: Retrieving sudo 1.8.16-0ubuntu1
I: Validating sudo 1.8.16-0ubuntu1
I: Retrieving systemd 229-4ubuntu4
I: Validating systemd 229-4ubuntu4
I: Retrieving systemd-sysv 229-4ubuntu4
I: Validating systemd-sysv 229-4ubuntu4
I: Retrieving sysv-rc 2.88dsf-59.3ubuntu2
I: Validating sysv-rc 2.88dsf-59.3ubuntu2
I: Retrieving sysvinit-utils 2.88dsf-59.3ubuntu2
I: Validating sysvinit-utils 2.88dsf-59.3ubuntu2
I: Retrieving tar 1.28-2.1
I: Validating tar 1.28-2.1
I: Retrieving tzdata 2016d-0ubuntu0.16.04
I: Validating tzdata 2016d-0ubuntu0.16.04
I: Retrieving ubuntu-keyring 2012.05.19
I: Validating ubuntu-keyring 2012.05.19
I: Retrieving ubuntu-minimal 1.361
I: Validating ubuntu-minimal 1.361
I: Retrieving ucf 3.0036
I: Validating ucf 3.0036
I: Retrieving udev 229-4ubuntu4
I: Validating udev 229-4ubuntu4
I: Retrieving ureadahead 0.100.0-19
I: Validating ureadahead 0.100.0-19
I: Retrieving util-linux 2.27.1-6ubuntu3
I: Validating util-linux 2.27.1-6ubuntu3
I: Retrieving vim-common 2:7.4.1689-3ubuntu1
I: Validating vim-common 2:7.4.1689-3ubuntu1
I: Retrieving vim-tiny 2:7.4.1689-3ubuntu1
I: Validating vim-tiny 2:7.4.1689-3ubuntu1
I: Retrieving whiptail 0.52.18-1ubuntu2
I: Validating whiptail 0.52.18-1ubuntu2
I: Retrieving xkb-data 2.16-1ubuntu1
I: Validating xkb-data 2.16-1ubuntu1
I: Retrieving zlib1g 1:1.2.8.dfsg-2ubuntu4
I: Validating zlib1g 1:1.2.8.dfsg-2ubuntu4
I: Chosen extractor for .deb packages: ar
I: Extracting adduser...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting bsdutils...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting findutils...
I: Extracting gcc-6-base...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init...
I: Extracting init-system-helpers...
I: Extracting initscripts...
I: Extracting insserv...
I: Extracting libacl1...
I: Extracting libapparmor1...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting libblkid1...
I: Extracting libbz2-1.0...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting libcap2...
I: Extracting libcap2-bin...
I: Extracting libcomerr2...
I: Extracting libcryptsetup4...
I: Extracting libdb5.3...
I: Extracting libdebconfclient0...
I: Extracting libdevmapper1.02.1...
I: Extracting libfdisk1...
I: Extracting libgcc1...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting libkmod2...
I: Extracting liblzma5...
I: Extracting libmount1...
I: Extracting libncurses5...
I: Extracting libncursesw5...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre3...
I: Extracting libprocps4...
I: Extracting libseccomp2...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libsmartcols1...
I: Extracting libss2...
I: Extracting libsystemd0...
I: Extracting libtinfo5...
I: Extracting libudev1...
I: Extracting libustr-1.0-1...
I: Extracting libuuid1...
I: Extracting locales...
I: Extracting login...
I: Extracting lsb-base...
I: Extracting makedev...
I: Extracting mawk...
I: Extracting mount...
I: Extracting multiarch-support...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting passwd...
I: Extracting perl-base...
I: Extracting procps...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting systemd...
I: Extracting systemd-sysv...
mohawkTrail commented 6 years ago

chromebook.sh contained:

#!/bin/sh

clear;
echo "
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                          _   __ _             _             ___          _
 /\   /(_)___ _   _  __ _| | / _\ |_ _   _  __| (_) ___     / __\___   __| | ___ 
 \ \ / / / __| | | |/ _\` | | \ \| __| | | |/ _\` | |/ _ \   / /  / _ \ / _\` |/ _ \\
  \ V /| \__ \ |_| | (_| | | _\ \ |_| |_| | (_| | | (_) | / /__| (_) | (_| |  __/
   \_/ |_|___/\__,_|\__,_|_| \__/\__|\__,_|\__,_|_|\___/  \____/\___/ \__,_|\___|

                                  for Chromebooks          
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

                       PLEASE READ THIS INFORMATION CAREFULLY           

This tool will guide you through setting up your Chromebook for Visual Studio Code.

Code requires a Linux environment to run, so we'll need to install a Ubuntu 16.04
(Xenial Xerus) environment first. Then we'll install git, and some helpers to make
using Code as smooth as possible on your Chromebook, including a launch helper that
will start Code in it's own window 'code'.

During the installation of the Linux chroot, crouton will ask several questions to
ensure you are aware of the changes it is making.

PLEASE READ ALL OF THE QUESTIONS YOU ARE ASKED CAREFULLY BEFORE ANSWERING.

DISCLAIMER:

THIS SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THIS 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS SOFTWARE.

";

printf "Install now? (y/n): "
read install_now;
if [ $install_now != "y" ]; then
  echo "No problem!  Please just run me again whenever you wish to install Visual Studio Code.";
  exit;
fi;

cd ~/Downloads;

echo "Great! Let's get to it then.";
echo "Downloading crouton...";
wget https://goo.gl/fd3zc -O crouton;
echo "crouton downloaded.";

echo "Detecting architecture...";
MACHINE_MTYPE="$(uname -m)";
ARCH="${MACHINE_MTYPE}";
REPOSITORY_NAME="headmelted";

if [ "$ARCH" = "armv7l" ]; then ARCH="armhf"; fi;
if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386"]; then REPOSITORY_NAME="Microsoft"; fi;

echo "Architecture detected as ${ARCH}...";

echo "Preparing xenial chroot with XIWI (you will be prompted for a root password.  You can use crouton to encrypt the chroot later if you wish.)..."
chmod +x ./crouton;
if [ "$ARCH" = "arm64" ]; then
  sudo sh ./crouton -t xiwi -n code-oss-chroot;
else
  echo "Chroot will be created as armhf. This will be changed later when Electron introduces 64-bit ARM support...";
  sudo sh ./crouton -t xiwi -a armhf -n code-oss-chroot;
fi;

if [ $? -eq 0 ]; then
  echo "Crouton install script complete.";
else
  echo "Crouton install script failed.";
  exit 1;
fi;

echo "Entering chroot to install Visual Studio Code, you may need to enter the chronos password if you've previously changed it, and/or the password you entered above for the chroot!";
sudo enter-chroot -n code-oss-chroot sudo -S sh -c "$( curl -s https://code.headmelted.com/installers/apt.sh )";
if [ $? -eq 0 ]; then
  echo "APT install script complete.";
else
  echo "APT install script failed.";
  exit 1;
fi;

echo "Removing any existing 'code' alias from ~/.bashrc...";
if [ -e ~/.bashrc ]; then sudo sed -i.bak '/alias code=/d' ~/.bashrc; fi;
echo "Done!"

CODE_EXECUTABLE_NAME="";
if [ "${REPOSITORY_NAME}" = "headmelted" ]; then
  CODE_EXECUTABLE_NAME="code-oss";
else
  CODE_EXECUTABLE_NAME="code-insiders";
fi;

echo "Removing existing 'code' aliases...";
sudo sed -i '/^alias code/d' ~/.bashrc;
echo "Done!";

echo "Aliasing 'code'..."
sudo echo "alias code=\"sudo startxiwi -n code-oss-chroot ${CODE_EXECUTABLE_NAME}\"" >> ~/.bashrc;
echo "Done!"

echo "Reloading .bashrc...";
. ~/.bashrc;
echo "Done!";

echo "

To run Visual Studio Code from now on perform the following steps:

1) Press Ctrl+Alt+T on your keyboard to open a crosh shell.
2) Type (without the quotes!) \"shell\" and press return.
3) Type (without the quotes!) \"code\" and press return.

";

exit;
mohawkTrail commented 6 years ago

OK, so, some fancy output to the console masked the output so the preceding output dump is misleading.
The real failure appears to be chroot: failed to run command '/prepare.sh': No such file or directory

The real end of the stderr output looks like this:

I: Extracting tzdata...
I: Extracting util-linux...
I: Extracting zlib1g...
Moving bootstrap files into the chroot...
Preparing chroot environment...
Installing brightness into the chroot...
Installing croutonpowerd into the chroot...
Installing croutonversion into the chroot...
Installing host-dbus into the chroot...
Installing host-wayland into the chroot...
Installing volume into the chroot...
Installing pulseaudio-default.pa into the chroot...
Installing croutonclip into the chroot...
Installing croutonnotify into the chroot...
Installing croutonurlhandler into the chroot...
Installing startxiwi into the host...
Installing croutoncycle into the chroot...
Installing croutonfindnacl into the chroot...
Installing croutontriggerd into the chroot...
Installing croutonxinitrc-wrapper into the chroot...
Installing setres into the chroot...
Installing xinit into the chroot...
Installing xiwi into the chroot...
Installing xbindkeysrc.scm into the chroot...
Installing xiwi.conf into the chroot...
Installing xorg-dummy.conf into the chroot...
Installing xserverrc into the chroot...
Installing xserverrc-xiwi into the chroot...
Installing xserverrc-local.example into the chroot...
Installing enter-chroot into the host...
Installing delete-chroot into the host...
Installing edit-chroot into the host...
Installing mount-chroot into the host...
Installing unmount-chroot into the host...
Installing crash_reporter_wrapper into the host...
chroot: failed to run command '/prepare.sh': No such file or directory
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/code-oss-chroot...
edimitchel commented 6 years ago

@mohawkTrail my friend, we are two with this issue.. I'd install Crouton and I see that I can't mount with enter-chroot.

/mnt/stateful_partition/crouton/chroots/code-oss-chroot doesn't appear to be a valid chroot. I've seen when I launch code-oss install that ends by (red) line : so if I fix this chroot mount, I think it'll be ok !

edimitchel commented 6 years ago

@mohawkTrail WIN ! 🎆

How to I bring visual studio code into my chromebook : by applying command from chromebook.sh : Before, I delete chroot with sudo edit-chroot -d code-oss-chroot

sudo sh ./crouton -t xiwi -a armhf -n code-oss-chroot;

sudo enter-chroot -n code-oss-chroot sudo -S sh -c "$( curl -s https://code.headmelted.com/installers/apt.sh )";

sudo echo "alias code=\"sudo startxiwi -n code-oss-chroot code-oss \"" >> ~/.bashrc;

. ~/.bashrc;

VOILA

edimitchel commented 6 years ago

I run it from the folder where the crouton install file is (I download it from his official repo).

Don't forget to install the crouton extension

mohawkTrail commented 6 years ago

Thanks @edimitchel.

Do you have a guess at why the provided install did not work?

edimitchel commented 6 years ago

For me, I guess two reasons :

chwzr commented 6 years ago

@edimitchel can you provide exact steps to successfull install vscode when this error occurs?

When I run the first line sudo sh ./crouton -t xiwi -a armhf -n code-oss-chroot; console logs sh cant open ./crouton ...

so I guess its the crouton install file which is missing, but which of the files in the repo is the install file? and how and where to download it... ? should i run it again?

  1. type shell and hit enter
  2. guess I should download the crouton installer file in this step but how?
  3. delete old chroot: sudo edit-chroot -d code-oss-chroot
  4. run these commands:
    
    sudo sh ./crouton -t xiwi -a armhf -n code-oss-chroot;

sudo enter-chroot -n code-oss-chroot sudo -S sh -c "$( curl -s https://code.headmelted.com/installers/apt.sh )";

sudo echo "alias code=\"sudo startxiwi -n code-oss-chroot code-oss \"" >> ~/.bashrc;

. ~/.bashrc;


4. run `code` to finish installing vscode. 
5. success

Maybe you could correct theese steps to help other newbies to install vscode :) 
Thank you in advance

kind regards chwzrlee
edimitchel commented 6 years ago

I said what step is OK or not and what you will do to fix this issue :

  1. OK
  2. To install crouton, simply download release : a zip file to extract (i.e. in Download folder)
  3. OK
  4. OK too (launch each command separately)
  5. OK, but it's not to finish installing, it's simply a launch command
  6. OK

If you need more help, you can contact me troughs my website

edimitchel commented 6 years ago

Don't forget to install Crouton integration extention

Sharpiro commented 6 years ago

Thanks @edimitchel this worked for me.

However since i'm using a Celeron processor the first command had to be modified to: sudo sh ./crouton -t xiwi -n code-oss-chroot;

edimitchel commented 6 years ago

I'm glad that my solution helped you @Sharpiro.

KingGoldenWax commented 6 years ago

@edimitchel Could use some help. After following all the instructions I now get this "sh: 0: Can't open ./crouton"

barrymichaeldoyle commented 6 years ago

@KingGoldenWax try sudo sh ~/Downloads/crouton -t xiwi -n code-oss-chroot;

chirhotech commented 6 years ago

Hi. I'm a little late to the party on this.

I am having the issue where the install script is installing an armhf chroot on my x86 based chromebook. (acer c720). is there a way to modify the install script to skip the architecture discovery and force an x86 install? or is there a command line switch to the script to indicate architecture preference at run time?

thanks