codebuilds
codebuilds copied to clipboard
sudo apt-get install code-oss / unable to locate package
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 !
same!
I have the same issue too. Has anyone found a solution?
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.
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.
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 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'
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!
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.
FYI if I change 'jessie' back to 'stretch' in the sources list after installing, I receive the same errors as @kbroughton.
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
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.
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!)
Thanks Jay, really appreciate all your work on this repository.
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
the gpg key for the repo isnt getting installed by the script. you can see the fix here:
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.
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?
code-oss is in the arm repo - are you on arm or amd64
I wanna install it on my RPi, can i?
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?
Any input that can help me?
I suggest getting the package from https://github.com/stevedesmond-ca/vscode-arm/releases as mentioned above
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!
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.
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!
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.