manticoresearch icon indicating copy to clipboard operation
manticoresearch copied to clipboard

Updating manticore removes manticore-columnar-lib installed via manticore-extras

Open Choppel opened this issue 11 months ago • 6 comments

Describe the bug During the installation of manticore (non-dev version) via apt install manticore manticore-extra the packages manticore-columnar-lib and manticore-executor are also installed. Calling apt autoremove to delete obsolete packages removes manticore-columnar-lib and manticore-executor.

To Reproduce Steps to reproduce the behavior:

  1. wget https://repo.manticoresearch.com/manticore-repo.noarch.deb
  2. sudo dpkg -i manticore-repo.noarch.deb
  3. sudo apt update
  4. apt install manticore manticore-extra
  5. apt autoremove

Expected behavior manticore-columnar-lib and manticore-executor should not be removed as it is my understanding, that they were installed via manticore-extras.

Describe the environment:

  • Manticore Search version: Manticore 6.2.12 dc5144d35@230822 (columnar 2.2.4 5aec342@230822) (secondary 2.2.4 5aec342@230822)
  • OS version: Linux 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

Messages from log files: N/A

Additional context The only way to prevent this, is to call apt install manticore-columnar-lib manticore-executor. This only flags the packages as manually installed but at least then they seem to not get uninstalled. This behavior would be sufficient but is undocumented afaict.

Choppel avatar Mar 19 '24 14:03 Choppel

I can't reproduce in Ubuntu Jammy:

root@dfac0aec1ad3:/# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 56 not upgraded.

root@dfac0aec1ad3:/# apt list --installed|egrep "columnar|executor"

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

manticore-columnar-lib/jammy,now 2.2.4-230822-5aec342 amd64 [installed,automatic]
manticore-executor/jammy,now 0.7.8-23082210-810d7d3 amd64 [installed,automatic]

Can you please show what apt autoremove says in your case when it removes the packages?

sanikolaev avatar Mar 20 '24 05:03 sanikolaev

Interesting. I just set up a fresh installation of Debian and installed Manticore. The problem does not occur here. But it happened for me during an update more than once. Is there a way to install an old version of manticore to update it via APT to let the error occur? If not, I will have to wait for the next version.

Choppel avatar Mar 20 '24 08:03 Choppel

Yes, you can install separate versions of e.g. 6.0.0 following the instructions from here https://manticoresearch.com/install-6.0.0/#separate-packages

sanikolaev avatar Mar 20 '24 11:03 sanikolaev

Hello again, an update of the system above (installed 2 weeks ago) via apt update && apt dist-upgrade -y && apt autoremove -y && apt clean printed this log among other messages:

[...]
(Verschwinden von manticore-extra wurde bemerkt, welches komplett ersetzt wurde.)
[...]
Das folgende Paket verschwand von Ihrem System, da alle
Dateien von anderen Paketen überschrieben wurden:
  manticore-extra
Hinweis: Dies wird automatisch und absichtlich von dpkg durchgeführt.
[...]

Important to know is, that there was no update for manticore or any of its components itself. Only these packages bsdextrautils bsdutils eject fdisk libblkid1 libfdisk1 libmount1 libsmartcols1 libuuid1 mount nodejs util-linux util-linux-extra where updated.

Choppel avatar Apr 03 '24 13:04 Choppel

Did it remove manticore-columnar and manticore-executor without saying a word about it?

sanikolaev avatar Apr 04 '24 06:04 sanikolaev

Not yet as there seemed to be no update to these packages. I'll post the result as soon as there is an update to manticore.

Choppel avatar Apr 04 '24 07:04 Choppel

Updated from 6.2 to 6.3 today and the issue did not occur. Maybe it was fixed in the meantime.

Choppel avatar May 24 '24 15:05 Choppel