Your command:
tail -n +8 /var/lib/dpkg/info/insync.postinst | head -n -3 | python -
is without output, maybe the syntax of tail is not correct:
-n, --lines=[+]NUM
output the last NUM lines, instead of the last 10; or use -n +NUM to output starting with line NUM
But the command:
tail -n8 /var/lib/dpkg/info/insync.postinst
show incomplete python script:
f.write('\n'.join(lines))
increase_inotify_watches()
open("/usr/lib/insync/from_deb", "w").close()
EOF
exit 0
so the complete command go in error:
tail -n8 /var/lib/dpkg/info/insync.postinst | head -n -3 | python -
File "<stdin>", line 1
f.write('\n'.join(lines))
^
IndentationError: unexpected indent