[Resolved]Unable to fetch some archives, maybe run apt-get update or try with –fix-missing? in Linux | ERROR

Hello friends,

In this article, we will explain how to resolve the “Unable to fetch some archives, maybe run apt-get update or try with –fix-missing”.



I am trying to install Java (JDK 1.7) on a Linux or Redhat operating system. First, install the default JRE file but not installed due to fetch some java archives”.

ERROR: Unable to fetch some archives, maybe run apt-get update

root@sreekanth-VirtualBox:~# apt install default-jre
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed: (it showing all the jre certificates)
ca-certificates-java default-jre-headless fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni
openjdk-11-jre openjdk-11-jre-headless



Suggested packages:
fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei
The following NEW packages will be installed:
ca-certificates-java default-jre default-jre-headless fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni
openjdk-11-jre openjdk-11-jre-headless
0 upgraded, 9 newly installed, 0 to remove and 367 not upgraded.
Need to get 37.9 MB/39.9 MB of archives. (default memory occupied 180 MB)
After this operation, 180 or 200 MB of additional disk space will be used. (Based on Memory)
Do you want to continue? [Y/n] y
Ign:1 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.9.1+1-0ubuntu1~20.04
Ign:2 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre amd64 11.0.9.1+1-0ubuntu1~20.04
Err:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.9.1+1-0ubuntu1~20.04 ( I am trying to install JDK 11 version)
404  Not Found [IP: 43.255.166.254 80]
Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre amd64 11.0.9.1+1-0ubuntu1~20.04 (Not update jdk files due to security)
404  Not Found [IP: 43.255.166.254 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jre-headless_11.0.9.1+1-0ubuntu1~20.04_amd64.deb  404  Not Found [IP: 43.255.166.254 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jre_11.0.9.1+1-0ubuntu1~20.04_amd64.deb  404  Not Found [IP: 43.255.166.254 80] (Not fetching jre files due to security issues)
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing? (simple tip for application update command)
root@sreekanth-VirtualBox:~#

Solution 1 :

Here I am trying to use the simple Linux command



Step 1: Open the terminal box and type the below command:

sudo apt-get update

After that it will update all security, fetching packages in the Linux operating system.

If the above first resolution is not working then we will go with the second resolution.

Solution 2:

Open the terminal box and then type the below command

sudo apt-get clean

It will clean some of the unnecessary packages in the Linux machine.



After that, you will execute the package update command again

sudo apt-get update

The above resolutions are very simple to resolve this type of issue in the Linux or RedHat machines.