LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   in ubuntu-8.04 .apt gives error to install msttcorefonts (https://www.linuxquestions.org/questions/linux-newbie-8/in-ubuntu-8-04-apt-gives-error-to-install-msttcorefonts-815567/)

sumeet inani 06-21-2010 11:44 PM

in ubuntu-8.04 .apt gives error to install msttcorefonts
 
I had copied desired debian files of ubuntu-restricted-extras to /var/cache/apt/archive . So that offline install is possible
But msstcorefonts package involced downloading some exe files while my computer is networkless so during installation it gave error .

Now i ran
Code:

# apt-get install msttcorefonts
Reading package lists... Done
Building dependency tree     
Reading state information... Done
msttcorefonts is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up msttcorefonts (2.4) ...

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.

--23:06:25--  http://surfnet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving surfnet.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://internap.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving internap.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://puzzle.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving puzzle.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://heanet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving heanet.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://superb-west.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving superb-west.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://superb-east.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving superb-east.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://easynews.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving easynews.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://jaist.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving jaist.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://mesh.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving mesh.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://nchc.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving nchc.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving kent.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://umn.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving umn.dl.sourceforge.net... failed: Name or service not known.
--23:06:25--  http://switch.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving switch.dl.sourceforge.net... failed: Name or service not known.
andale32.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)

Then I tried
Code:

# apt-get remove  msttcorefonts
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages will be REMOVED:
  msttcorefonts
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 201kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 105306 files and directories currently installed.)
Removing msttcorefonts ...
W: /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Arial.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS_Bold.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Andale_Mono.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Georgia.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Verdana_Bold_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Webdings.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Arial_Black.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Courier_New_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Impact.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf: not registered.
W: /usr/share/fonts/truetype/msttcorefonts/Georgia_Italic.ttf: not registered.
dpkg: error processing msttcorefonts (--remove):
 subprocess pre-removal script returned error exit status 1

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.

--23:07:03--  http://surfnet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving surfnet.dl.sourceforge.net... failed: Name or service not known.
--23:07:03--  http://internap.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving internap.dl.sourceforge.net... failed: Name or service not known.
--23:07:03--  http://puzzle.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving puzzle.dl.sourceforge.net... failed: Name or service not known.
--23:07:03--  http://heanet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving heanet.dl.sourceforge.net... failed: Name or service not known.
--23:07:03--  http://superb-west.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving superb-west.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://superb-east.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving superb-east.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://easynews.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving easynews.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://jaist.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving jaist.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://mesh.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving mesh.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://nchc.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving nchc.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving kent.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://umn.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving umn.dl.sourceforge.net... failed: Name or service not known.
--23:07:04--  http://switch.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving switch.dl.sourceforge.net... failed: Name or service not known.
andale32.exe: No such file or directory

All done, errors in processing 1 file(s)
dpkg: error while cleaning up:
 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)

Then tried another way of fixing
Code:

# apt-get -f install
Reading package lists... Done
Building dependency tree     
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up msttcorefonts (2.4) ...

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.

--23:10:30--  http://surfnet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving surfnet.dl.sourceforge.net... failed: Name or service not known.
--23:10:30--  http://internap.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving internap.dl.sourceforge.net... failed: Name or service not known.
--23:10:30--  http://puzzle.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving puzzle.dl.sourceforge.net... failed: Name or service not known.
--23:10:30--  http://heanet.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving heanet.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://superb-west.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving superb-west.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://superb-east.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving superb-east.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://easynews.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving easynews.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://jaist.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving jaist.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://mesh.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving mesh.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://nchc.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving nchc.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving kent.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://umn.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving umn.dl.sourceforge.net... failed: Name or service not known.
--23:10:31--  http://switch.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
          => `./andale32.exe'
Resolving switch.dl.sourceforge.net... failed: Name or service not known.
andale32.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)

What can I do ?

#apt-get check
does not report error.
Usually i have seen that if computer finds the file it has to download in current folder then it uses them , like I keep 26104-700.zip in same folder while installing amrnb-7.0.0.2.tar.bz2 but in case of installing msttcorefonts it did not look in current folder ( which was /var/cache/apt/archives) for .exe files.

cantab 06-22-2010 04:46 AM

If possible, connect to the internet and try "apt-get install --reinstall msttcorefonts"

DragonSlayer48DX 06-22-2010 05:06 AM

Also, unless you are logged in as root, you need to prefix commands with "sudo". This gives the installer/package manager permission to install packages.

Cheers

sumeet inani 06-22-2010 05:15 AM

My machine does not have internet connection that is the crux of problem.

halvy 06-22-2010 05:53 AM

Apt may not recognize the file(s) you *just* inserted into it... soo.. you need to delete the pkgcache.bin and srcpkgcache.bin from the /var/cache/apt directory..

This will *make* apt re-read it's database correctly and include the file(s) you manually put in it-- behind it's back ;)

However, if apt still needs to dl some other stuff.. then without a net connection.. I don't think there would be any easy way around it.. unless you can get the package(s) from another pc or source.

halvy 06-22-2010 05:53 AM

sorry.. I am trying to delete a double post :(

sumeet inani 06-23-2010 06:41 AM

I deleted pkgcache.bin & srcpkgcache.bin & APT remade them but still whenever I install or remove anything it says

1 package not properly installed or removed

I also tried
apt-get --reinstall msttcorefonts
I got
E:invalid operation msttcorefonts
ALso
apt-get --reinstall ubuntu-restricted-extras
gave
E:invalid operation ubuntu-restricted-extras

halvy 06-23-2010 12:20 PM

ok well there are several other linux package manangers that might help.. have you tried aptitude yet?

aptitude -f install (this will tell you if there are packages that are incomplete, or need dependencies.

See what it says... sometimes one package manager will see and fix things that others will not.

dselect is another one.

kpackage has some of the good switches available and working on version 3.5.9

But with kpackage you will need to select the deb package separately.. in other words, copy it from your cache to your desktop or where ever, and use kpackage to install it.. when you get to the install screen you will see several switches which allow you to over ride dependencies, etc... select the ones you might find interesting.

Of course you could do the same on the command line, but kpackage (at least this older version) seem to work pretty smoothly when I am having a hard time with apt, and don't want to experiment and re-read the man page for the millionth time.

I would first totally remove the offending file (program) (ie. purge) and then start from scratch.

Running aptitude -f install several times.. to see if anything else is possibly causing you problems.

sumeet inani 06-24-2010 03:09 AM

purge & aptitude options did not work .

Seems I have to get dselect or kpackage.

That didn't help either.

The good thing is

In ubuntu 10.04 when you install ubuntu-restricted-extras & for some reason if system cannot get desired exe files , still the APT does not crash instead it politely suggests
Code:

#dpkg-reconfigure ttf-mscorefonts-installer
So get exe files from somewhere and copy them to a folder then the above command will ask for folder address.
That's all.
Problem
Let us say in ubuntu 8.04 this problem seems to have no solution for offline computer.It is just that system needs exe which it is hell-bent on getting from internet , so bad for networkless computer.
Only if I could fool the apt to indicate a local exe as REQUIRED_link_ address ?


All times are GMT -5. The time now is 05:22 PM.