Installing msttcorefonts: Error message

Asked by Dariel Dato-on

Hello! I'm trying to install msttcorefonts. However I keep getting an error message. This is what it says in my terminal:

-----start-----
Setting up msttcorefonts (2.2) ...

These fonts were provided by Microsoft "in the interest of cross-
platform compatibility". This is no longer the case, but they are
still available from third parties.

You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.

--14:11:31-- http://surfnet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving surfnet.dl.sourceforge.net... failed: Connection timed out.
--14:11:41-- http://internap.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving internap.dl.sourceforge.net... failed: Connection timed out.
--14:11:51-- http://puzzle.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving puzzle.dl.sourceforge.net... failed: Connection timed out.
--14:12:01-- http://heanet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving heanet.dl.sourceforge.net... failed: Connection timed out.
--14:12:11-- http://superb-west.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving superb-west.dl.sourceforge.net... failed: Connection timed out.
--14:12:21-- http://superb-east.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving superb-east.dl.sourceforge.net... failed: Connection timed out.
--14:12:31-- http://easynews.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving easynews.dl.sourceforge.net... failed: Connection timed out.
--14:12:41-- http://jaist.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving jaist.dl.sourceforge.net... failed: Connection timed out.
--14:12:51-- http://mesh.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving mesh.dl.sourceforge.net... failed: Connection timed out.
--14:13:01-- http://nchc.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
           => `./andale32.exe'
Resolving nchc.dl.sourceforge.net... 211.79.61.10, 2001:e10:5c00:1::10
Connecting to nchc.dl.sourceforge.net|211.79.61.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 198,384 (194K) [application/octet-stream]

100%[====================================>] 198,384 127.92K/s

14:13:13 (127.68 KB/s) - `./andale32.exe' saved [198384/198384]

--14:13:13-- http://nchc.dl.sourceforge.net/sourceforge/corefonts/arialb32.exe
           => `./arialb32.exe'
Resolving nchc.dl.sourceforge.net... failed: Connection timed out.
--14:13:23-- http://kent.dl.sourceforge.net/sourceforge/corefonts/arialb32.exe
           => `./arialb32.exe'
Resolving kent.dl.sourceforge.net... failed: Connection timed out.
--14:13:33-- http://umn.dl.sourceforge.net/sourceforge/corefonts/arialb32.exe
           => `./arialb32.exe'
Resolving umn.dl.sourceforge.net... failed: Connection timed out.
--14:13:43-- http://switch.dl.sourceforge.net/sourceforge/corefonts/arialb32.exe
           => `./arialb32.exe'
Resolving switch.dl.sourceforge.net... 130.59.138.20, 2001:620:0:1b::20
Connecting to switch.dl.sourceforge.net|130.59.138.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 168,176 (164K) [application/octet-stream]

100%[====================================>] 168,176 132.23K/s

14:13:54 (131.92 KB/s) - `./arialb32.exe' saved [168176/168176]

--14:13:54-- http://switch.dl.sourceforge.net/sourceforge/corefonts/arial32.exe
           => `./arial32.exe'
Resolving switch.dl.sourceforge.net... failed: Connection timed out.
Extracting cabinet: andale32.exe
  extracting fontinst.inf
  extracting andale.inf
  extracting fontinst.exe
  extracting AndaleMo.TTF
  extracting ADVPACK.DLL
  extracting W95INF32.DLL
  extracting W95INF16.DLL

All done, no errors.
Extracting cabinet: arialb32.exe
  extracting fontinst.exe
  extracting fontinst.inf
  extracting AriBlk.TTF

All done, no errors.
arial32.exe: No such file or directory

All done, errors in processing 1 file(s)
dpkg: error processing msttcorefonts (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 msttcorefonts
E: Sub-process /usr/bin/dpkg returned an error code (1)
----end----

Your help is greatly appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
arochester
Solved:
Last query:
Last reply:
Revision history for this message
Gord Allott (gordallott) said :
#1

you might want to try installing the msttcorefonts again, it sounds like your internet connection was a bit dodgy so some of the files didn't download

Revision history for this message
Dariel Dato-on (odd-rationale) said :
#2

Yes, I have tried to reinstalling it, but I get the same error mesage. Also I cannot *uninstall* either. Whenever I try to do anything with Synaptic, I get the exact same message.

Revision history for this message
Best arochester (arochester) said :
#3

Have you used Automatix? Don't! I had the same problem, couldn't find an answer and ended up doing a fresh install...

Revision history for this message
Dariel Dato-on (odd-rationale) said :
#4

No, not using Automatix. Might try fresh install. :)

It gets really annoying as it pops up whenever you try to install anything.

Revision history for this message
Gord Allott (gordallott) said :
#5

before trying again you should run
sudo dpkg --purge msttcorefonts

Revision history for this message
arochester (arochester) said :
#6

msttcorefonts is "available" through repository but reports error in package. It might be better to wait a while before trying again.

Revision history for this message
Dariel Dato-on (odd-rationale) said :
#7

I tried
sudo dpkg --purge msttcorefonts

But I get the same error message. Only it begins with:

dpkg: error processing msttcorefonts (--purge):
 subprocess pre-removal script returned error exit status 1

I'll try again tomorrow.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

If you use some proxy may be you must set
export http_proxy=xxx.xxx.xxx.xxx:port
and
export ftp_proxy=xxx.xxx.xxx.xxx:port

HTH

Revision history for this message
Dariel Dato-on (odd-rationale) said :
#9

I don't think I'm using a proxy.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#10

I try this now and all works fine for me (Ubuntu 7.10):
sudo apt-get clean
sudo apt-get update
sudo apt-get purge msttcorefonts
sudo apt-get install msttcorefonts

HTH

Revision history for this message
Dariel Dato-on (odd-rationale) said :
#11

Sorry, guys. But even after doing a clean, update, purge, and install, I still get the same error message. I get the same message for the purge and the install.

Revision history for this message
Dariel Dato-on (odd-rationale) said :
#12

Thanks for your help guys.

I just did a fresh install.

Oh, well...

;)

Revision history for this message
Dariel Dato-on (odd-rationale) said :
#13

Thanks arochester, that solved my question.

Revision history for this message
andymac (amckinney) said :
#14

I have just encountered the same problem - msttcorefonts wouldn't install any fonts, wouldn't allow itself to be removed and threw up an error message any time I tried to do anything in synaptic. Eventually I got rid of it as follows:

1. The post-installation script (/var/lib/dpkg/info/msttcorefonts.postinst) was looking for a directory /usr/share/fonts/truetype/msttcorefonts, which for some reason I didn't have. Don't know, don't care, some problem with the original installation I guess. Anyway I created the directory and populated it with the MS core fonts downloaded manually from the web. This fixed the post-installation script error.

2. Attempts to remove msttcorefonts now gave me an error from the pre-removal script (/var/lib/dpkg/info/msttcorefonts.prerm). This script is fairly simple, basically just removes the actual fonts prior to removal of the installer. I commented out the two if statements in there, after which I was able to successfully remove msttcorefonts itself using sudo apt-get remove --purge msttcorefonts. I won't be inviting it back any time soon.

Hope that saves someone a fresh install.

Revision history for this message
arochester (arochester) said :
#15

After week and weeks and weeks I have managed to successfully load msttcorefonts. I tried all sorts of things.

Adept Updater yesterday indicated an update to msttcorefonts 1.8. At the top of this post it's 2.2. Has there been a backwards step?

In e17 I downloaded (but did not install) the package. I later changed to Kubuntu and installed the package with Kpackage.

It seems to be alright.

Revision history for this message
David Wen Riccardi-Zhu (dwrz) said :
#16

Had this problem as well. Am behind proxy, though. I decided to just use the solution andymac came up with. Worked fine, downloaded fonts from gnome-look.

Revision history for this message
in0de (felger) said :
#17

I "solved" the problem by editing /var/lib/dpkg/info/msttcorefonts.postinst

Line 15:
b_get msttcorefonts/http_proxy

just commented this line out:
#b_get msttcorefonts/http_proxy

the installation worked, but I got a strange message:

"All done, no errors.
All fonts downloaded and installed.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for KochiMincho-Regular, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular-JaH, defaulting to 0.
No CIDSupplement specified for KochiMincho-Regular-JaH, defaulting to 0.
Couldn't get cwd: No such file or directory"

Anyone knows what this means?

Revision history for this message
draxbear (drax) said :
#18

I had this problem as well. I'm behind a proxy, and have apt-cacher setup.

I suspect this package somehow wasn't aware of that and kept trying to go direct.

After exporting the an env setting for my proxy a retry of the install worked ok.
 export http_proxy=http://user:password@hostname:port

I'd avoid directly manipulating the install scripts in the package and instead read up on manual download/install of the files instead. The package appears to be a wrapper that automates this for us due to the license requirements forcing them to keep the files in a non-debian-package format.

Revision history for this message
m.s.jaafreh (m-s-jaafreh) said :
#19

i have the same problem..... so please some body i used the way (( export http_proxy=http://user:password@hostname:port))
but nothing...

Revision history for this message
Kartik Krishnan (kartik-focus) said :
#20

@ m.s.jaafreh
that didn't work for me either

this is what I did

I edited the file /var/lib/dpkg/info/ttf-mscorefonts-installer.postinst

I changed the line
http_proxy=$RET to

http_proxy=http://hostname:port

(replace hostname and port with your hostname and port)

I commented out the lines

while ! echo "$http_proxy" | \
    egrep -q 'https?://[[:alnum:]][-.[:alnum:]]+(:\d+)?/?' && \
    [ ! -z "$http_proxy" ] ; do
        db_fset msttcorefonts/http_proxy seen false
        db_input high msttcorefonts/http_proxy
        db_go
        db_get msttcorefonts/http_proxy
        http_proxy=$RET
done

and saved the file

after that, I ran

sudo dpkg --configure -a

and the install was completed