Friday, August 18, 2017

apt - 18.04 server - unable to locate package redis-server


I installed a fresh install of 18.04 server. The package redis-server does not seem to be installable. I'm not sure why:


$ sudo apt install redis-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package redis-server

the package doesnt appear to exist:


$ sudo apt-cache search redis
miscfiles - Dictionaries and other interesting files
python-redis - Persistent key-value database with network interface (Python library)
resource-agents - Cluster Resource Agents

I have run apt update. I'm guessing its missing a repository of packages, but since this is a fresh install, I'm not sure why it would be missing one, or how to fix it.


root@:/etc/newrelic# sudo apt-get install nri-redis
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nri-redis


As a commenter noted, the universe package was not enabled. Enabling with add-apt-repository did the trick:


sudo add-apt-repository universe


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...