libreadline.so.6 issue in ubuntu 18.04

Solution 1:

I also came across this issue after upgrading to Ubuntu 18.04, and after spending some time looking into the issue I found that after upgrade libreadline package was missing, so I installed libreadline package using

sudo apt-get install libreadline-dev

But this also didn't solve my problem. Then I figured out that it installed the upgraded version of the libreadline package i.e libreadline.so.7.0. As a workaround I created its symlink so I can continue my work with libreadline.so.6.

$ cd /lib/x86_64-linux-gnu/
$ sudo ln -s libreadline.so.7.0 libreadline.so.6

And this worked wonders and my problem with libreadline package was solved.

Solution 2:

This seems to have been an issue with the upgrade. I did not clean new install of Ubuntu 18.04 and then R, and the error disappeared.

Solution 3:

You would use rm, i.e.

$ rm libreadline.so.6

Then you can simply recreate the symbolic link.