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

arm64 supported? #15

Closed matthewsimo closed 7 years ago

matthewsimo commented 7 years ago

Hi there, was giving this a whirl on my Samsung Chromebook Plus and ran into this error towards the end of the build. I was doing the scripted linux installation as I already had a xenial chroot set up. Any ideas? I'm not too familiar with Linux but I follow instructions well!

Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://dl.bintray.com/headmelted/deb-code-oss wheezy InRelease' doesn't support architecture 'arm64'
Done!
Installing Visual Studio Code...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package code-oss
Visual Studio Code install failed.
headmelted commented 7 years ago

Hi there,

Unfortunately arm64 is not supported, but only because Electron itself does not support it fully (long story!).

HOWEVER, you might be able to use the armhf build just fine by entering the chroot and doing this:

sudo apt-get install code-oss:armhf

Let me know how the above works for you on your machine (not having your exact Chromebook in front of me means its a little guesswork).

On 22 Mar 2017 01:43, "Matthew Simo" notifications@github.com wrote:

Hi there, was giving this a whirl on my Samsung Chromebook Plus and ran into this error towards the end of the build. Any idea, I'm not too familiar with Linux but I follow instructions well!

Reading package lists... Done N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://dl.bintray.com/headmelted/deb-code-oss wheezy InRelease' doesn't support architecture 'arm64' Done! Installing Visual Studio Code... Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package code-oss Visual Studio Code install failed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/headmelted/code-builds/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AKYVoDF20rcYOpNOmF_vMP3vebKxtBgEks5roHy5gaJpZM4Mkn7S .

bkominik commented 7 years ago

Hi,

I'm running a xenial chroot, so I modified your install script. Here's the output:

$ sudo apt-get install code-oss:armhf Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package code-oss:armhf

matthewsimo commented 7 years ago

@headmelted Thanks for the response, I gave that a shot and got the same error as @bkominik

E: Unable to locate package code-oss:armhf
bkominik commented 7 years ago

I was able to work around this issue installing a 32bit arm chroot. Once this installed the regular scripts work fine. There is a -a ARCH option in crouton. I did -a arm.

headmelted commented 7 years ago

Sorry, I missed a step above.

The chroot should not be necessary in this case, although is a viable option.

As ARMv8 is backwards compatible, the best solution is to:

sudo dpkg --add-architecture armhf

prior to executing the steps above.

For example:

sudo dpkg --add-architecture armhf && sudo apt-get update && sudo apt-get install code-oss:armhf

Let me know if this helps at all (hopefully it will!)

bkominik commented 7 years ago

That did work, thanks! much better to have a 64bit OS. The only additional step I needed to do was install these packages: libxtst6:armhf libasound2:armhf

On Fri, Apr 7, 2017 at 10:44 AM, Jay Rodgers notifications@github.com wrote:

Sorry, I missed a step above.

The chroot should not be necessary in this case, although is a viable option.

As ARMv8 is backwards compatible, the best solution is to:

sudo dpkg --add-architecture armhf

prior to executing the steps above.

For example:

sudo dpkg --add-architecture armhf && sudo apt-get update && sudo apt-get install code-oss:armhf

Let me know if this helps at all (hopefully it will!)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/headmelted/code-builds/issues/15#issuecomment-292556388, or mute the thread https://github.com/notifications/unsubscribe-auth/AG_N40UBt2ClwbmMleZ128VURytQ7fd1ks5rtkvfgaJpZM4Mkn7S .

blinderjay commented 6 years ago

Unable to correct dependencies I'm so pleased that the code-oss have been installed in my chroot(ubuntu).However some dependencies seem to be wrong. my computer is chromebook plus with aarch architecture,

Rafcin commented 6 years ago

@blinderjay did you ever resolve the issue with apt-get? I have the same issue now.

digitalsanity commented 6 years ago

The problem is dependencies in the newer packages on apt:armhf and ubuntu*:armhf that can break your arm64 installation by removing the arm64 versions. Until those dependencies are corrected, installing an old package works to get started:

Step 1.

sudo dpkg --add-architecture armhf sudo apt-get update

Step 2.

Download e.g. (later versions may work, I used this though): https://bintray.com/headmelted/deb-code-oss/download_file?file_path=code-oss_1.10.0-201722210_armhf.deb

Step 3.

Use gdebi to install package and dependencies:

sudo apt-get install gdebi sudo gdebi code*.deb

Step 4.

Install dependencies likely still missing from old package: sudo apt-get install libxtst6:armhf sudo apt-get install libasound2:armhf

(@blinderjay)