Comment 8 for bug 147253

Pixo (xxx5x) wrote :

I had a problem with installation msttcorefonts 2.2 trying to connect to empty proxy : "Error parsing proxy URL http://:8080/: Invalid host name".
I don't connect through proxy but use router.
This worked for my (comment line 57 - "export http_proxy" in /var/lib/dpkg/info/msttcorefonts.postinst):

      sudo sed -e 's/export\ http_proxy/#export\ http_proxy/' -i.old /var/lib/dpkg/info/msttcorefonts.postinst
      sudo apt-get install -f

Don't know if it works for proxy connections. If not run this and it will restore original file:

      sudo mv /var/lib/dpkg/info/msttcorefonts.postinst.old /var/lib/dpkg/info/msttcorefonts.postinst