Windows 10 bash, no tty present

Fix: echo ‘yourpasswordhere’ | sudo -S dpkg –configure -a
For example: echo ‘Maldk2365m1’ | sudo -S dpkg –configure -a