I am trying to install Debian package file by Python script.So I used the script below.
import os
os.system('echo %(passwd)s | sudo dpkg -i 34.deb' %locals())
After run the Python script,the package was not installed.It shown the below message.sudo: no tty present and no askpass program specifiedBUt when i try to install the package via terminall,It has been installed properly.The command which i gave in terminal is below.
sudo dpkg -i 34.deb
If you know,Let me.