If you are still willing to install, try to clean the package cache and re-download the package. Code: sudo gainroot apt-get clean apt-get install ytcli May be it was corrupted or the dependencies were not installed properly. The postinst script basically invokes the update of youtube-dl, meaning that must be installed as well.
sudo gainroot apt-get clean apt-get install ytcli