503 Service Unavailable ,error 503 when using sudo apt-get update , on wsl ubuntu 20.04

SEBASTIAN BALCERO 0 Reputation points
2024-01-04T21:24:50.3633333+00:00

I am using ubuntu 20.04 on wsl on my pc and I get this error 503 when I use the command sudo apt-get update, I need help, I have been getting this error for many days. I have used other DNS, user agent, used some ubuntu mirrors and the error continues.

Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  503  Service Unavailable [IP: 91.189.91.81 80]
Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  503  Service Unavailable [IP: 91.189.91.81 80]
Err:3 http://security.ubuntu.com/ubuntu focal-security InRelease
  503  Service Unavailable [IP: 185.125.190.39 80]
Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  503  Service Unavailable [IP: 91.189.91.81 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  503  Service Unavailable [IP: 91.189.91.81 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  503  Service Unavailable [IP: 91.189.91.81 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  503  Service Unavailable [IP: 91.189.91.81 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  503  Service Unavailable [IP: 185.125.190.39 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,586 Reputation points MVP
    2024-01-04T21:30:24.3766667+00:00

    Hello @SEBASTIAN BALCERO

    Welcome to Microsoft QnA!

    This error usually points to DNS related problems

    Please follow this ;

    https://gist.github.com/coltenkrauter/608cfe02319ce60facd76373249b8ca6

    It seems other users got it solved by this method


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.