How to install libncurses.so.5 in Ubuntu 20.04?

Solution 1:

You have to update your package lists, as this package is still available from universe pocket.

Install them with:

sudo add-apt-repository universe
sudo apt-get install libncurses5 libncurses5:i386

Solution 2:

So adding the universe pocket didn't completely solve my problem, I found out that I also had to set up the correct foreign architecture.

To set this up, I first checked main architecture, which was amd64, and foreign architecture was empty. So I needed to add the i386 architecture as well.

$ sudo dpkg --print-architecture 
$ sudo dpkg --print-foreign-architectures
$ sudo dpkg --add-architecture i386