sudo apt install fails with Failed to fetch http://security.ubuntu.com/... 404 Not Found [IP: ...

See e.g. the latest build:

sudo apt install graphviz texlive-xetex texlive-fonts-recommended
                        fonts-freefont-otf latexmk lmodern
...
Err:34 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 ruby2.5 amd64 2.5.1-1ubuntu1.5
404 Not Found [IP: 52.168.50.79 80]
http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libruby2.5 amd64 2.5.1-1ubuntu1.5
404 Not Found [IP: 52.168.50.79 80]
...
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby2.5/ruby2.5_2.5.1-1ubuntu1.5_amd64.deb 404 Not Found [IP: 52.168.50.79 80]
Fetched 140 MB in 5s (25.9 MB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby2.5/libruby2.5_2.5.1-1ubuntu1.5_amd64.deb 404 Not Found [IP: 52.168.50.79 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

My workflow: test.yml

1 Like

Try sudo apt update before installing.

12 Likes

my problem solved. thx u so much

Thanks Alot <3