LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-05-2022, 02:03 AM   #1
complete
Member
 
Registered: Jul 2005
Location: St. Louis, USA
Posts: 38

Rep: Reputation: 15
Question Why does "sudo apt update" cause a series of "403 Forbidden" errors?


Why does "sudo apt update" cause a series of "403 Forbidden" errors?

I have a Ubuntu 22.04 virtual machine using VMware on a Windows 10 Enterprise computer.
Part of setting things up requires I use the command:

Quote:
sudo apt update
or

Quote:
sudo apt-get update --fix-missing
both commands cause the same error messages. They consist of

Quote:
403 Forbidden [IP: 91.189.91.39 80]
Either I need to do something to establish a network connection, I assume, or I need to find a way to do what I need through downloads and file shares with the host computer. Either way, I need help.

Since I do not have the ability to share files or the clipboard memory with the Virtual Machine, I had to do a screen shot. But, fortunately, I ran that through a pretty good OCR image to text converter so I can share this:

Quote:
william@william-virtual-machine: - $ sudo apt update
[sudo] password for william:
Err:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
403 Forbidden (IP: 91.189.91.39 80]

Err:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
403 Forbidden [IP: 91.189.91.39 80]

Err:3 http://us.archive.ubuntu.coR/ubuntu jammy.backports InRelease
403 Forbidden [IP: 91.189.91.39 80)

Err:4 http://securtty.ubuntu.com/ubuntu jammy-security InRelease
403 Forbidden [IP: 91.189.91.38 80]

Reading package lists... Done
N: See apt-secure(8) manpage for reposttory creatton and user conftguration detatls.
N: Updating from such a reposttory can't be done securely, and ts therefore disabled by default.
E: The reposttory 'http://us.archive.ubuntu.coR/ubuntu jammy InRelease' ts no longer signed.
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...army/InRelease 403 Forbidden [IP: 91.189.91.39 80]
N: See apt-secure(8) manpage for repository creation and user configuration detalls.
N: Updating from such a reposttory can't be done securely, and is therefore disabled by default.
E: The repository 'http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease' is no longer stgned.
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...ates/InRelease 403 Forbtdden [IP: 91.189.91.39 80)
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...orts/InRelease 403 Forbtdden [IP: 91.189.91.39 80]
E: The repository 'http://us.archive.ubuntu.com/ubuntu jarmy-backports InRelease' is no longer signed.
N: Updating from such a reposttory can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for reposttory creation and user configuration detalls.
E: Falled to fetch http://security.ubuntu.com/ubuntu/di...rtty/InRelease 483 Forbidden [IP: 91.189.91.38 80 ]
E: The repository 'http://security.ubuntu.com/ubuntu jammy-securtty InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for reposttory creation and user configuration detalls.

william@william-virtual-machine:
And here is a link to the screen capture

https://photos.app.goo.gl/7cK5hYeKHFwyr5ne6

Please help. Is there some sort of configuration I need to do in order to establish network connectivity? I did a search online and so far the information regarding a 403 error is in regard to a web server files not having the proper file permissions for a browser. What changes do I need to make on my end?
 
Old 05-05-2022, 02:30 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
you can try it in a browser (and the other urls too): http://us.archive.ubuntu.com/ubuntu

does it work for you?
 
Old 05-05-2022, 11:28 PM   #3
Pentium4User
Member
 
Registered: Jan 2018
Posts: 82

Rep: Reputation: Disabled
Maybe check again in some hours, it is maybe a problem with the repository.
Do you (or your sysadmins) operate a application layer firewall or a proxy server?
If so, contact them and find out if these are the problem.
You can switch to the main mirror, just remove the us from the URL in sources.list.
 
Old 05-07-2022, 01:25 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by complete View Post
Since I do not have the ability to share files or the clipboard memory with the Virtual Machine, I had to do a screen shot. But, fortunately, I ran that through a pretty good OCR image to text converter so I can share this:
Thank you for doing that! After replacing a few odd characters I had no problems connecting to some of these links.
Does the problem persist for you? Are you using TOR to connect?
 
Old 05-07-2022, 10:00 AM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
Quote:
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...army/InRelease 403 Forbidden [IP: 91.189.91.39 80]
I get a 404 error on that too.
http://us.archive.ubuntu.com/ubuntu/...army/InRelease

Should be this
http://us.archive.ubuntu.com/ubuntu/dists/jammy/
http://us.archive.ubuntu.com/ubuntu/...ammy/InRelease
http://us.archive.ubuntu.com/ubuntu/ubuntu/dists/jammy/
http://us.archive.ubuntu.com/ubuntu/...ammy/InRelease

Code:
whois 91.189.91.39
...
inetnum:        91.189.88.0 - 91.189.95.255
netname:        CANONICAL-CORE
country:        GB
org:            ORG-CGL14-RIPE

curl -LI http://us.archive.ubuntu.com/ubuntu/dists/jammy/
HTTP/1.1 200 OK
Date: Sat, 07 May 2022 14:57:45 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Type: text/html;charset=UTF-8

ping -c1 us.archive.ubuntu.com
PING us.archive.ubuntu.com (91.189.91.38) 56(84) bytes of data.
64 bytes from banjo.canonical.com (91.189.91.38): icmp_seq=1 ttl=50 time=31.5 ms

--- us.archive.ubuntu.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 31.456/31.456/31.456/0.000 ms
 
Old 05-07-2022, 10:58 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
currently two links are dead for me. Another mirror should be used.
 
Old 05-07-2022, 12:28 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
The third link posted in post #1 is incorrect, a typo? It shows:

when it should be:

Don't know how that would happen as the r key is not close to the m, at least on my keyboard.

The first link in the sources list is also incorrect as it shows "jarmy' rather than 'jammy'.
 
Old 05-07-2022, 01:21 PM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
Quote:
Originally Posted by yancek View Post
Don't know how that would happen as the r key is not close to the m, at least on my keyboard.

The first link in the sources list is also incorrect as it shows "jarmy' rather than 'jammy'.
That is a screenshot and an OCR, that's why.
 
1 members found this post helpful.
  


Reply

Tags
ubuntu, vmware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM
Apache - "403 forbidden" message on any DIR below DocumentRoot stevod333 Linux - Software 12 06-12-2006 04:58 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration