0

On Ubuntu 18:04 Bionic (installed as a Singularity container) I issue

apt-get install okular

and I get the message "E: Unable to locate package okular".

Why? Is okular not in the apt repositories any more? How do I install it then?

halloleo
  • 141
  • 5

1 Answers1

0

A possible fix would be to use the following command to add the "universe" repository:

sudo add-apt-repository universe

Or, if this returns an error, try:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

If none of these work, then inside the terminal, type:

sudo apt-get install software-properties-common

and repeat the first command.

Then finally update by typing:

sudo apt update

Then try installing again by:

sudo apt-get install okular

Hopefully this works out.

Purhan
  • 1