Skip to content
Discussion options

You must be logged in to vote

I've also had this issue for the past 2 weeks on Zorin 18.1 and have just found a fix with the help of Claude:

Cause
AffinityScripts/AffinityLinuxInstaller.py:7143-7144, in run_command. For sudo commands, it writes your password to the sudo process and then closes stdin itself:

proc.stdin.write(password_input)
proc.stdin.close()

Then it polls with proc.communicate(timeout=0.2). communicate() starts by flushing proc.stdin, and flushing a closed file raises ValueError: I/O operation on closed file. immediately. At that point sudo dpkg is still running, so the error handler kills it and reports failure.

Fix: add one line after the close so communicate() no longer touches the closed pipe:

pr…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@AztecTunes
Comment options

@jhob101
Comment options

@selwynorren
Comment options

@jhob101
Comment options

Answer selected by AztecTunes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants