Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Resolved) Apt server is broken/down, gives 403 Forbidden (May 2021) #9105

Closed
erelson opened this issue May 26, 2021 · 30 comments
Closed

(Resolved) Apt server is broken/down, gives 403 Forbidden (May 2021) #9105

erelson opened this issue May 26, 2021 · 30 comments

Comments

@erelson
Copy link

erelson commented May 26, 2021


Required Info
Camera Model N/A
Firmware Version N/A
Operating System & Version Ubuntu 20.04/20.04docker
Kernel Version (Linux Only) various
Platform N/A
SDK Version N/A
Language N/A
Segment N/A

Issue Description

This may be a reoccurrence of #6611, but appears to have persisted for at least 4 hours so far. First had a build fail 4 hours ago (4am PST). An earlier build about 7 hours ago worked.

Steps to repro:

# on a system with realsense sources already in place
apt update

# or if you don't such sources in place (e.g. your clean build system)... we presently use the following apt sourcing:
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
apt update

Example result:

E: Failed to fetch http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo/dists/bionic/InRelease  403  Forbidden [IP: 52.218.105.153 80]
E: The repository 'http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease' is not 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 repository creation and user configuration details.
@erelson
Copy link
Author

erelson commented May 26, 2021

Really quickly: Workaround may be to use add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo bionic main" -u instead, but I've only verified that that source works for apt update, not installing packages.

That's via: https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md

Would love to know if we should be using that source instead, generally, too!

@MartyG-RealSense
Copy link
Collaborator

Hi @erelson this issue was reported earlier today - the links were updated from http to https in March 2021.

#9102 (comment)

@erelson
Copy link
Author

erelson commented May 26, 2021

Ahh shoot, thanks! That's what I get for not thinking to look at the closed issues. Also missed the http/s difference.

@rkim87
Copy link

rkim87 commented May 27, 2021

Hi, I still don't seem to get access to the repo somehow. Any help?

@erelson
Copy link
Author

erelson commented May 27, 2021

@rkim87 I should clarify, effectively I ended up doing this:

sed 's/http:\/\/realsense-hw-public.s3.amazonaws.com/https:\/\/librealsense.intel.com/' /etc/apt/sources.list

(this will print the updated contents; add -i after sed to actually have this change the file)

aka:

- deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo focal main
+ deb https://librealsense.intel.com/Debian/apt-repo focal main

My understanding was incomplete earlier, and I thought I needed to just change http to https. It is instead a full domain name change as in the above command:

@rkim87
Copy link

rkim87 commented May 27, 2021

When I try what you suggested, I keep running into the following:

Err:6 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial InRelease
403 Forbidden [IP: 52.218.88.250 80]

Is this a firewall/server issue on my end?

@erelson
Copy link
Author

erelson commented May 27, 2021

That error indicates you still have the incorrect source entry somewhere in /etc/apt/. Are you sure you removed it/commented it out?

@rkim87
Copy link

rkim87 commented May 27, 2021

I was able to get it to work by fixing the source entry in /etc/apt/. Thank you so much! C:

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @erelson for providing advice to @rkim87 :)

@erelson
Copy link
Author

erelson commented May 27, 2021

This might be a thing for a separate issue, but thought I'd mention it here. Another build of ours failed because we pull and build the source from a past release of librealsense (i.e. we pin an older version for stability). The older version in our case also does a wget from the old URLs of e.g. the firmware binary. Example URL hardcoded in an old release's branch:

https://github.com/IntelRealSense/librealsense/blob/v2.33.1/common/fw/CMakeLists.txt#L15

The build of librealsense itself succeeds, but it's missing the files that it can't find.

We ended up adding to our build (so that we don't immediately need to upgrade and possibly break other things 🙏 ):

 wget -P /usr/share/librealsense2/ https://librealsense.intel.com/Releases/RS4xx/FW/D4XX_FW_Image-${REALSENSE_FW}.bin

@erelson
Copy link
Author

erelson commented May 28, 2021

And one more detail: If building older source branches, you may also want this cmake flag so it doesn't try to import it in the first place (I guess): -DIMPORT_DEPTH_CAM_FW=false

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @erelson for sharing your detailed advice on this subject with the RealSense community!

@matanox
Copy link

matanox commented Jun 1, 2021

Okay so I understand from the later posts on this thread that librealsense.intel.com/Debian/apt-repo focal main is now the correct repository thingy to use, whereas the old "aws" name is practically deprecated. Using sed to make that switch seems to solve my apt update error that showed up few days ago. However I am not actively using RealSense these days, so my verification that this is correct might be void. Let me know if I got it right?

Thanks for this thread, I'd never realize this on my own without losing half a day's worth of work.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 1, 2021

Hi @matanster I believe that the changes that you are referring to are the ones documented in the change history of the distribution_linux.md instruction page, with the previous amazonaws links highlighted in red and the current links highlighted in green (see the small link below).

9ec146b

@erelson
Copy link
Author

erelson commented Jun 5, 2021

I think, based on a quick googling, and the reactions to several comments above indicating it's been seen a bunch, that this ticket is being found by those running across the issue. I'm going to go ahead and close it, since it has a clear solution, is in the release notes, and finding this ticket when googling it is probably the best that anyone can hope for :) (and I assume closing it won't suddenly cause google to stop showing this in results)

@erelson erelson closed this as completed Jun 5, 2021
@erelson erelson changed the title Apt server is broken/down, gives 403 Forbidden (May 2021) (Resolved) Apt server is broken/down, gives 403 Forbidden (May 2021) Jun 5, 2021
@MartyG-RealSense
Copy link
Collaborator

Thanks very much @erelson for the update!

@GBT16
Copy link

GBT16 commented Aug 26, 2021

Hi @MartyG-RealSense, could you help me please I'm trying to update my realsense SDK, and use sudo apt update and i'm facing a problem
Err:16 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease 403 Forbidden [IP: 52.218.28.186 80]
Screenshot from 2021-08-26 10-43-01

what should I do?

@MartyG-RealSense
Copy link
Collaborator

Hi @GBT16 In March 2021 Intel switched from using http addresses to secure https addresses. These changes are reflected in the official instruction pages for building with packages.

If you are using an Nvidia Jetson board, please refer to the second of the links below and go to section 5. Register the server's public key on that page.

x86/x64
https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages

Nvidia Jetson
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_jetson.md

@GBT16
Copy link

GBT16 commented Aug 28, 2021

Hi @MartyG-RealSense sorry for late reply, I tried in that link and I think I already register the right server's public key since it unchanged when I run your program.
Screenshot from 2021-08-28 22-32-36
then I tried the next step and it's still stuck on the same problem
Screenshot from 2021-08-28 22-34-40
please help me :')

@MartyG-RealSense
Copy link
Collaborator

@GBT16 Your problem looks like a repeat of one that a RealSense user had earlier in this discussion at #9105 (comment) - the comment below it provided advice about a possible incorrect source entry somewhere in /etc/apt/

@GBT16
Copy link

GBT16 commented Aug 28, 2021

@MartyG-RealSense I already change in my source.list manually and it still back to
http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease
again like so
Screenshot from 2021-08-29 00-10-49
this is my source.list
Screenshot from 2021-08-29 00-13-51

@GBT16
Copy link

GBT16 commented Aug 28, 2021

@MartyG-RealSense I already resolved it thank you for your help :))

@MartyG-RealSense
Copy link
Collaborator

@GBT16 That's great to hear, I was just writing to you now so it's excellent that you found a solution. Thanks very much for the update!

@alk15
Copy link

alk15 commented Jan 21, 2022

Hi! I seem to have a similar issue now in Ubuntu 18.04. Any help ? Thanks :)

sudo add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo bionic main" -u

Err:4 https://librealsense.intel.com/Debian/apt-repo bionic Release
  Could not handshake: The TLS connection was non-properly terminated.

E: The repository 'https://librealsense.intel.com/Debian/apt-repo bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 21, 2022

Hi @alk15 I have not previously seen that handshaking error in relation to librealsense, though my research of the error in general indicates that it can be caused by a firewall or a network proxy (such as a proxy used on a Virtual Machine setup).

@JaeYoungLee79
Copy link

So? Is it solve?

Err:6 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial InRelease
403 Forbidden [IP: 52.218.1.138 80]

@JaeYoungLee79
Copy link

Err:5 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease
403 Forbidden [IP: 52.218.65.17 80]
Hit:6 http://kr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:7 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial InRelease
403 Forbidden [IP: 52.218.65.17 80]

@MartyG-RealSense
Copy link
Collaborator

Hi @JaeYoungLee79 I have replied at the new issue that you posted at #10251

@swashy69
Copy link

Hello there
I am also getting the same error.
I am a bit of newbie to Linux, so it will be very helpful of someone who can guide me and solve my problem :)
thanks
P.S. :- My English is bad because it is not my main language so please don't mind it.

@MartyG-RealSense
Copy link
Collaborator

Hi @swashy69 Does librealsense build for you if you use the simple installation method in the link below instead of packages?

https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants