I have fix it

just try


sudo gedit /var/lib/dpkg/info/beef.postinst


and add