cannot install fonts-lmodern in 18.04

Asked by pen name

I installed from scratch lubuntu 18.04.1 LTS as well as linux mint 19.1 xfce on two laptops. The installation went well and I was able to reboot the machines and installed other (non-tex-related) softwares. But when I tried to install texlive-latex I got massive errors. Eventually I tracked down the problem to a single package, fonts-lmodern. I used synaptic to purge all texlive related packages and then installed fonts-lmodern to isolate this one error message:

W: Failed to fetch http://ftp.utexas.edu/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
  Connection failed [IP: 146.6.15.16 80]

I tried using a different repo but to no avail. I was able to install texlive-base (ie not latex) successfully; it's texlive-latex, specifically lmodern, that caused problems. Texlive installed and functioned correctly in lubuntu 16.04 LTS and linux mint 18.1 xfce on these laptop, so I am at a lost on what to do. I do need latex for work; your help and suggestions are truly appreciative.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu texlive-extra Edit question
Assignee:
No assignee Edit question
Solved by:
pen name
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy fonts-lmodern

Thanks

Revision history for this message
pen name (newcontact8) said :
#2

> What is the output of:
> lsb_release -a; uname -a; apt-cache policy fonts-lmodern

For linux mint 19.1 xfce (on lenovo X220):

No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 19.1 Tessa
Release: 19.1
Codename: tessa
4.15.0-43-generic
fonts-lmodern:
  Installed: (none)
  Candidate: 2.004.5-3
  Version table:
     2.004.5-3 500
        500 http://ftp.utexas.edu/ubuntu bionic/main amd64 Packages
        500 http://ftp.utexas.edu/ubuntu bionic/main i386 Packages

For lubuntu 19.1 LTS (on a 32bit netbook):

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
4.15.0-43-generic
fonts-lmodern:
  Installed: (none)
  Candidate: 2.004.5-3
  Version table:
     2.004.5-3 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main i386 Packages

Please let me know if you have other info. THANKS!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Lubuntu 19.1 isn't out yet and will not be LTS. It will be released in October next year. You are using Ubuntu 18.04 which is LTS

What is the output of (on the Ubuntu system):

sudo apt-get update
sudo apt-get clean
sudo apt-get install fonts-lmodern

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Do you use a proxy for Web access?

Revision history for this message
pen name (newcontact8) said :
#5

(1) You are correct about "lubuntu 19.1" - silly typ on my part.

(2) output of sudo apt-get etc, from linux-mint 19.1:

paddy:~> sudo apt-get update
Ign:1 http://packages.linuxmint.com tessa InRelease
Hit:2 http://ftp.utexas.edu/ubuntu bionic InRelease
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://packages.linuxmint.com tessa Release
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:6 http://archive.canonical.com/ubuntu bionic InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 http://ftp.utexas.edu/ubuntu bionic-updates InRelease
Hit:10 http://ftp.utexas.edu/ubuntu bionic-backports InRelease
Fetched 83.2 kB in 1s (69.4 kB/s)
Reading package lists... Done

paddy:~> sudo apt-get clean

paddy:~> sudo apt-get install fonts-lmodern
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  fonts-lmodern
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,551 kB of archives.
After this operation, 11.0 MB of additional disk space will be used.
Ign:1 http://ftp.utexas.edu/ubuntu bionic/main amd64 fonts-lmodern all 2.004.5-3
Err:1 http://ftp.utexas.edu/ubuntu bionic/main amd64 fonts-lmodern all 2.004.5-3
  Connection failed [IP: 146.6.15.16 80]
E: Failed to fetch http://ftp.utexas.edu/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb Connection failed [IP: 146.6.15.16 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

(I also tried sudo apt-get install fonts-lmodern --fix-missing and got the same error)

(3) Do you use a proxy for Web access?

I'm afraid I don't understand your question. I do know that I have no problem install other packages from apt or synaptic.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Run it on the Ubuntu system only please. We don't support Mint here.

Revision history for this message
pen name (newcontact8) said :
#7

Thanks. I did run this on regular lubuntu 18.04.1 LTS and got the same error.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

The output is different in the apt-get update text though. We need this

Revision history for this message
pen name (newcontact8) said :
#9

Understood. Here's the output from lubuntu 18.04.1 LTS:

net2:~> sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:5 http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_18.04 InRelease
Hit:6 http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_18.04 Release
Reading package lists... Done
net2:~>
net2:~> sudo apt-get clean
net2:~>
net2:~> sudo apt-get install fonts-lmodern
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  fonts-lmodern
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,551 kB of archives.
After this operation, 11.0 MB of additional disk space will be used.
Err:1 http://us.archive.ubuntu.com/ubuntu bionic/main i386 fonts-lmodern all 2.004.5-3
  Connection failed [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb Connection failed [IP: 91.189.91.26 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I also tried the --fix-missing option and got the same error message. Thanks for your prompt reply!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

OK, try

cd ~/Downloads
wget http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
sudo dpkg -i ./fonts-lmodern_2.004.5-3_all.deb
sudo apt-get -f install

Revision history for this message
pen name (newcontact8) said :
#11

Aaah, looks like you identified the issue:

net2:~> cd
net2:~> cd Downloads/
net2:~/Downloads> wget http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
--2018-12-28 15:11:11-- http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.23, 91.189.91.26, 2001:67c:1562::19, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2018-12-28 15:11:12-- (try: 2) http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2018-12-28 15:11:14-- (try: 3) http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2018-12-28 15:11:17-- (try: 4) http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2018-12-28 15:11:21-- (try: 5) http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2018-12-28 15:11:26-- (try: 6) http://us.archive.ubuntu.com/ubuntu/pool/main/l/lmodern/fonts-lmodern_2.004.5-3_all.deb
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

It seems that some kind of security software either running on your system or run by your internet service provider blocks access to that package.

Try downloading https://launchpad.net/ubuntu/+archive/primary/+files/fonts-lmodern_2.004.5-3_all.deb
and report the results.

Revision history for this message
pen name (newcontact8) said :
#13

(I submitted a reply but it didn't show up so let me try again)

I was able to download this package directly and installed it. Thanks!

I then tried to install the rest of texlive-fonts-extra and again I ran into a wall of error message:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/f/fonts-adf/fonts-adf-accanthis_0.20110505-1_all.deb
  Connection failed [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/f/fonts-adf/fonts-adf-berenis_0.20110505-1_all.deb
  Connection failed [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/f/fonts-adf/fonts-adf-gillius_0.20110505-1_all.deb
  Connection failed [IP: 91.189.91.23 80]

etc etc. I was able to manually download the first of these using your method and then install it. But there are over 40 of these, and I have to do this for four machines. I wonder if there is a better way to do this?

Also: Since I was able to download these packages by hand, I assume the issue is not caused by my ISP or setting of my laptop (where I just installed lubuntu 18.04.1 from scratch).

THANKS!

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Maybe switching to a different repository server helps.

Which source did you select for the manual download?

Revision history for this message
pen name (newcontact8) said :
#15

(1) "Maybe switching to a different repository server helps."

When I fired up synaptic it says that the downloads are from "US serves" but didn't specify which one. I clicked "choose the best server" and got

  http://ro-mirrors.evowise.com/ubuntu

I played with a few others, including ones outside of US, and I got the same error message.

(2) "Which source did you select for the manual download?"

I followed the instruction in #12 and simply typed

  https://launchpad.net/ubuntu/+archive/primary/+files/fonts-lmodern_2.004.5-3_all.deb

into the address of firefox to download this file. Similarly, I typed

  https://launchpad.net/ubuntu/+archive/primary/+files/fonts-adf-accanthis_0.20110505-1_all.deb

to get the missing file in #13. But there are over 40 missing files just in texlive-fonts-recommended and there are a few other texlive packages I need to install, so I really need a more sensible solution. At least this rules out e.g.s issues with ISP/router/firewall etc.

THANKS!

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

As far as I can see the main difference between the not-working and the working links is http: versus https: protocol.

This does not rule out issues with the ISP.

What you might try:
Close all package management programs.
Open a terminal window and issue the command
sudo gedit /etc/apt/sources.list
Change all occurrences
from
http://ro-mirrors.evowise.com/ubuntu/
into
https://ro-mirrors.evowise.com/ubuntu/
save the file and close the editor.
Then try installing the desired fonts.

Revision history for this message
pen name (newcontact8) said :
#17

This solves my problem!

I'm surprised that this issue has not been reported before. Is this just a weird issue for me only, or is that a bug with how the ubuntu repo was setup? How might I report this issue?

MANY THANKS!

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

I have not heard about such issue from anybody else. So I assume that it is a problem with your system only.