iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.48k stars 3.87k forks source link

Ubuntu upstream packages use expired certificate #4278

Open ryao opened 2 years ago

ryao commented 2 years ago

I was trying to debug a kernel issue on a client's Ubuntu machine and needed a newer bcc according to #2119. Unfortunately, there is an expired certificate issue preventing the upstream packaging from being installed:

$ sudo apt-get update
Hit:1 http://<censored>  InRelease
Hit:2 http://<censored>/mirror/archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://<censored>/mirror/archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://<censored>/mirror/archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://<censored>/mirror/archive.ubuntu.com/ubuntu bionic-security InRelease
Ign:6 https://repo.iovisor.org/apt/bionic bionic InRelease                     
Err:7 https://repo.iovisor.org/apt/bionic bionic Release                       
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 104.199.116.191 443]
Reading package lists... Done                                                  
E: The repository 'https://repo.iovisor.org/apt/bionic 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.

Both Upstream Stable and Upstream Nightly packages are broken by this.

chenhengqi commented 2 years ago

cc @iammattcoleman @shadyabhi @drzaeus77

ryao commented 1 year ago

While it is not recommended, running this as root works around the issue:

touch /etc/apt/apt.conf.d/99verify-peer.conf \
&& echo >>/etc/apt/apt.conf.d/99verify-peer.conf "Acquire { https::Verify-Peer false }"

https://askubuntu.com/a/1210812

eslerm commented 8 months ago
Err:7 https://repo.iovisor.org/apt/bionic bionic Release

This is not an Ubuntu upstream. This is IO Solver Project.

Could the issues title be updated?