E: msttcorefonts subprocess post installation script error exit status 1

Asked by Boytim

When installing new software applications or installing new updates, the above error is displayed. Have tried running a terminal with the following; " sudo dpkg --configure -a", as suggested, but the error message still appears.
I am new to Ubuntu/Linux and need clear instructions to solve this problem. Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu msttcorefonts Edit question
Assignee:
No assignee Edit question
Solved by:
Boytim
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

You will need only to give the suggested "sudo dpkg --configure -a" command but if you run all commands below you are pretty sure your Ubuntu became fully updated/upgraded.

Open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

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

msttscorefonts install process need to download some files using wget so please be also sure to be connected to the net.

Hope this helps

Revision history for this message
Boytim (watpost) said :
#3

marcobra wrote:
> Your question #44122 on msttcorefonts in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/msttcorefonts/+question/44122
>
> Project: Ubuntu => msttcorefonts in ubuntu
>
>
Hi,
I have run your instructions successfully but the problems still exist.
Do i need to turn the firewall off when running these commands?
PS I think this problem started after I tried to install Itunes via Wine.

Revision history for this message
Boytim (watpost) said :
#4

marcobra wrote:
> Your question #44122 on msttcorefonts in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/msttcorefonts/+question/44122
>
> Project: Ubuntu => msttcorefonts in ubuntu
>
>
 In addition to the original error posted, when i ran your suggested
commands the following commands in terminal the following error is shown:

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.

Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
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)
tim@tim-desktop:~$

Revision history for this message
Boytim (watpost) said :
#5

Problem still not solved!
The following messages appear after running sudo dpkg --configure -a command in my terminal desk top
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.

Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
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)
tim@tim-desktop:~$

Do I need to run this command in root terminal? or try something different from my desktop terminal?
Thanks

Revision history for this message
Boytim (watpost) said :
#6

My internet connection was not correctly set. Resolved the problem by selecting the following;
System > Preferences > Network Proxy > Manual proxy configuration.

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

If you need to traverse a proxy to get internet access
msttcorefonts require a proxy access... you must temporary define two shell variables or put these line at the end of your /etc/bash.bashrc file :

export http_proxy=http://username:<email address hidden>:port/
export ftp_proxy=http://username:<email address hidden>/

You can omit the username:password, if your proxy server has no password.

Then, in the same terminal... ( please don't onen new one otherwise you must redefine your http_proxy and ftp_proxy vars), type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
tazman34685 (tazman34685) said :
#8

What if you are not using a Proxy, and still get:

Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.
andale32.exe: No such file or directory

Is there a work around?

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

@ Tazman
You are not using a proxy and seems your system have a proxy defined in it.

So please try:

unset http_proxy
unset ftp_proxy

Then, in the same terminal... ( please don't onen new one otherwise you must redefine your http_proxy and ftp_proxy vars), type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
tazman34685 (tazman34685) said :
#10

I tried:
sudo vim /etc/bash.bashrc and added unset http_proxy and unset ftp_proxy to the end of the file. Then in the same terminal window I ran:
sudo dpkg --configure -a

Same result.......Error parsing proxy URL http://:8080/: Invalid host name.

This is an example of my edited file:

#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi

# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
    case " $(groups) " in *\ admin\ *)
    if [ -x /usr/bin/sudo ]; then
        cat <<-EOF
        To run a command as administrator (user "root"), use "sudo <command>".
        See "man sudo_root" for details.

        EOF
    fi
    esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
        function command_not_found_handle {
                # check because c-n-f could've been removed in the meantime
                if [ -x /usr/lib/command-not-found ]; then
                   /usr/bin/python /usr/lib/command-not-found -- $1
                   return $?
                else
                   return 127
                fi
        }
fi

unset http_proxy
unset ftp_proxy
~

I also tried using:
unset http_proxy=http://username:<email address hidden>:port/
unset ftp_proxy=http://username:<email address hidden>/

Also:
unset http_proxy=http://:8080/
unset ftp_proxy=http://:8080/

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

Please make new question from here: https://answers.launchpad.net/ubuntu/+addquestion
you will get better chance to get right answer on a fresh tagged "open" question.
Solved or answered questions are usually not read from answering people.

Thank you

Revision history for this message
tazman34685 (tazman34685) said :
#12

Thanks Marcobra for the Tip. So I just opened:
Question #62464,

Revision history for this message
jake (jake) said :
#13