After updating MikTeX today, I get the error

graphics.sty - line 100 - File 'pdftex.def' not found


I've reduced the document to the following and still get the error.

\documentclass[10pt, a4paper]{article}
\usepackage{tikz}
\begin{document}
\end{document}


I've found the missing document here (as part of a bundle): pdftex.def. But I have no idea, where to put the pdftex.def file or what else I could do to resolve this error.

I work on Win 10, with MikTeX 2.9, TeXstudio 2.11.0.

Thanks for any help!

• Some packages have been rearrange. You should synchronize your offline package list and then if needed install graphics-def, tex.stackexchange.com/a/108490/2388 – Ulrike Fischer Jul 7 '16 at 20:27
• I solve this problem with install graphics-def. – Zarko Jul 7 '16 at 20:52
• Thank you, @UlrikeFischer, synchronizing according to the link provided solved the issue. – Buochserhorn Jul 8 '16 at 7:01
• Installing graphics-def fixed the problem for me too! Thanks @Zarko – daviewales Mar 6 '17 at 0:27

I had the same issue, but with a TeXLive 2016 distribution. Perhaps a broken update. I installed graphics-def but it did not solve the problem. However, rebuilding all formats using tlmgr solved the problem. Hope it helps!

• This is unlikely to help a user of MikTeX. tlmgr is, after all, the TeX Live package manager, but isn't it? – cfr Sep 27 '16 at 3:08
• True, but rebuilding formats / refreshing the filename database in MikTeX might help. That was my intention... – Karthik Raman Sep 30 '16 at 4:05
• the question's keywords are graphics and pdftex NOT MikTeX and the error message occurs with TeXlive too, so IMHO this answer is appropriate here. – PatrickT Mar 18 '17 at 17:47
• Also, does not help anyone running TeXLive on platforms other than Windows... – Alex Mar 10 '18 at 3:56

Also had the same issue on Windows 7. For me the solution was to first synchronize the package database in MiKTeX:

run \MiKTeX 2.9\Maintenance (Admin)\Package Manager (Admin)

In the menu, go to Repository > Synchronize

After that, update the packages using:

run \MiKTeX 2.9\Maintenance (Admin)\Update (Admin)

Get the packages from a remote repository (you might have to select a mirror)

In the next step, select all the packages and update them.