librealsense: (Resolved) Apt server is broken/down, gives 403 Forbidden (May 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 https://github.com/IntelRealSense/librealsense/issues/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.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 7
  • Comments: 30

Most upvoted comments

@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:

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).

https://github.com/IntelRealSense/librealsense/commit/9ec146bf5a120fd8a0988296fe3e0daad2da73ff

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

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