Tried to upgrade but dpkg throws an error in post-install script: "line 11: syntax error: unexpected word (expecting "in")"