Update not working / CA Issues / no Release File Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
henkb
Posts: 7
Joined: Fri May 22, 2020 8:02 pm

Update not working / CA Issues / no Release File

Post by henkb »

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!


Code: Select all

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.
Last edited by henkb on Sun Oct 03, 2021 9:34 am, edited 1 time in total.
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Update not working / CA Issues

Post by Joulinar »

Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
henkb
Posts: 7
Joined: Fri May 22, 2020 8:02 pm

Re: Update not working / CA Issues / no Release File

Post by henkb »

Code: Select all

apt install ca-certificates
apt update
apt upgrade
Not working. It says its already on the latest version.
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Update not working / CA Issues / no Release File

Post by Joulinar »

Try

Code: Select all

apt install --reinstall ca-certificates
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
henkb
Posts: 7
Joined: Fri May 22, 2020 8:02 pm

Re: Update not working / CA Issues / no Release File

Post by henkb »

Thanks. Reinstalled. Bu also not working. Any known server issues?
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Update not working / CA Issues / no Release File

Post by Joulinar »

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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
henkb
Posts: 7
Joined: Fri May 22, 2020 8:02 pm

Re: Update not working / CA Issues / no Release File

Post by henkb »

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. :/ Sitting since hours to get this working, but not chance.

Thanks a lot for your time!
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Update not working / CA Issues / no Release File

Post by Joulinar »

  1. edit the first file

    Code: Select all

    nano /etc/apt/sources.list
  2. replace https with http
  3. save and exit the file
  4. go into the source file directory

    Code: Select all

    cd /etc/apt/sources.list.d/
  5. display all files

    Code: Select all

    ls -la
  6. edit each of the files one by one

    Code: Select all

    nano xxx.list
  7. replace https with http
  8. save and exit the file
  9. if all are done try to update

    Code: Select all

    apt update
    apt upgrade
  10. if this was working fine, edit the files once more to add https again
  11. and check if apt is still working

    Code: Select all

    apt update
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Update not working / CA Issues / no Release File

Post by Joulinar »

Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
henkb
Posts: 7
Joined: Fri May 22, 2020 8:02 pm

Re: Update not working / CA Issues / no Release File

Post by henkb »

Thank you so much. Your first solution worked well.

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