When I updated MikTeX through the automatic update program, I could not compile afterwards. It could not find pdftex-def. I then uninstalled MiKTeX and reinstalled it again. Now it is working again. If I run the update program again, I can see that pdftex-def is obsolete and will be removed. Is that was caused the problem in the first place? Is this a bug?
A clean install of MiKTeX solved the problem. Now I can run the automatic update via MiKTeX which automatic remove
pdftex-deffrom MikTeX, without any problems.
Edit: as pointed out by Ulrike Fischer, I did not need to make a clean install of MikTeX, just find the missing package and install that in the package manager.
1Reinstalling miktex is not necessary. You only need to run the standard administration tools, like synchronizing, checking for new packages in the package manager and running the update manager. I had a missing pdftex.def too after one of the last updates and it took me only 5 minutes to get it. Aug 2, 2016 at 13:09
graphicsis being updated to 1.0s (15-jul-2016).