Remnants of upgrade from Ubuntu Hardy to Intrepid

6 11 2008

The upgrade (via update-manager) from Ubuntu Hardy 8.04 LTS to Ubuntu Intrepid 8.10 went smoothly. I started the upgrade, went to get some lunch and it was mostly done by the time I got back. This is mostly thanks to the local mirror on our campus network.

However I noticed that for some reason it was marking the package called “texlive-fonts-recommended” for removal (apart from other packages). I went along with the suggested removal, but made a mental note of this.

I am using LaTeX quite heavily these days (I am supposedly writing a paper and my thesis). Hence I noticed immediately after the upgrade that simple LaTeX documents would not compile anymore and throw up the following error:

$ latex thesis.tex
[snip]
(/usr/share/texmf-texlive/tex/latex/psnfss/ot1ptm.fd)
kpathsea: Running mktextfm ptmr7t
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ptmr7t
This is METAFONT, Version 2.71828 (Web2C 7.5.6)

kpathsea: Running mktexmf ptmr7t
! I can't find file `ptmr7t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

Transcript written on mfput.log.
grep: ptmr7t.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ptmr7t' failed to make ptmr7t.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font OT1/ptm/m/n/12=ptmr7t at 12.0pt not loadable: Metric (TFM) file not foun
d.
<to be read again>
relax
l.56 \begin{document}

? x
No pages of output.
Transcript written on thesis.log.

Clearly there was something wrong with the fonts subsystem of TeX/LaTeX. I tried to correct this by (recalling my mental note) installing the “texlive-fonts-recommended” package:

$ sudo apt-get install texlive-fonts-recommended

This fixed the problem and I am back to my thesis. Just to check, I tried removing (purging) the package, and the errors returned. Installing the package again fixed it again, as expected. This sure sounds like a bug (removal of a required package during upgrade). If more people have faced this problem, then leave a comment/ trackback here and we should file this as a bug. I don’t have the (mental) bandwidth for doing the bug-filing now, hence this informal report.


Actions

Information

40 responses

13 11 2008
Josh

Thank you for this tip! I was just in the middle of a paper myself and was wondering why my fresh installation of Ubuntu was giving me this error when I thought that I had installed all of the required packages.

17 11 2008
Dan Mihai Ile

Htanks for the info, useful indeed!

28 11 2008
Arthur

Wow. I’ve got this problem too.
Thanks for share the solution. :)

Oh.. and after my Ubuntu upgrade the Cheese app (webcam) stopped to work too :(

20 01 2009
Manik

Thanks , I solved my problem reading this page. Appreciate it!

25 02 2009
Ajeet

Thanks a lot buddy!

4 03 2009
Hiankun

Thank you for sharing this useful information.

8 04 2009
Dick

I could solve this problem, thanks!

18 04 2009
nice

Thanks a lot!

2 06 2009
vincent

hey man, thank you so much for this, I had already tried every package I could remember, but none did the trick. You have saved my deadline !

14 06 2009
Fabio

Thanks, you save my paper!

16 10 2009
Stephane

Thank you for sharing this tip.it solved my problem (on Hardy).

14 11 2009
X

Thanks! That was very helpful!

15 01 2010
K

Thanks, this just saved me some headache.

16 01 2010
CBarnardo

Same here. I am sure this saved a half a day of searching. Thanks.

27 04 2010
PS

Ubuntu 10.04, silly the recommended fonts are not installed. Your post saved hours. Thanks.

10 05 2010
jan

Nice hel,p in 1 minute thanks to you i solved the same problem, 10.04 kubuntu

31 07 2010
Ralf

thank you very much! I had the same problem when upgrading from 8.10 to 10.4 and your tip did solve this problem. Thanks!

2 08 2010
kurniawano

thanks it worked for me, I had teh same problem also with Ubuntu 10.04.

13 08 2010
loschados

great tip, you’re my hero for the day!

27 11 2010
Greg

Bingo! Thanks for the help.

1 02 2011
tiancaicaibackup

Thanks a lot! I’ve stuck here for a lot of time!

15 02 2011
Shannon

OMG thanks so much!

22 05 2011
Brian

Brilliant, thanks!

8 06 2011
Jason’s Computer Science Blog - » Ubuntu 11.04 – Latex

[...] http://sysad.wordpress.com/2008/11/06/ubuntu-hardy-to-intrepid-upgrade-remnants/ Previous: « Ubuntu 11.04 – WordPress updates and plugins through web interface   [...]

9 06 2011
19 06 2011
@capnramses

Thanks! You are a legend. Thesis corrections back on the agenda…

28 06 2011
Naresh

You saved a good amount of time for me. Thank you.

28 06 2011
chuck

Thanks man. It helped me.

22 08 2011
Markus Kaukonen

Greetings from Finland, you also helped me (after ubuntu 10->11). Markus

5 10 2011
Ego

Thanks!!! my texmaker is working again

27 10 2011
Marco

Hey it can’t be said enough, thanks for posting this solution!

31 12 2011
Sabe

Thank you so much :) It was really helpful.

11 01 2012
Fabi

Very useful. Thanks.

31 01 2012
Aurea

Thanks! I was trying to compile a template and it worked perfectly after I followed your tip.

2 03 2012
anand

This is a really a great help, especially to those who upgraded their linux versionl

12 03 2012
sandeep vr

thanks

16 04 2012
Mani

Thank you very much. The error happened to me on a fresh Ubuntu 11.10 and texlive-full install. The error itself was so frustrating and meaningless. Your tip saved a lot of my time.

29 04 2012
Vaino

Had the same problem on fedora 16, thanks

29 04 2012
Vaino

however had to install sudo yum install texlive-times

25 05 2012
hafizsword

thanks a lot. This saved my day.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.