Sources.list broken or something else with key signing?

Continuing the discussion from Yunohost is not updating anymore - Apt-key signature issue?:

:uk:/:us: Message template (english)

My YunoHost server

Hardware: Raspberry Pi (specify version, 3) at home
YunoHost version: 4.3.6.3
I have access to my server : Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no / yes
If yes, please explain:

Description of my issue

Hello Again,

my server is still offline, but reachable via ssh and webadmin over the local network. Updates are not possible. Not via Webadmin or ssh.

I think I broke my /etc/apt/sources.list
Finally I took it from the actual raspian package and replaced bullseye by buster.

deb http://deb.debian.org/debian buster main contrib non-free
deb http://security.debian.org/debian-security buster-security main contrib non$
deb http://deb.debian.org/debian buster-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://security.debian.org/debian-security bullseye-security main cont$
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free

Could anybody show me how it should look like for buster?

:~# sudo apt update
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Ign:2 http://security.debian.org/debian-security buster-security InRelease     
Err:3 http://security.debian.org/debian-security buster-security Release     
  404  Not Found [IP: 2a04:4e42:47::644 80]
Get:4 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]        
Get:5 https://forge.yunohost.org/debian buster InRelease [18.2 kB]             
Err:1 http://deb.debian.org/debian buster InRelease    
  Unknown error executing apt-key
Ign:6 https://forge.yunohost.org/debian/dists/buster stable InRelease
Err:7 https://forge.yunohost.org/debian/dists/buster stable Release
  404  Not Found [IP: 2001:910:1410::1 443]
Err:4 http://deb.debian.org/debian buster-updates InRelease
  Unknown error executing apt-key
Get:8 https://forge.yunohost.org/debian buster/stable armhf Packages [6,164 B]
Reading package lists... Done
E: The repository 'http://security.debian.org/debian-security buster-security 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.
W: GPG error: http://deb.debian.org/debian buster InRelease: Unknown error executing apt-key
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
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 'https://forge.yunohost.org/debian/dists/buster stable 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.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: Unknown error executing apt-key
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
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: Method store has died unexpectedly!
E: Sub-process store received a segmentation fault.
E: Method /usr/lib/apt/methods/store did not start correctly

Error: "500" Internal Server Error

Action: "PUT" /yunohost/api/update/all

Error message:
Unable to update the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://deb.debian.org/debian buster main contrib non-free sources.list:deb http://security.debian.org/debian-security buster-security main contrib non-free sources.list:deb http://deb.debian.org/debian buster-updates main contrib non-free sources.list.d/yunohost.sources:Types: deb deb-src sources.list.d/yunohost.sources:URIs: https://forge.yunohost.org/debian/dists/buster sources.list.d/yunohost.sources:Suites: stable sources.list.d/yunohost.sources:Components: main sources.list.d/yunohost.sources:Signed-By: /usr/share/keyrings/yunohost.gpg sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost.gpg] https://forge.yunohost.org/debian buster stable

While processing the action the server said:
Fetching available upgrades for system packages...
E: The repository 'http://security.debian.org/debian-security buster-security Release' does not have a Release file.
W: GPG error: http://deb.debian.org/debian buster InRelease: Unknown error executing apt-key
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
E: The repository 'https://forge.yunohost.org/debian/dists/buster stable Release' does not have a Release file.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: Unknown error executing apt-key
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
E: Method store has died unexpectedly!
E: Sub-process store received a segmentation fault.
E: Method /usr/lib/apt/methods/store did not start correctly
:~# sudo apt upgrade yunohost
Reading package lists... Done
E: Unable to parse package file /etc/apt/preferences.d/yunohost.pref (1)
:~# sudo nano /etc/apt/preferences.d/yunohost.pref
Package: *
Pin: origin https://forge.yunohost.org/debian/dists/buster/
Pin-Priotity=100


# cat /etc/apt/sources.list
deb http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian buster-updates main
deb http://security.debian.org/debian-security/ buster/updates main
deb http://ftp.debian.org/debian buster-backports main
# cat /etc/apt/preferences.d/yunohost.pref
cat: /etc/apt/preferences.d/yunohost.pref: No such file or directory

Try removing that file?

Thank you very much for your quick reply

I changed the content of sources.list to your example and renamed the yunohost.pref to yunohost.pref.old

still getting:

~# sudo mv /etc/apt/preferences.d/yunohost.pref /etc/apt/preferences.d/yunohost.pref.old
:~# sudo apt update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]                 
Get:3 http://ftp.debian.org/debian buster-backports InRelease [51.4 kB]
Get:4 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]  
Err:1 http://security.debian.org/debian-security buster/updates InRelease      
  Unknown error executing apt-key
Get:5 https://forge.yunohost.org/debian buster InRelease [18.2 kB]
Ign:6 https://forge.yunohost.org/debian/dists/buster stable InRelease
Err:7 https://forge.yunohost.org/debian/dists/buster stable Release
  404  Not Found [IP: 2001:910:1410::1 443]
Err:2 http://deb.debian.org/debian buster InRelease
  Unknown error executing apt-key
Err:3 http://ftp.debian.org/debian buster-backports InRelease
  Unknown error executing apt-key
Err:4 http://deb.debian.org/debian buster-updates InRelease
  Unknown error executing apt-key
Get:8 https://forge.yunohost.org/debian buster/stable armhf Packages [6,164 B]
Reading package lists... Done
W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: Unknown error executing apt-key
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
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 'https://forge.yunohost.org/debian/dists/buster stable 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.
W: GPG error: http://deb.debian.org/debian buster InRelease: Unknown error executing apt-key
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
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.
W: GPG error: http://ftp.debian.org/debian buster-backports InRelease: Unknown error executing apt-key
E: The repository 'http://ftp.debian.org/debian buster-backports InRelease' is not signed.
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.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: Unknown error executing apt-key
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
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: Method store has died unexpectedly!
E: Sub-process store received a segmentation fault.
E: Method /usr/lib/apt/methods/store did not start correctly

Yes apt-key is fucked up … Did you try to manually add apt signing keys in the past … Also where does that /etc/apt/preferences.d/yunohost.pref comes from …

Yes, i tried something with the keys some time ago, but they were already fucked up at that time.
Can I somehow reset the key thing?

I found this post about apt-key

wget -O- https://forge.yunohost.org/yunohost.asc -q | apt-key add -qq - >/dev/null 2>&1
wget -O- https://archive.raspberrypi.org/debian/raspberrypi.gpg.key -q | apt-key add -qq - >/dev/null 2>&1

but no success so far.

when i use the whole line I get no output. And if i am using wget and apt-key seperately the apt-key is not continuing at all…

I do not exactly know, where yunohost.pref is coming from

I deleted the /etc/preferences.d/yunohost.pref - still not working

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.