1

I'm trying to install this sudo apt-get install gitk git-gui

But code gives this error:

Err:1 http://az.archive.ubuntu.com/ubuntu focal/universe amd64 tcl amd64 8.6.9+1
  403  Forbidden [IP: 94.20.20.125 80]
Err:2 http://az.archive.ubuntu.com/ubuntu focal/universe amd64 tk amd64 8.6.9+1
  403  Forbidden [IP: 94.20.20.125 80]
E: Failed to fetch http://az.archive.ubuntu.com/ubuntu/pool/universe/t/tcltk-defaults/tcl_8.6.9+1_amd64.deb  403  Forbidden [IP: 94.20.20.125 80]
E: Failed to fetch http://az.archive.ubuntu.com/ubuntu/pool/universe/t/tcltk-defaults/tk_8.6.9+1_amd64.deb  403  Forbidden [IP: 94.20.20.125 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

P.S: I've already tried update , upgrade , update --fix-missing commands. But nothing worked for me.

vusalalala
  • 13
  • 1
  • 1
  • 3

1 Answers1

2

Your aptlist of repositories seem to be corrupted in file /etc/apt/sources.list. The repository az.archive.ubuntu.com that you use is not the standard one for Ubuntu.

To restore the source.list file to its initial value, see Ask Ubuntu for the answers in the post
How do I restore the default repositories?

This command recreates the file after removing it:

sudo touch /etc/apt/sources.list

Then open Software & Updates and restore the repositories.

For information about the format of this file, see the article Repositories/CommandLine.

harrymc
  • 455,459
  • 31
  • 526
  • 924
  • Thanks for the answer. You literally made my day!. Problem has been SOLVED.:)) – vusalalala Mar 31 '21 at 17:54
  • What's wrong with `az.archive.ubuntu.com`? It looks like a standard mirror for Azerbaijan. Ubuntu uses `XY.archive.ubuntu.com` format for mirrors. – gronostaj Apr 01 '21 at 08:11
  • @gronostaj: We can't know what went wrong with that repository, perhaps linked to that country just finishing fighting a war. The standard main repository worked, anyway. – harrymc Apr 01 '21 at 08:16