My goal is to check if a package has been installed, and if not, install it.
A package exists:
dpkg -l | grep arangodb3 rc arangodb3 3.4.11-1 amd64 a multi-model NoSQL database
$ sudo apt remove arangodb3 Reading package lists... Done Building dependency tree Reading state information... Done Package 'arangodb3' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
How can this be? And how to fix it?