posit-dev / positron

Positron, a next-generation data science IDE
Other
2.41k stars 71 forks source link

Install positron in debian Debian GNU/Linux 11 (bullseye) , zstd problem #4635

Closed joscani closed 15 hours ago

joscani commented 1 week ago

Hi I try to install Positron deb packages in debian bullseye. (needed for my job) I don't have problems in my own machine (linux mint 21)

System details:

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian

Positron and OS details:

Positron-2024.09.0-1.deb

Interpreter details:

R version 4.4.1

Describe the issue:

Problem insalling deb package

Steps to reproduce the issue:

sudo gdebi Positron-2024.09.0-1.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done

A next-generation data science IDE.
 Positron is an extensible, polyglot tool for writing code and exploring data
 in Python, R, and other languages.
Do you want to install the software package? [y/N]:y
/usr/bin/gdebi:113: FutureWarning: Possible nested set at position 1
  c = findall("[[(](\S+)/\S+[])]", msg)[0].lower()
dpkg-deb: error: archive 'Positron-2024.09.0-1.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive Positron-2024.09.0-1.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 Positron-2024.09.0-1.deb
jmcphers commented 6 days ago

This happens because we build Positron on Ubuntu which defaults to zstd compression. Debian 11 does not support this compression format (that was added in Debian 12). Here's a summary of the problem:

https://gitlab.com/gitlab-org/gitlab/-/issues/422584

We're investigating building Positron on an older Ubuntu to address glibc problems; it may fix this issue too. See #3854 for details.

jonvanausdeln commented 1 day ago

@joscani , we have new release (2024.09.0-45) that may work for you. Can you please try it out?

joscani commented 1 day ago

@jonvanausdeln It works, but Positron doesn't find R interpreter . But If I enter in the terminal, R works, R is in /usr/bin/R

And I can't create a new R or python file any idea?

jmcphers commented 15 hours ago

@joscani Open up the Developer Tools (Developer: Toggle Developer Tools command in the Command Palette) and check the Console tab -- do you see any errors there? Can you paste what you see?

joscani commented 15 hours ago

No. Sorry. the problem is with glibc


extension vscode.positron-r for language ID r
workbench.desktop.main.js:498847 Activating extension 'vscode.jupyter-adapter' failed: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /usr/share/positron/resources/app/extensions/jupyter-adapter/prebuilds/linux-x64/node.napi.glibc.node).
workbench.desktop.main.js:498847 Cannot activate the 'Positron Python' extension because its dependency 'Positron Jupyter Adapter' failed to activate
workbench.desktop.main.js:498847 Cannot activate the 'R' extension because its dependency 'Positron Jupyter Adapter' failed to activate```
joscani commented 15 hours ago

Can anyone reopen the issue?

jmcphers commented 14 hours ago

No need to reopen; the issue you're experiencing now is tracked in #3854.