%sh fails to install mdbtools locally

KacperG
New Contributor III

Hi

I have a notebook that uses mdbtools:

%sh
sudo apt-get -y -S install mdbtools

However, when I want to run it locally it returns error:

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

This error doesn't occur when it's ran on job cluster.

Any idea why and how to fix it, so I can debug it locally?