8

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!

4
  • 5
    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 Jul 7, 2016 at 20:27
  • 1
    I solve this problem with install graphics-def.
    – Zarko
    Jul 7, 2016 at 20:52
  • Thank you, @UlrikeFischer, synchronizing according to the link provided solved the issue. Jul 8, 2016 at 7:01
  • Installing graphics-def fixed the problem for me too! Thanks @Zarko
    – daviewales
    Mar 6, 2017 at 0:27

2 Answers 2

5

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!

4
  • 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, 2016 at 3:08
  • 1
    True, but rebuilding formats / refreshing the filename database in MikTeX might help. That was my intention... Sep 30, 2016 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, 2017 at 17:47
  • Also, does not help anyone running TeXLive on platforms other than Windows...
    – Alex
    Mar 10, 2018 at 3:56
1

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 MiKTeX Package Manager (Admin) Menu

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) MiKTeX Update (Admin) Menu

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

You must log in to answer this question.

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