0
E: Failed to fetch ftp://ftp.iitb.ac.in/os/ubuntu/archives/pool/main/o/openjdk-7/icedtea-7-jre-jamvm_7u55-2.4.7-1ubuntu1_amd64.deb  Unable to fetch file, server said 'Failed to open file.  '

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I got this error while writing the following commnad:

sudo apt-get install openjdk-7-jdk

I don't have any is idea why, I am very new to ubuntu, please answer in simple language.

saiarcot895
  • 10,757
  • 2
  • 36
  • 39
Manish
  • 101

2 Answers2

1

Sound like you may need to chage mirrors and resynchronize the package index files from their sources.

open Ubuntu Software Centre

And choose Edit -> Software Services -> Ubuntu Software -> Download From

Since your current mirror is in India i'm gussing you would like one close to that. Navigate to India -> mirror.cse.iitk.ac.in select the protocol as http

enter image description here

Close Software Centre and then open a terminal and try the below command.

sudo apt-get update && sudo apt-get install openjdk-7-jdk

squareborg
  • 10,517
1

Try changing the mirror Manish.

To do this , go to System Settings -> Softwares & Updates -> Ubuntu Software and select 'Main Server' or 'Other...' to select other mirrors.

If you select Other... option you can select any other mirror other than the Indian mirrors

Ubuntu Softwares & Updates Window

Kenpachi
  • 1,223