leap0x7b / vscode-termux

A Debian package that allows you to use Visual Studio Code in Termux, inspired by firefox-termux by @WMCB-Tech
13 stars 1 forks source link

Error when installing #1

Open Gennadiyev opened 2 years ago

Gennadiyev commented 2 years ago

I used git clone to clone the repo under ~, then used chmod to modify the permissions of certain files under /deb folder, then used make to build the vscode-termux.deb file. The building process is successful.

I then used apt install ./vscode-termux.deb to install the package, and here the error occurred:

CANNOT LINK EXECUTABLE "sh": library "/data/data/com.termux/files/usr/lib/libtermux-exec.so" needed or dlopened by "/system/bin/sh" is not accessible for the namespace "(default)"

The full output is as follows:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'vscode-termux' instead of './vscode-termux.deb'
vscode-termux is already the newest version (1.0.2).
The following packages were automatically installed and are no longer required:
  adwaita-icon-theme atk binutils desktop-file-utils gdk-pixbuf glib-bin gtk-update-icon-cache gtk2
  hicolor-icon-theme imlib2 json-glib kvantum kwindowsystem libcroco libdbusmenu-qt libdrm libexif
  libflac libfm-extra libfm-qt libfontenc libglade libid3tag liblxqt libqtxdg librsvg libsndfile
  libsysstat libwebrtc-audio-processing libxcomposite libxdamage libxfont2 libxinerama libxkbfile
  libxshmfence libxxf86vm menu-cache mesa obconf obconf-qt openbox pavucontrol-qt pulseaudio
  pulseaudio-glib qt5-qtsvg shared-mime-info speexdsp startup-notification xorg-xkbcomp
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 103 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up vscode-termux (1.0.2) ...
CANNOT LINK EXECUTABLE "sh": library "/data/data/com.termux/files/usr/lib/libtermux-exec.so" needed or dlopened by "/system/bin/sh" is not accessible for the namespace "(default)"
dpkg: error processing package vscode-termux (--configure):
 installed vscode-termux package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 vscode-termux
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)

Are there any possible fixes available?

pawel-smth commented 1 year ago

Just in case, for others in 2023 - I've got the app installed and it's GUI shows up. However, I can't auth via github (firefox doesn't open "code" for GitHub auth call-back), so I'm still trying... ) @leap0x7b , thanks