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 ?

4
  • 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 Commented Jul 16, 2020 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
    Commented Jul 16, 2020 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
    Commented Jul 16, 2020 at 10:57
  • Other possible causes for the error message: Other causes, Adobe, Foxit, Avast.
    – user202729
    Commented Dec 17, 2021 at 12:10

1 Answer 1

11

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .