Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with /etc/apt/sources.list.d/your-repo-name.list #5502

Closed
KenMoreira opened this issue May 20, 2022 · 107 comments
Closed

issue with /etc/apt/sources.list.d/your-repo-name.list #5502

KenMoreira opened this issue May 20, 2022 · 107 comments
Labels
Distro upgrade Outside of DietPi scripts eg: user installed/configured software Stretch

Comments

@KenMoreira
Copy link

Details:

  • Date | Fri May 20 02:54:12 BST 2022
  • DietPi version | v7.5.2 (MichaIng/master)
  • Image creator | DietPi Core Team
  • Pre-image | Raspbian Lite
  • Hardware | RPi CM 3+ (armv7l) (ID=3)
  • Kernel version | Linux KensBridge 4.19.73-v7+ #1266 SMP Tue Sep 17 20:52:18 BST 2019 armv7l GNU/Linux
  • Distro | stretch (ID=4,RASPBIAN=1)
  • Command | apt-get -q update
  • Exit code | 100
  • Software title | DietPi-Update

Steps to reproduce:

  1. ...
  2. ...

Expected behaviour:

  • ...

Actual behaviour:

  • ...

Extra details:

  • ...

Additional logs:

E: Type 'Building' is not known on line 1 in source list /etc/apt/sources.list.d/your-repo-name.list
E: The list of sources could not be read.
@Joulinar
Copy link
Collaborator

Is this a 3rd party repository you added manually? Can you share the content?

cat /etc/apt/sources.list.d/your-repo-name.list

@KenMoreira
Copy link
Author

KenMoreira commented May 20, 2022

root@KensBridge:~# cat /etc/apt/sources.list.d/your-repo-name.list
cat: /etc/apt/sources.list.d/your-repo-name.list: No such file or directory
root@KensBridge:~#

so the issue i originally had on its own disappeared and now that file is gone?
so i re ran dietpi-update and this NEW issue appears

screen1

@Joulinar
Copy link
Collaborator

Joulinar commented May 20, 2022

ok your system is quite old and you are running outdated Debian Stretch still. Therefore you have an issue with a PHP repository that we don't use anymore.

You should be able to work around as follow:

apt install --reinstall ca-certificates
apt-key del '95BD4743'
curl -sSfL 'https://packages.sury.org/php/apt.gpg' -o /etc/apt/trusted.gpg.d/dietpi-php.gpg
/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update

Another hint, you could have a look to our Stretch update guide once issues has been fixed
https://dietpi.com/docs/usage/#how-to-upgrade-to-buster

@MichaIng
Copy link
Owner

The upmpdcli repository is faulty as well, and you added it for "buster" while you run "stretch". Check out the instructions here and update the list file and GPG key accordingly.

@KenMoreira
Copy link
Author

screen1

@KenMoreira
Copy link
Author

alot of the commands i try to run from help pages don't work

@MichaIng
Copy link
Owner

MichaIng commented May 21, 2022

Did you follow the link I posted above to update the upmpdcli repo list and key?

If you do not use this software anymore, you can just remove the list file, should be one in /etc/apt/sources.list.d

@Joulinar
Copy link
Collaborator

maybe you can share the available keys as well

apt-key list

@Joulinar Joulinar added the Outside of DietPi scripts eg: user installed/configured software label May 21, 2022
@MichaIng
Copy link
Owner

MichaIng commented May 21, 2022

... ah no actually the repo is right (not sure about the repo key), but the HTTPS certificate is not accepted. I wonder whether this is the OpenSSL issue with the obsolete/expired Let's Encrypt root certificate which required an OpenSSL upgrade at least on Buster as well some time ago, with a patch that wasn't shipped to the Stretch branch anymore.

@KenMoreira
Could you please try to upgrade all other packages manually first, see whether OpenSSL or libSSL are upgraded:

apt upgrade

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:~# apt update
Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Hit:3 https://archive.raspberrypi.org/debian stretch InRelease
Get:4 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7                                                                                                                                                              MB]
Ign:2 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster InReleas                                                                                                                                                             e
Err:5 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Reading package lists... Done
N: Ignoring file 'your-repo-name.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: The repository 'http://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster 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.

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:~# apt-key list
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2012-04-01 [SC]
      A0DA 38D0 D76E 8B5D 6388  7281 9165 938D 90FD DD2E
uid           [ unknown] Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP) <[email protected]>
sub   rsa2048 2012-04-01 [E]

pub   rsa2048 2012-06-17 [SC]
      CF8A 1AF5 02A2 AA2D 763B  AE7E 82B1 2992 7FA3 303E
uid           [ unknown] Raspberry Pi Archive Signing Key
sub   rsa2048 2012-06-17 [E]

pub   rsa4096 2016-02-21 [SC] [expires: 2022-12-06]
      F8E3 3472 5692 2A8A E767  605B 7808 CE96 D38B 9201
uid           [ unknown] Jean-Francois Dockes <[email protected]>
uid           [ unknown] Jean-Francois Dockes <[email protected]>
sub   rsa4096 2016-02-21 [E] [expires: 2022-12-06]

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:~# apt upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-host cron curl gzip libavcodec57 libavfilter6 libavformat57 libavresample3 libavutil55 libbind9-140 libcups2 libcurl3 libcurl3-gnutls libdns-export162 libdns162 libelf1 libexpat1 libfaad2 libflac8 libfribidi0 libgmp10
  libgnutls30 libgssapi-krb5-2 libhogweed4 libicu57 libisc-export160 libisc160 libisccc140 libisccfg140 libk5crypto3 libkrb5-3 libkrb5support0 liblwres141 liblzma5 libnettle6 libnghttp2-14 libopencv-calib3d2.4v5 libopencv-core2.4v5
  libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4-deb0 libopencv-imgproc2.4v5 libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenexr22 libopenjp2-7 libpcap0.8 libpostproc54 libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib libsamplerate0 libsasl2-2 libsasl2-modules-db libssh2-1 libssl-dev libssl1.0.2 libssl1.1 libswresample2 libswscale4 libtag1v5 libtag1v5-vanilla libtiff5 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx4 lighttpd
  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 openssl python2.7 python2.7-minimal rsync tar tzdata xz-utils zlib1g zlib1g-dev
83 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,127 kB/56.4 MB of archives.
After this operation, 87.0 kB of additional disk space will be used.
N: Ignoring file 'your-repo-name.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Do you want to continue? [Y/n] y
Err:1 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf libssl-dev armhf 1.1.0l-1~deb9u6
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:2 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf libssl1.1 armhf 1.1.0l-1~deb9u6
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:3 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf libssl1.0.2 armhf 1.0.2u-1~deb9u7
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:4 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf openssl armhf 1.1.0l-1~deb9u6
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/libssl-dev_1.1.0l-1~deb9u6_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/libssl1.1_1.1.0l-1~deb9u6_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl1.0/libssl1.0.2_1.0.2u-1~deb9u7_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/openssl_1.1.0l-1~deb9u6_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@MichaIng
Copy link
Owner

MichaIng commented May 21, 2022

It is indeed the Let's Encrypt R3, respectively the unintentionally pulled expired certification chain pulled by the unpatched OpenSSL version, still appended by Certbot server-side (for backwards-compatibility reasons I did never understand...).

Let's see how to solve this best. Please try to switch from the Raspbian mirror you use to raspbian.raspberrypi.org:

sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list
apt update
apt upgrade

Then, which the upgraded packages, you should be able to switch back to the mirror, which has the benefit of being HTTPS:

sed -i 's|http://raspbian.raspberrypi.org/raspbian|https://mirrors.switch.ca/raspbian/raspbian|' /etc/apt/sources.list
apt update

There seems to be an obsolete dummy/backup file you may want to remove (check it's content first, whether it is of use for you):

rm /etc/apt/sources.list.d/your-repo-name.list.save.1

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list

has no affect
it just takes me to another
root@ prompt

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:~# sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list
root@KensBridge:~# sed -i 's|http://raspbian.raspberrypi.org/raspbian|https://mirrors.switch.ca/raspbian/raspbian|' /etc/apt/sources.list
root@KensBridge:~#

@Joulinar
Copy link
Collaborator

these commands are there to change configuration files. They will not execute anything. Therefore it is fine to just see the promt. Pls run following afterwards

apt update

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:~# sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://                                                                                                                                                             raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list
root@KensBridge:~# apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:3 https://archive.raspberrypi.org/debian stretch InRelease
Ign:2 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster InReleas                                                                                                                                                             e
Err:4 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates                                                                                                                                                             .crt CRLfile: none
Reading package lists... Done
E: The repository 'http://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster 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.
root@KensBridge:~#

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:~# apt upgrade

Reading package lists... Done

Building dependency tree

Reading state information... Done

Calculating upgrade... Done

The following packages will be upgraded:
  bind9-host cron curl gzip libavcodec57 libavfilter6 libavformat57 libavresample3 libavutil55 libbind9-140 libcups2 libcurl3 libcurl3-gnutls libdns-export162 libdns162 libelf1 libexpat1 libfaad2 libflac8 libfribidi0 libgmp10
  libgnutls30 libgssapi-krb5-2 libhogweed4 libicu57 libisc-export160 libisc160 libisccc140 libisccfg140 libk5crypto3 libkrb5-3 libkrb5support0 liblwres141 liblzma5 libnettle6 libnghttp2-14 libopencv-calib3d2.4v5 libopencv-core2.4v5
  libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4-deb0 libopencv-imgproc2.4v5 libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenexr22 libopenjp2-7 libpcap0.8 libpostproc54 libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib libsamplerate0 libsasl2-2 libsasl2-modules-db libssh2-1 libssl-dev libssl1.0.2 libssl1.1 libswresample2 libswscale4 libtag1v5 libtag1v5-vanilla libtiff5 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx4 lighttpd
  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 openssl python2.7 python2.7-minimal rsync tar tzdata xz-utils zlib1g zlib1g-dev
83 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,127 kB/56.4 MB of archives.
After this operation, 87.0 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf libssl-dev armhf 1.1.0l-1~deb9u6
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:2 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf libssl1.1 armhf 1.1.0l-1~deb9u6
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:3 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf libssl1.0.2 armhf 1.0.2u-1~deb9u7
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:4 https://mirrors.switch.ca/raspbian/raspbian stretch/main armhf openssl armhf 1.1.0l-1~deb9u6
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/libssl-dev_1.1.0l-1~deb9u6_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/libssl1.1_1.1.0l-1~deb9u6_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl1.0/libssl1.0.2_1.0.2u-1~deb9u7_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/openssl_1.1.0l-1~deb9u6_armhf.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:~# sed -i 's|http://raspbian.raspberrypi.org/raspbian|https://mirrors.switch.ca/raspbian/raspbian|' /etc/apt/sources.list
root@KensBridge:~# apt update
Ign:1 https://mirrors.switch.ca/raspbian/raspbian stretch InRelease
Err:3 https://mirrors.switch.ca/raspbian/raspbian stretch Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Hit:4 https://archive.raspberrypi.org/debian stretch InRelease
Ign:2 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster InRelease
Err:5 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Reading package lists... Done
E: The repository 'https://mirrors.switch.ca/raspbian/raspbian stretch 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.
E: The repository 'http://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster 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.

@MichaIng
Copy link
Owner

MichaIng commented May 21, 2022

Please repeat the steps provided above in that exact order: #5502 (comment)

Ignore the error in apt update and run apt upgrade regardless. The second fixes the first.

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge~# sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list

root@KensBridge:~# apt update
Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Ign:1 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster InRelease
Hit:3 https://archive.raspberrypi.org/debian stretch InRelease
Err:4 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Reading package lists... Done
E: The repository 'http://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster 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.
root@KensBridge:~# sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list

root@KensBridge:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done


root@KensBridge:~# sed -i 's|http://raspbian.raspberrypi.org/raspbian|https://mirrors.switch.ca/raspbian/raspbian|' /etc/apt/sources.list

root@KensBridge:~# apt update
Ign:1 https://mirrors.switch.ca/raspbian/raspbian stretch InRelease
Err:3 https://mirrors.switch.ca/raspbian/raspbian stretch Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Hit:4 https://archive.raspberrypi.org/debian stretch InRelease
Ign:2 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster InRelease
Err:5 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Reading package lists... Done
E: The repository 'https://mirrors.switch.ca/raspbian/raspbian stretch 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.
E: The repository 'http://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster 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.

root@KensBridge:/tmp/DietPi-Update# sed -i 's|http://raspbian.raspberrypi.org/raspbian|https://mirrors.switch.ca/raspbian/raspbian|' /etc/apt/sources.list
root@KensBridge:/tmp/DietPi-Update# apt update
Ign:1 https://mirrors.switch.ca/raspbian/raspbian stretch InRelease
Err:3 https://mirrors.switch.ca/raspbian/raspbian stretch Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Ign:2 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster InRelease
Hit:5 https://archive.raspberrypi.org/debian stretch InRelease
Err:4 https://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Reading package lists... Done
E: The repository 'https://mirrors.switch.ca/raspbian/raspbian stretch 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.
E: The repository 'http://www.lesbonscomptes.com/upmpdcli/downloads/raspbian buster 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.
root@KensBridge:/tmp/DietPi-Update# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@KensBridge:/tmp/DietPi-Update#

@MichaIng
Copy link
Owner

So the package upgrades which were available above were applied already?

@KenMoreira
Copy link
Author

I just copy n paste what it says. I don't always understand it

but when i do dietpi-update i still get errors. so i exit

@MichaIng
Copy link
Owner

MichaIng commented May 21, 2022

Okay let's get the DietPi update through first by also disabling the failing 3rd party repository:

sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list
for i in /etc/apt/sources.list.d/*.list; do grep -q 'lesbonscomptes' "$i" && mv "$i"{,.bak}; done
apt update
apt full-upgrade
dietpi-update

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

 APT upgrade                                                                                                          │
           │  - Command: apt-get -qq upgrade                                                                                      │
           │  - Exit code: 100                                                                                                    │
           │  - DietPi version: v7.5.2 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 | DISTRO: 4                                   │
           │  - Image creator: DietPi Core Team                                                                                   │
           │  - Pre-image: Raspbian Lite                                                                                          │
           │  - Error log:                                                                                                        │
           │ E: Failed to fetch                                                                                                   │
           │ https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/libssl-dev_1.1.0l-1~deb9u6_armhf.deb  server         │
           │ certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none                            │
           │ E: Failed to fetch                                                                                                   │
           │ https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl/libssl1.1_1.1.0l-1~deb9u6_armhf.deb  server          │
           │ certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none                            │
           │ E: Failed to fetch                                                                                                   │
           │ https://mirrors.switch.ca/raspbian/raspbian/pool/main/o/openssl1.0/libssl1.0.2_1.0.2u-1~deb9u7_armhf.deb
           

@MichaIng
Copy link
Owner

You did run the first command? Please show:

for i in /etc/apt/sources.list{,.d/*.list}; do echo "$i:"; cat "$i"; done

@KenMoreira
Copy link
Author

KenMoreira commented May 21, 2022

root@KensBridge:
~# sed -i 's|https://mirrors.switch.ca/raspbian/raspbian|http://raspbian.raspberrypi.org/raspbian|' /etc/apt/sources.list

root@KensBridge:
~# for i in /etc/apt/sources.list.d/*.list; do grep -q 'lesbonscomptes' "$i" && mv "$i"{,.bak}; done

root@KensBridge:~#

@KenMoreira
Copy link
Author

Audirvana and Mconnect from my phone seem to play fine.

@KenMoreira
Copy link
Author

although now when selecting my output i have TWO selections for my streamer. it seems one old entry still exists?

@MichaIng
Copy link
Owner

MichaIng commented May 22, 2022

You missed the asterisk's around php: '*php*'. At best copy&paste the commands 😉.
Ah sorry, second output they are there. Let me see.

@KenMoreira
Copy link
Author

(after Hard reset of all components. my hqplayer works again)

@MichaIng
Copy link
Owner

Okay, somehow they are marked as "deinstall", not sure what this means, also PHP8.0 is installed unintentionally. This will do:

G_AGP 'php8.0-*'
mapfile -t packages < <(dpkg --get-selections '*php*' | mawk '{print $1}')
dpkg -r --force-depends "${packages[@]}"
apt-get -y install "${packages[@]}"
unset -v packages

@KenMoreira
Copy link
Author

KenMoreira commented May 22, 2022

root@KensBridge:~# G_AGP 'php8.0-*'
[ INFO ] APT purge for: php8.0-*, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  php8.0-apcu* php8.0-cli* php8.0-common* php8.0-curl* php8.0-fpm* php8.0-gd*
  php8.0-mbstring* php8.0-mysql* php8.0-opcache* php8.0-readline* php8.0-xml*
  php8.0-zip*
0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
                                                               After this operation, 0 B of additional disk space will be used.
                                                                                                                               (Reading(Reading database ... 40913 files and directories currently installed.)
Purging configuration files for php8.0-xml (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-apcu (5.1.20+4.0.11-1+0~20210304.24+debian9~1.gbp1c3d4d) ...
dpkg: warning: while removing php8.0-apcu, directory '/etc/php/8.0/mods-available' not empty so not removed
Purging configuration files for php8.0-mysql (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-mbstring (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-zip (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-gd (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-fpm (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-curl (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-readline (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-cli (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
dpkg: warning: while removing php8.0-cli, directory '/etc/php/8.0' not empty so not removed
Purging configuration files for php8.0-opcache (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Purging configuration files for php8.0-common (8.0.9-1+0~20210730.22+debian9~1.gbp99e7e9) ...
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
[  OK  ] APT purge for: php8.0-*
root@KensBridge:~# apfile -t packages < <(dpkg --get-selections '*php*' | mawk '{print $1}')
-bash: apfile: command not found
root@KensBridge:~# apfile -t packages < <(dpkg --get-selections '*php*' | mawk '{print $1}')
-bash: apfile: command not found
root@KensBridge:~# mapfile -t packages < <(dpkg --get-selections '*php*' | mawk '{print $1}')
root@KensBridge:~# dpkg -r --force-depends "${packages[@]}"
dpkg: warning: ignoring request to remove php-apcu, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php-common, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-cli, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-common, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-curl, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-fpm, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-gd, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-json, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-mbstring, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-mysql, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-opcache, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-readline, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-xml, only the config
 files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove php7.3-zip, only the config
 files of which are on the system; use --purge to remove them too
root@KensBridge:~# apt-get -y install "${packages[@]}"
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libgd3 libxpm4 libxslt1.1 libzip4
Suggested packages:
  libgd-tools php-pear
Recommended packages:
  php-apcu-bc
The following NEW packages will be installed:
  libgd3 libxpm4 libxslt1.1 libzip4 php-apcu php-common php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-json
  php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml php7.3-zip
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,169 kB of archives.
After this operation, 17.6 MB of additional disk space will be used.
Get:1 http://raspbian.freemirror.org/raspbian buster/main armhf php-common all 2:69 [15.0 kB]
Get:2 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-common armhf 7.3.31-1~deb10u1 [527 kB]
Get:3 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-json armhf 7.3.31-1~deb10u1 [16.2 kB]
Get:4 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-opcache armhf 7.3.31-1~deb10u1 [155 kB]
Get:5 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-readline armhf 7.3.31-1~deb10u1 [10.7 kB]
Get:6 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-cli armhf 7.3.31-1~deb10u1 [1,127 kB]
Get:7 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-fpm armhf 7.3.31-1~deb10u1 [1,140 kB]
Get:8 http://raspbian.freemirror.org/raspbian buster/main armhf php-apcu armhf 5.1.17+4.0.11-1 [39.2 kB]
Get:9 http://raspbian.freemirror.org/raspbian buster/main armhf libxpm4 armhf 1:3.5.12-1 [43.6 kB]
Get:10 http://raspbian.freemirror.org/raspbian buster/main armhf libgd3 armhf 2.2.5-5.2 [115 kB]
Get:11 http://raspbian.freemirror.org/raspbian buster/main armhf libxslt1.1 armhf 1.1.32-2.2~deb10u1 [215 kB]
Get:12 http://raspbian.freemirror.org/raspbian buster/main armhf libzip4 armhf 1.5.1-4 [45.4 kB]
Get:13 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-curl armhf 7.3.31-1~deb10u1 [26.8 kB]
Get:14 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-gd armhf 7.3.31-1~deb10u1 [22.6 kB]
Get:15 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-mbstring armhf 7.3.31-1~deb10u1 [472 kB]
Get:16 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-mysql armhf 7.3.31-1~deb10u1 [96.4 kB]
Get:17 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-xml armhf 7.3.31-1~deb10u1 [85.0 kB]
Get:18 http://raspbian.freemirror.org/raspbian buster/main armhf php7.3-zip armhf 7.3.31-1~deb10u1 [17.6 kB]
Fetched 4,169 kB in 6s (694 kB/s)
Selecting previously unselected package php-common.
(Reading database ... 40902 files and directories currently installed.)
Preparing to unpack .../0-php-common_2%3a69_all.deb ...
Unpacking php-common (2:69) ...
Selecting previously unselected package php7.3-common.
Preparing to unpack .../1-php7.3-common_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-common (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-json.
Preparing to unpack .../2-php7.3-json_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-json (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-opcache.
Preparing to unpack .../3-php7.3-opcache_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-opcache (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-readline.
Preparing to unpack .../4-php7.3-readline_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-readline (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-cli.
Preparing to unpack .../5-php7.3-cli_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-cli (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-fpm.
Preparing to unpack .../6-php7.3-fpm_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-fpm (7.3.31-1~deb10u1) ...
Setting up php-common (2:69) ...
Selecting previously unselected package php-apcu.
(Reading database ... 41028 files and directories currently installed.)
Preparing to unpack .../00-php-apcu_5.1.17+4.0.11-1_armhf.deb ...
Unpacking php-apcu (5.1.17+4.0.11-1) ...
Selecting previously unselected package libxpm4:armhf.
Preparing to unpack .../01-libxpm4_1%3a3.5.12-1_armhf.deb ...
Unpacking libxpm4:armhf (1:3.5.12-1) ...
Selecting previously unselected package libgd3:armhf.
Preparing to unpack .../02-libgd3_2.2.5-5.2_armhf.deb ...
Unpacking libgd3:armhf (2.2.5-5.2) ...
Selecting previously unselected package libxslt1.1:armhf.
Preparing to unpack .../03-libxslt1.1_1.1.32-2.2~deb10u1_armhf.deb ...
Unpacking libxslt1.1:armhf (1.1.32-2.2~deb10u1) ...
Selecting previously unselected package libzip4:armhf.
Preparing to unpack .../04-libzip4_1.5.1-4_armhf.deb ...
Unpacking libzip4:armhf (1.5.1-4) ...
Selecting previously unselected package php7.3-curl.
Preparing to unpack .../05-php7.3-curl_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-curl (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-gd.
Preparing to unpack .../06-php7.3-gd_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-gd (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-mbstring.
Preparing to unpack .../07-php7.3-mbstring_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-mbstring (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-mysql.
Preparing to unpack .../08-php7.3-mysql_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-mysql (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-xml.
Preparing to unpack .../09-php7.3-xml_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-xml (7.3.31-1~deb10u1) ...
Selecting previously unselected package php7.3-zip.
Preparing to unpack .../10-php7.3-zip_7.3.31-1~deb10u1_armhf.deb ...
Unpacking php7.3-zip (7.3.31-1~deb10u1) ...
Setting up libxpm4:armhf (1:3.5.12-1) ...
Setting up libzip4:armhf (1.5.1-4) ...
Setting up php7.3-common (7.3.31-1~deb10u1) ...
Setting up libgd3:armhf (2.2.5-5.2) ...
Setting up php7.3-mysql (7.3.31-1~deb10u1) ...
Setting up php7.3-opcache (7.3.31-1~deb10u1) ...
Setting up libxslt1.1:armhf (1.1.32-2.2~deb10u1) ...
Setting up php7.3-zip (7.3.31-1~deb10u1) ...
Setting up php7.3-curl (7.3.31-1~deb10u1) ...
Setting up php7.3-gd (7.3.31-1~deb10u1) ...
Setting up php7.3-mbstring (7.3.31-1~deb10u1) ...
Setting up php7.3-json (7.3.31-1~deb10u1) ...
Setting up php7.3-readline (7.3.31-1~deb10u1) ...
Setting up php7.3-xml (7.3.31-1~deb10u1) ...
Setting up php7.3-cli (7.3.31-1~deb10u1) ...
update-alternatives: using /usr/bin/php7.3 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.3 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.3 to provide /usr/bin/phar.phar (phar.phar) in auto mode
Setting up php7.3-fpm (7.3.31-1~deb10u1) ...
Setting up php-apcu (5.1.17+4.0.11-1) ...
Removing obsolete conffile /etc/php/7.2/mods-available/apcu.ini ...
Obsolete conffile /etc/php/7.0/mods-available/apcu.ini has been modified by you.
Saving as /etc/php/7.0/mods-available/apcu.ini.dpkg-bak ...
Removing obsolete conffile /etc/php/5.6/mods-available/apcu.ini ...
Removing obsolete conffile /etc/php/7.1/mods-available/apcu.ini ...
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1) ...
root@KensBridge:~# unset -v packages
root@KensBridge:~#

@KenMoreira
Copy link
Author

not sure if that means it all worked or not

@MichaIng
Copy link
Owner

Yes it did 🙂.

@KenMoreira
Copy link
Author

I guess its good then!
Now i just gotta figure out how to get DSF/DSD to stream from my phone to my pi using mconnect.
timer stays at zero

but thanks , this was a chor lol

@MichaIng
Copy link
Owner

MichaIng commented May 22, 2022

DietPi is already at latest version now?

/boot/dietpi/func/dietpi-obtain_hw_model
. /boot/dietpi/func/dietpi-globals
G_CONFIG_INJECT 'DEV_GITBRANCH=' 'DEV_GITBRANCH=master' /boot/dietpi.txt
dietpi-update

Then a reboot makes sense:

reboot

@KenMoreira
Copy link
Author

V8. Whatever, and it doesn't show stretch anymore and doesn't ask / update

@MichaIng
Copy link
Owner

Okay, then this is all fine.

@KenMoreira
Copy link
Author

8.4.2

@KenMoreira
Copy link
Author

any idea where i can get help with GMRender not playing DSF/DSD ?

@KenMoreira
Copy link
Author

Can you link me to your 10 - 11 walkthrough ?

@Joulinar
Copy link
Collaborator

https://dietpi.com/blog/?p=811

@KenMoreira
Copy link
Author

KenMoreira commented May 22, 2022

root@KensBridge:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

@MichaIng
Copy link
Owner

That's the Buster version of the gcc library. Simply purge it, the development packages/headers are required for compiling only, not for running the software, and they are reinstalled when required by dietpi-software installs/reinstalls:

G_AGP libc6-dev libgcc-8-dev

@KenMoreira
Copy link
Author

i skipped it with the error n just kept upgrading . ill do that G_AGP libc6-dev libgcc-8-dev then apt upgrade after maybe ?

@MichaIng
Copy link
Owner

Purging the packages (at least libgcc-8-dev) needs to be done before the full upgrade can succeed (hence the upgrade to Bullseye).

@KenMoreira
Copy link
Author

yes i restarted everything n did that first now lol

@KenMoreira
Copy link
Author

root@KensBridge:~# apt list --upgradable
Listing... Done
gcc-8-base/stable 8.4.0-7+rpi1 armhf [upgradable from: 8.3.0-6+rpi1]
N: There is 1 additional version. Please use the '-a' switch to see it

8cc has n update i can't activate. and No hold on it ?

@MichaIng
Copy link
Owner

MichaIng commented May 23, 2022

Otherwise the upgrade to Bullseye went thought? If so, you can remove this package, Bullseye ships gcc-10-base, while gcc-8-base is coming from Buster. I wonder where the update is coming from 🤔. Before confirming the below command with y, assure that it does not list other packages that will be removed together with it (dependants):

apt purge gcc-8-base

@KenMoreira
Copy link
Author

Yes it did thanks

@MichaIng
Copy link
Owner

I'll mark this as closed. Feel free to reopen if required.

@KenMoreira
Copy link
Author

Ive noticed that , I have TWO GM Render, One of which doesn't work. . I find every few songs my streamer locks up and i have to reboot.

@MichaIng
Copy link
Owner

Please open a new issue about this, it has become long thread here already and the original issue is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Distro upgrade Outside of DietPi scripts eg: user installed/configured software Stretch
Projects
None yet
Development

No branches or pull requests

3 participants