The output I received is :
$ sudo apt-get install libncurses-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
The following packages were automatically installed and are no longer required:
libpython-all-dev libpython-dev libpython2.7-dev libreadline5
linux-image-4.15.0-66-generic linux-modules-4.15.0-66-generic
linux-modules-extra-4.15.0-66-generic python-all python-all-dev python-dev
python-pkg-resources python-setuptools python-wheel python2.7-dev
Use 'sudo apt autoremove' to remove them.
Suggested packages:
ncurses-doc
The following NEW packages will be installed:
libncurses5-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 175 kB of archives.
After this operation, 1,060 kB of additional disk space will be used.
Fetched 175 kB in 0s (372 kB/s)
Selecting previously unselected package libncurses5-dev:amd64.
(Reading database ... 295937 files and directories currently installed.)
Preparing to unpack .../libncurses5-dev_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...
$ sudo apt-get install libreadline-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libreadline-dev is already the newest version (6.3-8ubuntu2).
The following packages were automatically installed and are no longer required:
libpython-all-dev libpython-dev libpython2.7-dev libreadline5
linux-image-4.15.0-66-generic linux-modules-4.15.0-66-generic
linux-modules-extra-4.15.0-66-generic python-all python-all-dev python-dev
python-pkg-resources python-setuptools python-wheel python2.7-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.