Comment 2 for bug 2038648

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks for reporting this bug.

This is an interesting one. The user is upgrading from xenial to bionic.

xenial has python 3.5, bionic has python 3.6.

During the postinst (included by dh_python), sosreport runs a python script containing an f-string. However f-strings were only introduced in python 3.6. In this case, the postinst ran with python 3.5, which results in a syntax error when the f-string is parsed.