I installed first from the Mint repository, then from the PPA. I got the error in both cases. But now, after changing the line "my @files = glob '/etc/*-release';" to "my @files = glob '/etc/lsb-release';" in line 193 of file gscan2pdf, the problem is solved. Many thanks.
Error : cannot close /etc/upstream-release