2

When I try to install librocksdb5.8, I get this error:

root@:~# sudo apt-get install -y librocksdb5.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package librocksdb5.8
E: Couldn't find any package by glob 'librocksdb5.8'
E: Couldn't find any package by regex 'librocksdb5.8'
root@:~#

How do I install librocksdb5.8 on 19.10?

mchid
  • 44,904
  • 8
  • 102
  • 162

1 Answers1

3

You need to enable the Universe repository to get this package. However, 19.10 uses version 5.17 instead of 5.8.

Run the following commands to enable the Universe repository and to install the package on Ubuntu 18.04:

sudo add-apt-repository universe
sudo apt update
sudo apt install librocksdb5.8

Run the following commands to enable the Universe repository and to install the package on Ubuntu 19.10:

sudo add-apt-repository universe
sudo apt update
sudo apt install librocksdb5.17

In the future, you can search for packages using the apt-cache search command like in this example:

apt-cache search librocksdb

Alternatively, you can also search for packages at packages.ubuntu.com to locate packages. This will also indicate which repository to use.

mchid
  • 44,904
  • 8
  • 102
  • 162