Update not working / CA Issues / no Release File

Hey there,

iam trying to update from6.3.2.2 to 6.35 and get this error on different machines.
Any ideas? No DNS filter active.

Thanks a lot!



APT update                                                                                                           │ 
                      │  - Command: apt-get -q update                                                                                        │ 
                      │  - Exit code: 100                                                                                                    │ 
                      │  - DietPi version: v6.32.2 (MichaIng/master) | HW_MODEL: 21 | HW_ARCH: 10 | DISTRO: 4                                │ 
                      │  - Error log:                                                                                                        │ 
                      │ Ign:1 https://deb.nodesource.com/node_12.x stretch InRelease                                                         │ 
                      │ Ign:2 https://deb.debian.org/debian stretch InRelease                                                                │ 
                      │ Ign:3 https://deb.debian.org/debian stretch-updates InRelease                                                        │ 
                      │ Err:4 https://deb.nodesource.com/node_12.x stretch Release                                                           │ 
                      │   server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none                   │ 
                      │ Ign:5 https://deb.debian.org/debian-security stretch/updates InRelease                                               │ 
                      │ Ign:6 https://deb.debian.org/debian stretch-backports InRelease                                                      │ 
                      │ Err:7 https://deb.debian.org/debian stretch Release                                                                  │ 
                      │   server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none                   │ 
                      │ Err:8 https://deb.debian.org/debian stretch-updates Release                                                          │ 
                      │   server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none                   │ 
                      │ Err:9 https://deb.debian.org/debian-security stretch/updates Release                                                 │ 
                      │   server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none                   │ 
                      │ Err:10 https://deb.debian.org/debian stretch-backports Release                                                       │ 
                      │   server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none                   │ 
                      │ Reading package lists...                                                                                             │ 
                      │ E: The repository 'https://deb.nodesource.com/node_12.x stretch Release' does no longer have a Release file.         │ 
                      │ E: The repository 'https://deb.debian.org/debian stretch Release' does no longer have a Release file.                │ 
                      │ E: The repository 'https://deb.debian.org/debian stretch-updates Release' does no longer have a Release file.        │ 
                      │ E: The repository 'https://deb.debian.org/debian-security stretch/updates Release' does no longer have a Release     │ 
                      │ file.                                                                                                                │ 
                      │ E: The repository 'https://deb.debian.org/debian stretch-backports Release' does no longer have a Release file.

Basically know. Pls have a look to https://github.com/MichaIng/DietPi/issues/4794#issuecomment-932751983

apt install ca-certificates
apt update
apt upgrade

Not working. It says its already on the latest version.

Try

apt install --reinstall ca-certificates

Thanks. Reinstalled. Bu also not working. Any known server issues?

it’s not a server issue. More that your system is quite old and outdated. Therefore you have issues with correct SSL certificates.

to bypass the issue for the moment, you could switch to HTTP. For this all source files in /etc/apt/sources.list.d/ and inf file /etc/apt/sources.list. Would recommend to create a backup of these files to be able to switch back to HTTPS once update completed.

Thanks again. Thats true, yes. Can you tell me what I have to put into terminal to get this working?
I have to admit that iam not that familiar with this stuff. :confused: Sitting since hours to get this working, but not chance.

Thanks a lot for your time!

  1. edit the first file
nano /etc/apt/sources.list
  1. replace https with http
  2. save and exit the file
  3. go into the source file directory
cd /etc/apt/sources.list.d/
  1. display all files
ls -la
  1. edit each of the files one by one
nano xxx.list
  1. replace https with http
  2. save and exit the file
  3. if all are done try to update
apt update
apt upgrade
  1. if this was working fine, edit the files once more to add https again
  2. and check if apt is still working
apt update

Our developer has one more idea

https://github.com/MichaIng/DietPi/issues/4795#issuecomment-932942484

Thank you so much. Your first solution worked well.

One VM is now on bullseye and the other one on buster (due to compatibility) . :slight_smile:

Ok try revert back to HTTPS and check if apt update is working still

Yep. Works as it should. Changed it right after the first update. :slight_smile: