Ubuntu 20.04.2 LTS. Unable to fetch some archives

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

But code gives this error:

Err:1 focal/universe amd64 tcl amd64 8.6.9+1 403 Forbidden [IP: 94.20.20.125 80]
Err:2 focal/universe amd64 tk amd64 8.6.9+1 403 Forbidden [IP: 94.20.20.125 80]
E: Failed to fetch 403 Forbidden [IP: 94.20.20.125 80]
E: Failed to fetch 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.

1 Answer

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 articleRepositories/CommandLine.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like