installing tldr and a segfault

I was trying to install tldr
❯ tldr
The program tldr is not installed. Install it by executing:
pkg install outfieldr
or
pkg install tealdeer
❯ pkg install outfieldr tealdeer
--snip--
Fetched 1548 kB in 12s (132 kB/s)
Selecting previously unselected package outfieldr.
(Reading database ... 58821 files and directories currently installed.)
Preparing to unpack .../outfieldr_1.0.3_aarch64.deb ...
Unpacking outfieldr (1.0.3) ...
Selecting previously unselected package tealdeer.
Preparing to unpack .../tealdeer_1.6.1_aarch64.deb ...
Unpacking tealdeer (1.6.1) ...
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/tealdeer_1.6.1_aarch64.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/bin/tldr', which is also in package outfieldr 1.0.3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/data/data/com.termux/cache/apt/archives/tealdeer_1.6.1_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
❯ tldr
error: Appdata directory not found. Rerun with `--update`.
❯ tldr --update
Fetching pages archive from https://codeload.github.com/tldr-pages/tldr/tar.gz/master
Segmentation fault at address 0xaaaaaaaaaaaaaaba
[1] 9007 segmentation fault tldr --update
❯ tldr
The program tldr is not installed. Install it by executing:
pkg install outfieldr
or
pkg install tealdeer
❯ pkg install outfieldr tealdeer
--snip--
Fetched 1548 kB in 12s (132 kB/s)
Selecting previously unselected package outfieldr.
(Reading database ... 58821 files and directories currently installed.)
Preparing to unpack .../outfieldr_1.0.3_aarch64.deb ...
Unpacking outfieldr (1.0.3) ...
Selecting previously unselected package tealdeer.
Preparing to unpack .../tealdeer_1.6.1_aarch64.deb ...
Unpacking tealdeer (1.6.1) ...
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/tealdeer_1.6.1_aarch64.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/bin/tldr', which is also in package outfieldr 1.0.3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/data/data/com.termux/cache/apt/archives/tealdeer_1.6.1_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
❯ tldr
error: Appdata directory not found. Rerun with `--update`.
❯ tldr --update
Fetching pages archive from https://codeload.github.com/tldr-pages/tldr/tar.gz/master
Segmentation fault at address 0xaaaaaaaaaaaaaaba
[1] 9007 segmentation fault tldr --update
10 Replies
Snipe scope
Snipe scopeOP6mo ago
Also here is termux info
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=8382
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.astra.in.ua/apt/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.42.1
Android version:
13
Kernel build information:
Linux localhost 4.19.157-perf-g2db1ad5c57b3 #1 SMP PREEMPT Mon May 13 02:52:07 UTC 2024 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
220333QBI
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.styling versionCode:31
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=8382
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.astra.in.ua/apt/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.42.1
Android version:
13
Kernel build information:
Linux localhost 4.19.157-perf-g2db1ad5c57b3 #1 SMP PREEMPT Mon May 13 02:52:07 UTC 2024 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
220333QBI
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.styling versionCode:31
I am not an expert in segfalut and binary exploitation but to my understanding when an segfalut occurs it can be taken advantage in malicious ways Either way I just want to install tldr also should I be worried abt the segfault and thx in advance
fisher
fisher6mo ago
they both share the tldr command so its not possible to have them both installed at the same time
Snipe scope
Snipe scopeOP6mo ago
Which one should I remove then
fisher
fisher6mo ago
personally ive only used tealdeer, the only issue i have with it is that it stores all pages locally
Snipe scope
Snipe scopeOP6mo ago
No i don't want the pages to be ocal I want to look it up online *local
fisher
fisher6mo ago
i use this now curl -qs "cht.sh/<command>" it pulls pages from multiple sources
Snipe scope
Snipe scopeOP6mo ago
I decided to uninstall tealdeer(because it stores pages offline) and decided to go with the outfieldr one but when I run
tldr man
tldr man
it just says to run it with --update and again another segfault Also tried reinstall outfieldr and still doesn't work
fisher
fisher6mo ago
outfielder was recently disabled in this commit https://github.com/termux/termux-packages/commit/1cd742f6cce6917db1a9b1204a4bc68983f72551 idk why its still installable
GitHub
outfieldr: Disabled · termux/termux-packages@1cd742f
Existing android outfieldr 1.0.3 &quot;tldr --update&quot; is broken. Tried these solutions but do not fix the issue: Rebuild with musl Rebuild using latest commit in 20231010 Cannot build...
fisher
fisher6mo ago
anyway you shouldnt be using it
Snipe scope
Snipe scopeOP6mo ago
Thx using tealdeer, tldr works
Want results from more Discord servers?
Add your server