D is my choice.
IMO, A, B and C are wrong because in 'Until X from Y' X and Y are not parallel. Same problem in E. 'Only X and Y'. Comparing a year with a person is wrong.
Until 1868 from Disraeli, Great Britain had no prime minister not coming from a landed family.
B. Until 1868 from Disraeli, Great Britain has had not prime minister who has not come
C. Until 1868 from Disraeli, Great Britain had no prime minister who has not come
D. It was not until 1868 that Great Britain had a prime minister-Disraeli-who did not come
E. It was only 1868 and Disraeli that Great Britain has one of its prime minister not coming.