Error : cannot close /etc/upstream-release
Brought to you by:
ra28145
After upgrading from Linux Mint 21.3 to to Linux Mint 22, I have the following error when launching gscan2pdf : "Error : cannot close /etc/upstream-release".
Note that If I rename the directory with the following command :
"sudo mv /etc/upstream-release /etc/upstream-release0", the error disappears.
Any idea ?
You have stumbled across this bug: https://sourceforge.net/p/gscan2pdf/bugs/430/
Did you install gscan2pdf from the Mint repo or the gscan2pdf PPA?
Good morning,
Mint has the required upstream information
/etc/upstream-release/lsb-releaseAs a workaround, I adjusted the path in line 193 in gscan2pdf:
my @files = glob '/etc/upstream-release/*-release';greeting
wolfgang
Last edit: Wolfgang 2024-07-31
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.
Hi Jeffrey,
I installed 2.13.3 per PPA on LinuxMint 22, have the same problem.
Here the detailed information on the forum for you:
https://www.linuxmintusers.de/index.php?topic=82317.msg1066103#new
Perhaps the PPA could be updated in that way, that no manuel commands are neccessary
Regards
Last edit: Matthias Sprau 2024-07-30
Hi Jeffrey, thanks for the fast patch. It works as good as always!
Ticket can be closed.