Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo apt-get install code-oss / unable to locate package #58

Open
Peouse opened this issue Oct 1, 2018 · 21 comments

Comments

Projects
None yet
@Peouse
Copy link

commented Oct 1, 2018

Hello,

I am sad because I cant get VS Code to work on Raspbian Stretch

I tried to use the Installer :
. <( wget -O - https://code.headmelted.com/installers/apt.sh )

However the apt-get install seems to fail..I get this message :

The repository is setup! You can now install packages.
Repository install complete.
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.

Any idea what could possibly go wrong ?
Thank you for your help !

@jracle

This comment has been minimized.

Copy link

commented Oct 4, 2018

same!

@muddyraven

This comment has been minimized.

Copy link

commented Oct 5, 2018

I have the same issue too. Has anyone found a solution?

@jartim

This comment has been minimized.

Copy link

commented Oct 5, 2018

I'm guessing code-oss is a package dependency that @headmelted has installed on his machine, but that isn't included in the build. I've tried locating it manually but no luck so far.

@C0618C

This comment has been minimized.

Copy link

commented Oct 7, 2018

Try:

sudo apt-get install -y apt-transport-https

(This needs to be done inside the chroot.)

He said that at #32 (comment)

But, it's doesn't work for me.

pi@raspberrypi:~/Downloads $ sudo apt-get install -y apt-transport-https
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
apt-transport-https 已经是最新版 (1.4.8)。
下列软件包是自动安装的并且现在不需要了:
  lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 141 个软件包未被升级。
pi@raspberrypi:~/Downloads $ sudo bash apt.sh
Detecting architecture...
Ensuring curl is installed
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
curl 已经是最新版 (7.52.1-5+deb9u7)。
下列软件包是自动安装的并且现在不需要了:
  lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 141 个软件包未被升级。
Architecture detected as ...
Detected operating system as raspbian/stretch.
Checking for curl...
Detected curl...
Checking for gpg...
Detected gpg...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/headmelted_codebuilds.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages.
Repository install complete.
Installing Visual Studio Code...
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
E: 无法定位软件包 code-oss
Visual Studio Code install failed.
@markpatterson27

This comment has been minimized.

Copy link

commented Oct 7, 2018

You can install from the jessie package. Run the installer then edit the sources list

sudo nano /etc/apt/sources.list.d/headmelted_codebuilds.list

Replace 'stretch' with 'jessie' and save the file. (CTRL+o, CTRL+x).

Update package lists, then install.

sudo apt-get update
sudo apt-get install code-oss

Note: this will install the 1.14 version

@kbroughton

This comment has been minimized.

Copy link

commented Oct 8, 2018

@markpatterson27 I get the following with jessie (i'm on raspbian/stretch) Pi 3 B+

W: The repository 'https://packagecloud.io/headmelted/codebuilds/raspbian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/aziotsdklinux/ppa-azureiot/ubuntu vivid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FDA6A393E4C2257F
W: The repository 'http://ppa.launchpad.net/aziotsdklinux/ppa-azureiot/ubuntu vivid InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'main/binary-arm/Packages' as repository 'https://packages.microsoft.com/repos/vscode stable InRelease' doesn't support architecture 'arm'

@muddyraven

This comment has been minimized.

Copy link

commented Oct 9, 2018

You can install from the jessie package. Run the installer then edit the sources list

sudo nano /etc/apt/sources.list.d/headmelted_codebuilds.list

Replace 'stretch' with 'jessie' and save the file. (CTRL+o, CTRL+x).

Update package lists, then install.

sudo apt-get update
sudo apt-get install code-oss

Note: this will install the 1.14 version

This worked for me, Code - OSS 1.14 is now installed on my Pi 3 running Raspbian Stretch.

Does anyone know how to now update to the latest version, isn't it 1.23/24 on Raspbian?

Many thanks for the help!

@muddyraven

This comment has been minimized.

Copy link

commented Oct 9, 2018

1.28.0 is the latest version of Code - OSS for Raspbian. I'm very happy to have 1.14 working for now, but any help on how to upgrade if currently possible would be appreciated.

@muddyraven

This comment has been minimized.

Copy link

commented Oct 9, 2018

FYI if I change 'jessie' back to 'stretch' in the sources list after installing, I receive the same errors as @kbroughton.

@markpatterson27

This comment has been minimized.

Copy link

commented Oct 9, 2018

You could manually install Steve Desmond's build. He put 1.28.0 up a few hours ago. I don't know if it works as well as headmelted's build (haven't started using it yet), but you can run both builds beside each other.
https://github.com/stevedesmond-ca/vscode-arm

@muddyraven

This comment has been minimized.

Copy link

commented Oct 9, 2018

You could manually install Steve Desmond's build. He put 1.28.0 up a few hours ago. I don't know if it works as well as headmelted's build (haven't started using it yet), but you can run both builds beside each other.
https://github.com/stevedesmond-ca/vscode-arm

Thank you, I did install earlier whilst trying to troubleshoot, and it seems to be as responsive. I haven't spent much time with it yet though.

@headmelted

This comment has been minimized.

Copy link
Owner

commented Oct 9, 2018

Just getting a look at this now. Will come back with an update as soon as I have a fix (pretty sure I know what the issue is!)

@muddyraven

This comment has been minimized.

Copy link

commented Oct 10, 2018

Thanks Jay, really appreciate all your work on this repository.

@sedlund

This comment has been minimized.

Copy link

commented Oct 16, 2018

the gpg key for the repo isnt getting installed by the script. you can see the fix here:

#61 (comment)

do not change the repo from 'xenial' it works fine on debian stretch.

the script is using apt update -qy quiet is hiding the error about the missing gpg key for the repo

@muddyraven

This comment has been minimized.

Copy link

commented Oct 19, 2018

the gpg key for the repo isnt getting installed by the script. you can see the fix here:

#61 (comment)

do not change the repo from 'xenial' it works fine on debian stretch.

the script is using apt update -qy quiet is hiding the error about the missing gpg key for the repo
I tried this, but it throws an error now.

@jongus

This comment has been minimized.

Copy link

commented Oct 20, 2018

Im still getting "E: Unable to locate package code-oss"... And when trying #61 (comment) Ill get "(23) Failed writing body"

Any ideas?

@netmasta10bt

This comment has been minimized.

Copy link

commented Oct 20, 2018

code-oss is in the arm repo - are you on arm or amd64

@ItZskyler

This comment has been minimized.

Copy link

commented Oct 20, 2018

I wanna install it on my RPi, can i?

@jongus

This comment has been minimized.

Copy link

commented Oct 22, 2018

Hi @netmasta10bt !
Well, I use the script:
curl -s https://packagecloud.io/install/repositories/headmelted/codebuilds/script.deb.sh | sudo bash
and I get "E: Unable to locate package code-oss" when running "sudo apt-get install code-oss"

When I run "sudo apt-get update" I get:
...
Reading package lists... Done
W: The repository 'https://packagecloud.io/headmelted/codebuilds/raspbian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Any input that can help me?

@sedlund

This comment has been minimized.

Copy link

commented Oct 23, 2018

Any input that can help me?

I suggest getting the package from https://github.com/stevedesmond-ca/vscode-arm/releases as mentioned above

@headmelted

This comment has been minimized.

Copy link
Owner

commented Oct 23, 2018

Hi folks, I'm working actively on this currently.

The *.deb packages are available at https://github.com/headmelted/codebuilds/releases - installing from there might be the best bet in the meantime while I patch up the repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.