fsearch icon indicating copy to clipboard operation
fsearch copied to clipboard

[BUG]cannot install it in Sparky OS (debian)

Open dduran1210 opened this issue 1 year ago • 8 comments

*enter this in terminal:

sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-stable

I get this 👍 Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 361, in addaptrepo = AddAptRepository() ^^^^^^^^^^^^^^^^^^ File "/usr/bin/add-apt-repository", line 39, in init self.distro.get_sources(self.sourceslist) File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources raise NoDistroTemplateException( aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Sparky/orion-belt

also got this same thing on 2 other os's: Emmabuntus and Peppermint.

dduran1210 avatar Jan 30 '25 06:01 dduran1210

sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-stable

Works fine here (Ubuntu 22.04).

Simple workaround: download the corresponding .deb-file from launchpad and install it via dpkg.

bugtracker2019 avatar Feb 09 '25 17:02 bugtracker2019

Hello again,

forget my posting above. Won't work, cause Debian != Ubuntu, so you'll run into trouble using the .deb-file from launchpad. Instead use the official Debian backport of fsearch. Just tested it successfully on a fresh Sparky VM-installation.

Also keep in mind, that you're aforementioned issue is not directly related to fsearch, but rather to the python-script (add-apt-repository). As far as I know it works with Ubuntu-based distribution only.

Happy (f)searching! ;-)

bugtracker2019 avatar Feb 11 '25 11:02 bugtracker2019

So how to install this on stable Debian (12)?

According to: https://wiki.debian.org/Backports#Using_the_command_line

sudo apt edit-sources
sudo apt update

add:

deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

run:

sudo apt show fsearch -a
sudo apt install fsearch/bookworm-backports
fsearch

fsearch: error while loading shared libraries: libicuuc.so.67: cannot open shared object file: No such file or directory

apt info -a fsearch/bookworm-backports

Package: fsearch
Version: 0.2.3-3~bpo12+1
Priority: optional
Section: utils
Maintainer: Debian QA Group <[email protected]>
Installed-Size: 1,148 kB
Depends: libc6 (>= 2.34), libcairo2 (>= 1.2.4), libgdk-pixbuf-2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.59.2), libgtk-3-0 (>= 3.21.5), libicu72 (>= 72.1~rc-1~), libpango-1.0-0 (>= 1.14.0), libpcre2-8-0 (>= 10.22)
Homepage: https://cboxdoerfer.github.io/fsearch/
Download-Size: 241 kB
APT-Manual-Installed: yes
APT-Sources: http://deb.debian.org/debian bookworm-backports/main amd64 Packages
Description: Fast graphical file search utility
 FSearch is a fast file search utility, based on GTK3.
 It supports regular expressions, wildcards, fast sorting,
 instant results with millions of files and more.

lsb_release -d
Description:    Debian GNU/Linux 12 (bookworm)

slrslr avatar Mar 28 '25 20:03 slrslr

Why so complicated? Downloading the deb-file is easier. `

fsearch: error while loading shared libraries: libicuuc.so.67: cannot open shared object file: No such file or directory

` That's odd. fsearch 0.2.3-3 depends on libicu72. Remove your installation of fsearch, remove the repository, make a system update, check if libicu72 is installed and try the deb-file instead.

bugtracker2019 avatar Mar 30 '25 13:03 bugtracker2019

So I have uninstalled fsearch and removed backports repo and apt update.

Then ran:

apt list --installed|grep -E "fse|libicu"
libicu-dev/stable,now 72.1-3 amd64 [installed]
libicu72/stable,now 72.1-3 amd64 [installed,automatic]

wget http://ftp.pl.debian.org/debian/pool/main/f/fsearch/fsearch_0.2.3-3~bpo12+1_amd64.deb

sudo dpkg -i fsearch_0.2.3-3~bpo12+1_amd64.deb

fsearch
`fsearch: error while loading shared libraries: libicuuc.so.67: cannot open shared object file: No such file or directory`

locate libicuuc.so.67
..no output..

find /etc /var /usr -name libicuuc.so.67 2>/dev/null
..no output..

apt search libicu67
Sorting... Done
Full Text Search... Done

ldd /usr/bin/fsearch|grep libic
        libicuuc.so.72 => /lib/x86_64-linux-gnu/libicuuc.so.72 (0x00007f788fc16000)
        libicudata.so.72 => /lib/x86_64-linux-gnu/libicudata.so.72 (0x00007f788d200000)

Linking 72 to 67: sudo ln -s /usr/lib/x86_64-linux-gnu/libicuuc.so.72 /usr/lib/x86_64-linux-gnu/libicuuc.so.67

ends in crash when one type something into the fsearch search field: fsearch: symbol lookup error: fsearch: undefined symbol: ucasemap_open_67

What to try?

slrslr avatar Mar 30 '25 18:03 slrslr

Do you have any third party ppa linked to your system? Perhaps ppa:christian-boxdoerfer/fsearch-stable? If so, remove them, update your system and retry installing the deb-file.

Out of curiosity: Did you make a fresh installation of Bookworm or did you upgrade from a previous Debian Installation (Bullseye)? Because libicuuc.so.67 belongs to the Bullseye repos. Whatever, seems your system is a little bit messy.

bugtracker2019 avatar Mar 31 '25 13:03 bugtracker2019

Do you have any third party ppa linked to your system?

$ grep -v "^#" /etc/apt/sources.list /etc/apt/sources.list.d/*|grep -E "fsearch|boxdoerfer"
/etc/apt/sources.list.d/home:cboxdoerfer.list:deb http://download.opensuse.org/repositories/home:/cboxdoerfer/Debian_12/ /
$ grep -Rial boxdo /etc/apt/
/etc/apt/trusted.gpg.d/home_cboxdoerfer.gpg
/etc/apt/sources.list.d/home:cboxdoerfer.list

If you want to see entire output, then it is here (password is your username).

I have tried to trash that two files: sudo gio trash /etc/apt/sources.list.d/home:cboxdoerfer.list /etc/apt/trusted.gpg.d/home_cboxdoerfer.gpg

and:

sudo apt update
sudo dpkg -i fsearch_0.2.3-3~bpo12+1_amd64.deb

but it ends with same error: fsearch: error while loading shared libraries: libicuuc.so.67: cannot open shared object file: No such file or directory

should i undo the trashing?

Yes, this mine Bookworm system is result of a Bullseye upgrade...

slrslr avatar Mar 31 '25 18:03 slrslr

Sounds very odd. Instead of further fiddling around, maybe a clean system-installation would be preferable. And I wouldn't use any third party ppa at all. Instead I would install the corresponding deb-files.

bugtracker2019 avatar Mar 31 '25 19:03 bugtracker2019

The official repository for Debian should be up again. See:

https://software.opensuse.org//download.html?project=home%3Acboxdoerfer&package=fsearch#manualDebian

cboxdoerfer avatar Jun 29 '25 10:06 cboxdoerfer