6

I can no more compile any of my tex files, they all generate an error "can't write on file *.pdf". I suspect a Windows update (it occurred just after that) but I am not sure and I cannot find any reason for that...

Even the simple "hello world" does not work and generates the same error:

\documentclass{article}
\begin{document}
hello
\end{document}

I am using Windows 10 and Texmaker. I know that Adobe can lead to this error but the PDF is neither open, nor created on my computer.

So, the file is not open, I have reinstalled both Miktex & Texmaker, I am not using Dropbox & co, I tested with other editors leading to the same result, searched on google for hours, restarted my computer many times, I have enough space on my computer.

But I am now lacking solutions... Does anyone have a suggestion ?

3
  • 1
    the last two who had this error had a problem with a virus program kicking in (Avast in both cases). See e.g. github.com/MiKTeX/miktex/issues/585 – Ulrike Fischer Jul 16 '20 at 8:54
  • 1
    Many thanks ! That was indeed Avast... Maybe an update which did wrong. What I did: uninstall Avast, then click on "repair", and it fixes the problem (Avast asked the permission for executing pdflatex). Thanks Ulrike Fischer! – PierreM Jul 16 '20 at 9:06
  • No need to install Avast on Windows since the native antivirus of Windows defender is also if not more powerful, see : The best Windows antivirus software for home users – AndréC Jul 16 '20 at 10:57
10

The last two who had this error had a problem with a virus program kicking in (Avast in both cases).

See e.g. https://github.com/MiKTeX/miktex/issues/585

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.