Unable to download package successfully after apt install

Asked 2 years ago, Updated 2 years ago, 397 views

I tried to install Firefox for scraping on Ubuntu 18.04 that I installed from mini.iso, but it failed.
What should I do?

$sudo apt install Firefox-y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  fonts-lyx
The following NEW packages will be installed:
  Firefox
0 upgraded, 1 newly installed, 0 to remove and 589 not upgraded.
Need to get 54.7 MB of archives.
After this operation, 212 MB of additional disk space will be used.
Ign:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 Firefox amd6479.0 + build1-0ubuntu 0.20.04.1
Err:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 Firefox amd6479.0 + build1-0ubuntu 0.20.04.1
  Connection failed [IP: 160.26.2.18780]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_79.0+build1-0ubuntu0.20.04.1_amd64.deb Connection failed [IP: 160.26.2.18780]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Other environments and things to check:

  • I don't use a proxy
  • I have verified that the URL and IP address in the message are pinged.
  • When I changed the package source from Toyama University to JAIST, the result was similar.
  • I also tried apt clean and apt update beforehand, but the installation fails.

As I answered myself, the installation from the file was successful, but this time I can no longer do apt upgrade.Originally, it was successful without any problems.

Step

Results

$sudo apt upgrade
...
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/c/console-setup/console-setup-linux_1.194ubuntu3_all.deb Connection failed [IP: 160.26.2.18780]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2020a-0ubuntu0.20.04_all.deb Connection failed [IP: 160.26.2.18780]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-5.4.0-42_5.4.0-42.46_all.deb Connection failed [IP: 160.26.2.18780]
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-10/llvm-10-dev_10.0.0-4ubuntu1_amd64.deb Connection failed [IP: 160.26.2.18780]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

ubuntu apt

2022-09-30 21:51

1 Answers

I tried apt install again on 2020-08-03, but it failed as well.

Instead, I succeeded in installing the file that I got from wget in the following steps, starting in headless mode or operating from Selenium in Python.
Therefore, I have achieved my goal.

$sudoapt install./firefox_79.0+build1-0ubuntu 0.20.04.1_amd64.deb


2022-09-30 21:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.