update_kernel.sh is failing

Fixed with: Debian 9.x/10.x: ERROR: The certificate of ‘rcn-ee.com’ is not trusted.

Edit: Ah, your running Stretch… give me a moment and test that too…
Edit2: yeap, same command for 10.x works with 9.x:

We need to upgrade: libgnutls30

Debian GNU/Linux 9 beaglebone ttyS0

BeagleBoard.org Debian Stretch IoT Image 2020-04-06

Support: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

default username:password is [debian:temppwd]

beaglebone login: 
root@beaglebone:~# wget https://rcn-ee.com/repos/debian/dists/buster/Release
--2021-10-22 15:25:42--  https://rcn-ee.com/repos/debian/dists/buster/Release
Resolving rcn-ee.com (rcn-ee.com)... 45.33.2.10, 2600:3c00::f03c:91ff:fe37:6ad5
Connecting to rcn-ee.com (rcn-ee.com)|45.33.2.10|:443... connected.
ERROR: The certificate of ‘rcn-ee.com’ is not trusted.
ERROR: The certificate of ‘rcn-ee.com’ has expired.
sudo apt update
sudo apt install --only-upgrade libgnutls30
root@beaglebone:~# sudo apt update ; sudo apt install --only-upgrade libgnutls30
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:1 http://repos.rcn-ee.com/debian stretch InRelease [3,079 B]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:4 http://deb.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]                    
Get:6 http://deb.debian.org/debian stretch Release.gpg [3,177 B]
Get:7 http://repos.rcn-ee.com/debian stretch/main armhf Packages [1,794 kB]
Get:8 http://deb.debian.org/debian-security stretch/updates/contrib armhf Packages [1,764 B]
Get:9 http://deb.debian.org/debian-security stretch/updates/main armhf Packages [700 kB]
Get:10 http://deb.debian.org/debian-security stretch/updates/non-free armhf Packages [5,320 B]
Get:11 http://deb.debian.org/debian stretch/contrib armhf Packages [41.8 kB]   
Get:12 http://deb.debian.org/debian stretch/main armhf Packages [6,908 kB]     
Get:13 http://deb.debian.org/debian stretch/non-free armhf Packages [59.8 kB]  
Fetched 6,256 B in 54s (114 B/s)                                               
Reading package lists... Done
Building dependency tree       
Reading state information... Done
124 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  gnutls-bin
The following packages will be upgraded:
  libgnutls30
1 upgraded, 0 newly installed, 0 to remove and 123 not upgraded.
Need to get 842 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian-security stretch/updates/main armhf libgnutls30 armhf 3.5.8-5+deb9u6 [842 kB]
Fetched 842 kB in 0s (2,102 kB/s)
(Reading database ... 56622 files and directories currently installed.)
Preparing to unpack .../libgnutls30_3.5.8-5+deb9u6_armhf.deb ...
Unpacking libgnutls30:armhf (3.5.8-5+deb9u6) over (3.5.8-5+deb9u4) ...
Setting up libgnutls30:armhf (3.5.8-5+deb9u6) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
root@beaglebone:~# wget https://rcn-ee.com/repos/debian/dists/buster/Release
--2021-10-22 15:29:36--  https://rcn-ee.com/repos/debian/dists/buster/Release
Resolving rcn-ee.com (rcn-ee.com)... 45.33.2.10, 2600:3c00::f03c:91ff:fe37:6ad5
Connecting to rcn-ee.com (rcn-ee.com)|45.33.2.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2196 (2.1K)
Saving to: ‘Release’

Release             100%[===================>]   2.14K  --.-KB/s    in 0s      

2021-10-22 15:29:36 (7.29 MB/s) - ‘Release’ saved [2196/2196]

Regards,