codebuilds icon indicating copy to clipboard operation
codebuilds copied to clipboard

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

Open Peouse opened this issue 6 years ago • 24 comments

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 !

Peouse avatar Oct 01 '18 21:10 Peouse

same!

jracle avatar Oct 04 '18 13:10 jracle

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

muddyraven avatar Oct 05 '18 15:10 muddyraven

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.

jartim avatar Oct 05 '18 21:10 jartim

Try:

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

(This needs to be done inside the chroot.)

He said that at https://github.com/headmelted/codebuilds/issues/32#issuecomment-313777456

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.

C0618C avatar Oct 07 '18 14:10 C0618C

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

markpatterson27 avatar Oct 07 '18 19:10 markpatterson27

@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'

kbroughton avatar Oct 08 '18 09:10 kbroughton

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 avatar Oct 09 '18 12:10 muddyraven

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 avatar Oct 09 '18 13:10 muddyraven

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

muddyraven avatar Oct 09 '18 13:10 muddyraven

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

markpatterson27 avatar Oct 09 '18 14:10 markpatterson27

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.

muddyraven avatar Oct 09 '18 15:10 muddyraven

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!)

headmelted avatar Oct 09 '18 16:10 headmelted

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

muddyraven avatar Oct 10 '18 08:10 muddyraven

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

https://github.com/headmelted/codebuilds/issues/61#issuecomment-430128711

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

sedlund avatar Oct 16 '18 07:10 sedlund

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.

muddyraven avatar Oct 19 '18 21:10 muddyraven

Im still getting "E: Unable to locate package code-oss"... And when trying https://github.com/headmelted/codebuilds/issues/61#issuecomment-430128711 Ill get "(23) Failed writing body"

Any ideas?

jongus avatar Oct 20 '18 14:10 jongus

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

ghost avatar Oct 20 '18 14:10 ghost

I wanna install it on my RPi, can i?

ItZskyler avatar Oct 20 '18 18:10 ItZskyler

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?

jongus avatar Oct 22 '18 15:10 jongus

Any input that can help me?

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

sedlund avatar Oct 23 '18 04:10 sedlund

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!

headmelted avatar Oct 23 '18 07:10 headmelted

Trying to install VS OSS on RPI 4: Installed "code-oss_1.32.0-1550644722_armhf.deb" from https://github.com/headmelted/codebuilds/releases It opens a black vs oss screen with no menus. Any help would be appreciated thx.

brentwooddev avatar Sep 30 '19 17:09 brentwooddev

Trying to install VS OSS on RPI 4: Installed "code-oss_1.32.0-1550644722_armhf.deb" from https://github.com/headmelted/codebuilds/releases It opens a black vs oss screen with no menus. Any help would be appreciated thx.

Just installed the last version on RPI 4 and works perfectly!

danpeig avatar Dec 16 '19 23:12 danpeig

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!

I did downloaded this file (the arm64) but when I tried to run it and install it it gave back this error:

A package could not be found that allows the action to complete.

I don't know which package it needs.

TancsicsGergely avatar Feb 12 '20 15:02 TancsicsGergely