Searx has not been properly removed - can't reinstall

My YunoHost server

Hardware: computer, Lenovo Ideacenter Q190
YunoHost version: 4.0.8.2
I have access to my server : Through SSH & direct access via keyboard
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I tried to update Searx, but it failed. I tried to install it again, but it failed.

“Warning: searx has not been properly removed”

Here is the log:
https://paste.yunohost.org/raw/nanigacode

I guess I need to clean up after the failure of the install?

I guess yes, but you should not have to … We could figure out more stuff if you shared the log of the “Failed remove after the failed install attempt” …

Anyway, you could try to run rm -rf /var/www/searx to clean up the folder the first install created (again, the remove script is supposed to take care of this)

Thanks for the suggestion.

I removed that directory and tried to install it again. It failed.

https://paste.yunohost.org/raw/ogabacecow

From part of the log it looks like I need to remove /opt/yunohost/searx, correct? I’m just checking, like the cautious carpenter - I check twice, delete once :smiley:

2020-12-07 14:49:19,676: DEBUG - + echo '[....................] > Validating installation parameters...'
2020-12-07 14:49:19,677: DEBUG - + final_path=/opt/yunohost/searx
2020-12-07 14:49:19,677: DEBUG - + test '!' -e /opt/yunohost/searx
2020-12-07 14:49:19,778: DEBUG - + ynh_die '--message=This path already contains a folder'
2020-12-07 14:49:19,779: WARNING - This path already contains a folder
2020-12-07 14:49:19,780: INFO - [....................] > Validating installation parameters...
2020-12-07 14:49:19,784: DEBUG - + ret_code=1
2020-12-07 14:49:19,784: DEBUG - + echo 'This path already contains a folder'
2020-12-07 14:49:19,784: DEBUG - + exit 1
2020-12-07 14:49:19,785: DEBUG - + ynh_exit_properly

Yes indeed

1 Like

This is super strange :frowning:

Deleted /opt/yunohost/searx/ but installation still fails.

https://paste.yunohost.org/raw/isiziteyik

This is the log of the removal … can you share the log of the failed install ?

Sorry! Here is the log:
https://paste.yunohost.org/raw/ramenusoni

2020-12-08 21:45:30,525: DEBUG - + ynh_die '--message=Unable to install dependencies'
2020-12-08 21:45:30,525: WARNING - The following packages have unmet dependencies:
2020-12-08 21:45:30,527: WARNING -  libssl-dev : Depends: libssl1.1 (= 1.1.1d-0+deb10u3) but 1.1.1g-1+0~20200421.17+debian10~1.gbpf6902f is to be installed
2020-12-08 21:45:30,528: WARNING -  libxslt1-dev : Depends: libxml2-dev (>= 2.6.26) but it is not going to be installed
2020-12-08 21:45:30,529: WARNING -  python-babel : Depends: python-babel-localedata (= 2.6.0+dfsg.1-1) but it is not going to be installed
2020-12-08 21:45:30,530: WARNING -  python-cffi : Depends: python-pycparser but it is not going to be installed
2020-12-08 21:45:30,531: WARNING -  uwsgi : Depends: uwsgi-core (= 2.0.18-1) but it is not going to be installed
2020-12-08 21:45:30,532: WARNING -  uwsgi-plugin-python : Depends: uwsgi-core (= 2.0.18-1) but it is not going to be installed
2020-12-08 21:45:30,533: WARNING -  virtualenv : Depends: python3-virtualenv but it is not going to be installed
2020-12-08 21:45:30,533: DEBUG - + ret_code=1
2020-12-08 21:45:30,534: WARNING - Unable to install dependencies

Looks like something about dependencies that it won’t install for me.

The root issue seems to be :

libssl-dev : Depends: libssl1.1 (= 1.1.1d-0+deb10u3) but 1.1.1g-1+0~20200421.17+debian10~1.gbpf6902f is to be installed

Don’t you have anything in the diagnosis that suggest downgrading packages ?

Yes, but I have been ignoring those messages because things were working and didn’t want to inadvertently mess something up.

[WARNING] Some system packages should be downgraded
  - Some packages were inadvertendly installed from a third-party repository called Sury. The Yunohost team improved the strategy that handle these packages, but it's expected that some setups that installed PHP7.3 apps while still on Stretch have some remaining inconsistencies. To fix this situation, you should try running the following command: 'apt install --allow-downgrades libssl1.1=1.1.1d-0+deb10u3'

Ok I will try to do this downgrade command, then try reinstalling Searx.

  1. sudo apt install --allow-downgrades libssl1.1=1.1.1d-0+deb10u3
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    You might want to run ‘apt --fix-broken install’ to correct these.
    The following packages have unmet dependencies:
    searx-ynh-deps : Depends: libxslt-dev
    Depends: python-virtualenv but it is not going to be installed
    Depends: python-cffi but it is not going to be installed
    Depends: virtualenv but it is not going to be installed
    Depends: python-babel but it is not going to be installed
    Depends: zlib1g-dev but it is not going to be installed
    Depends: libffi-dev but it is not going to be installed
    Depends: libssl-dev but it is not going to be installed
    Depends: python-lxml but it is not going to be installed
    Depends: uwsgi but it is not going to be installed
    Depends: uwsgi-plugin-python but it is not going to be installed
    E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

  2. sudo apt --fix-broken install
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Correcting dependencies… Done
    The following packages were automatically installed and are no longer required:
    php-igbinary php-redis php-smbclient php5.6-igbinary php5.6-redis php5.6-smbclient php7.0-igbinary php7.0-redis php7.0-smbclient
    php7.1-igbinary php7.1-redis php7.1-smbclient php7.2-igbinary php7.2-redis php7.2-smbclient php7.4-igbinary php7.4-redis php7.4-smbclient
    php8.0-igbinary php8.0-redis php8.0-smbclient
    Use ‘sudo apt autoremove’ to remove them.
    The following packages will be REMOVED:
    searx-ynh-deps
    0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
    After this operation, 9,216 B disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database … 114465 files and directories currently installed.)
    Removing searx-ynh-deps (0.16.0~ynh1) …
    Scanning processes…
    Scanning linux images…

    Running kernel seems to be up-to-date.

    Failed to check for processor microcode upgrades.

    No services need to be restarted.

    No containers need to be restarted.

    No user sessions are running outdated binaries.

3. sudo apt autoremove

4. sudo apt install --allow-downgrades libssl1.1=1.1.1d-0+deb10u3

5. sudo yunohost app install searx

NOW all is good. Searx is installed.

Thanks again to Aleks.

Also, note for others having weird problems, please listen to your Diagnosis about downgrading the libssl thing. It won’t screw up your system! :smiley:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.