staging.inyokaproject.org

Unattended Upgrades liefert im Log Fehler

Status: Gelöst | Ubuntu-Version: Ubuntu 24.04 (Noble Numbat)
Antworten |

Scplayer

Anmeldungsdatum:
9. April 2020

Beiträge: Zähle...

Guten Tag Allerseits,

Ich hab das mithilfe dieser externen https://www.benorius.de/automatische-updates-mit-ubuntu-20-04/ und diesen https://wiki.ubuntuusers.de/Aktualisierungen/Konfiguration/ Beitrag von Ubuntuusers eingerichtet.

Allerdings sehe ich im Log das es in Fehler endet und verstehe da nicht warum da ein ausführen von den sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt autoremove -y befehlen Manuell funktioniert.

Screenshots dazu sind im Anhang des Logs und der Manuellen Ausführung der Updates.

Habt Ihr dazu eventuell vom Log her eine Idee ?.

MIr kommt es vor als wenn versucht wird aus den Debian Repository zu ziehen und / oder das nicht mit den Root User ausgeführt wird.

LG Jan

Bearbeitet von schwarzheit:

Forensyntax korrigiert. Link defekt.

Bilder

schwarzheit Team-Icon

Supporter
Avatar von schwarzheit

Anmeldungsdatum:
31. Dezember 2007

Beiträge: 5358

Anhänge bitte immer mit Dateiendung hochladen. → Forum/Syntax (Abschnitt „Bilder“)

Und Text (Terminalausgaben, Fehlermeldungen usw.) gehören nicht in ein Bild sondern in einen Codeblock.

Ubunux

Anmeldungsdatum:
12. Juni 2006

Beiträge: 17505

Bitte beachte Richtig fragen (Abschnitt „Sende-Fragen-in-einfach-zu-lesenden-Formaten“) und Forum/Kurzanleitung (Abschnitt „Datei-als-Anhang-hochladen“)

Reinen Text als Screenshot hier hochladen ist unerwünscht, genau wie Screenshots ohne passende Dateiendung.

Scplayer

(Themenstarter)

Anmeldungsdatum:
9. April 2020

Beiträge: 15

Ok einmal die Code Ausgabe des Logs und der Befehle in RIchtiger Form.

jack@ubuntufirst:~$ zgrep -Ev 'DEBUG|INFO' /var/log/unattended-upgrades/unattended-upgrades.log*
/var/log/unattended-upgrades/unattended-upgrades.log:2025-07-12 12:27:02,579 ERROR Apt returned an error, exiting
/var/log/unattended-upgrades/unattended-upgrades.log:2025-07-12 12:27:02,579 ERROR error message: E:Clearsigned file '/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_noble-backports_InRelease' contains unsigned lines., E:The package lists or status file could not be parsed or opened.
/var/log/unattended-upgrades/unattended-upgrades.log.1.gz:2025-06-15 05:06:57,246 ERROR Apt returned an error, exiting
/var/log/unattended-upgrades/unattended-upgrades.log.1.gz:2025-06-15 05:06:57,246 ERROR error message: E:Clearsigned file '/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_noble-backports_InRelease' contains unsigned lines., E:The package lists or status file could not be parsed or opened.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-17 00:32:26,134 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-17 06:05:41,691 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-18 00:43:59,915 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-18 06:00:31,695 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-19 01:46:20,382 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-19 06:46:31,688 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-20 06:58:51,688 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-20 07:39:15,541 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-21 06:28:54,724 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-21 09:10:19,569 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 06:39:34,725 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 16:29:19,370 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 16:29:19,821 ERROR Apt returned an error, exiting
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 16:29:19,821 ERROR error message: E:Clearsigned file '/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_noble-updates_InRelease' contains unsigned lines., E:The package lists or status file could not be parsed or opened.
jack@ubuntufirst:~$ sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt autoremove -y
[sudo] password for jack: 
Holen:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
OK:2 http://de.archive.ubuntu.com/ubuntu noble InRelease  
Holen:3 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Holen:4 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Holen:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21,6 kB]
Holen:6 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [163 kB]
Holen:7 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
Holen:8 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Holen:9 http://de.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7.060 B]
Holen:10 http://de.archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Es wurden 571 kB in 0 s geholt (1.279 kB/s).
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
jack@ubuntufirst:~$ 

schwarzheit Team-Icon

Supporter
Avatar von schwarzheit

Anmeldungsdatum:
31. Dezember 2007

Beiträge: 5358

In deinem ersten Betrag verlinkst du 2 vollkommen unterschiedliche Anleitungen.

Was genau hast du wie eingerichtet? Und zeig auch gleich die entsprechenden Konfigurationsdateien mit her.

Scplayer

(Themenstarter)

Anmeldungsdatum:
9. April 2020

Beiträge: 15

Hallo,

Ich hab es wie in der 1 ersten Anleitung angegeben eingerichtet dazu im Anhang eine Anleitung was genau ich gemacht habe, da ich die für mich selber aufgesetzt habe.

LG Jan

Unattended-Upgrades_einrichten_in_Ubuntu.odt (215.7 KiB)
Download Unattended-Upgrades_einrichten_in_Ubuntu.odt

schwarzheit Team-Icon

Supporter
Avatar von schwarzheit

Anmeldungsdatum:
31. Dezember 2007

Beiträge: 5358

Mal ganz ehrlich, ich lade hier mit Sicherheit keine .odt und sonstige Dateien runter um an benötigte Infos zu kommen.

Ich bin raus.

Scplayer

(Themenstarter)

Anmeldungsdatum:
9. April 2020

Beiträge: 15

Einmal die Bereiche die ich bzgl. der 50unattended-Upgrades Datei angepasst habe.

// Remove unused automatically installed kernel-related packages
// (kernel images, kernel headers and kernel version locked tools).
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";

// Do automatic removal of newly unused dependencies after the upgrade
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";

// Do automatic removal of unused packages after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";

// Automatically reboot *WITHOUT CONFIRMATION* if
//  the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";

// Automatically reboot even if there are users currently logged in
// when Unattended-Upgrade::Automatic-Reboot is set to true
Unattended-Upgrade::Automatic-Reboot-WithUsers "false";

// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "04:00";

// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";

// Enable logging to syslog. Default is False
Unattended-Upgrade::SyslogEnable "true";

// Specify syslog facility. Default is daemon
Unattended-Upgrade::SyslogFacility "daemon";

Einmal die Bereiche die ich bzgl. der 20auto-updates Datei angepasst habe.

  GNU nano 7.2                                                                       /etc/apt/apt.conf.d/20auto-upgrades                                                                                
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "3";
APT::Periodic::Unattended-Upgrade "1";

Leider ist mein Bildschirm nicht groß genung um die Komplette 50unattended-Upgrades datei zu markieren und wenn ich scrolle wird die Markierung aufgehoben.

Scplayer

(Themenstarter)

Anmeldungsdatum:
9. April 2020

Beiträge: 15

Da der Beitrag hier ja mehrere Fehler aufweist hab ich diesen geschlossen und ein neuen aufgemacht der hoffentlich nach norm ist. Die sache mit der .odt war nur ein Vorschlag.

Scplayer

(Themenstarter)

Anmeldungsdatum:
9. April 2020

Beiträge: 15

Guten Tag Allerseits,

Ich hab das mithilfe dieser externen https://www.benorius.de/automatische-updates-mit-ubuntu-20-04/ Anleitung eingerichtet. am nächsten Tag da mir im Fehler aufgefallen sind.

Allerdings fiel mir am nächsten Tag im Log auf das es in Fehler endet und verstehe da nicht warum da ein ausführen von den sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt autoremove -y befehlen Manuell funktioniert. Anhand dieses Wiki Beitrages https://wiki.ubuntuusers.de/Aktualisierungen/Konfiguration/ von Ubuntuusers hab ich es kontrolliert für mich sieht die Konfig aber in Ordnung aus.

Einmal die Ausgabe des Logs:

jack@ubuntufirst:~$ zgrep -Ev 'DEBUG|INFO' /var/log/unattended-upgrades/unattended-upgrades.log*
/var/log/unattended-upgrades/unattended-upgrades.log:2025-07-12 12:27:02,579 ERROR Apt returned an error, exiting
/var/log/unattended-upgrades/unattended-upgrades.log:2025-07-12 12:27:02,579 ERROR error message: E:Clearsigned file '/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_noble-backports_InRelease' contains unsigned lines., E:The package lists or status file could not be parsed or opened.
/var/log/unattended-upgrades/unattended-upgrades.log.1.gz:2025-06-15 05:06:57,246 ERROR Apt returned an error, exiting
/var/log/unattended-upgrades/unattended-upgrades.log.1.gz:2025-06-15 05:06:57,246 ERROR error message: E:Clearsigned file '/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_noble-backports_InRelease' contains unsigned lines., E:The package lists or status file could not be parsed or opened.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-17 00:32:26,134 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-17 06:05:41,691 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-18 00:43:59,915 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-18 06:00:31,695 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-19 01:46:20,382 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-19 06:46:31,688 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-20 06:58:51,688 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-20 07:39:15,541 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-21 06:28:54,724 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-21 09:10:19,569 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 06:39:34,725 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 16:29:19,370 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 16:29:19,821 ERROR Apt returned an error, exiting
/var/log/unattended-upgrades/unattended-upgrades.log.3.gz:2025-04-22 16:29:19,821 ERROR error message: E:Clearsigned file '/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_noble-updates_InRelease' contains unsigned lines., E:The package lists or status file could not be parsed or opened.

Einmal die Ausgabe der Manuellen Update ausführung.

jack@ubuntufirst:~$ sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt autoremove -y
[sudo] password for jack: 
Holen:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
OK:2 http://de.archive.ubuntu.com/ubuntu noble InRelease  
Holen:3 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Holen:4 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Holen:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21,6 kB]
Holen:6 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [163 kB]
Holen:7 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
Holen:8 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Holen:9 http://de.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7.060 B]
Holen:10 http://de.archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Es wurden 571 kB in 0 s geholt (1.279 kB/s).
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

Einmal die Bereiche die ich bzgl. der 50unattended-Upgrades Datei angepasst habe.

// Remove unused automatically installed kernel-related packages
// (kernel images, kernel headers and kernel version locked tools).
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";

// Do automatic removal of newly unused dependencies after the upgrade
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";

// Do automatic removal of unused packages after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";

// Automatically reboot *WITHOUT CONFIRMATION* if
//  the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";

// Automatically reboot even if there are users currently logged in
// when Unattended-Upgrade::Automatic-Reboot is set to true
Unattended-Upgrade::Automatic-Reboot-WithUsers "false";

// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "04:00";

// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";

// Enable logging to syslog. Default is False
Unattended-Upgrade::SyslogEnable "true";

// Specify syslog facility. Default is daemon
Unattended-Upgrade::SyslogFacility "daemon";

Einmal die Bereiche die ich bzgl. der 20auto-updates Datei angepasst habe.

  GNU nano 7.2                                                                       /etc/apt/apt.conf.d/20auto-upgrades                                                                                
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "3";
APT::Periodic::Unattended-Upgrade "1";

Leider ist mein Bildschirm nicht groß genung um die Komplette 50unattended-Upgrades datei zu markieren und wenn ich scrolle wird die Markierung aufgehoben.

Habt Ihr dazu eventuell vom Log her eine Idee ?.

Mir kommt es vor als wenn versucht wird aus den Debian Repository zu ziehen und / oder das nicht mit den Root User ausgeführt wird.

LG Jan

Moderiert von schwarzheit:

An bestehenden Thread angehängt. Bitte erstelle keine Doppelpostings.

Scplayer

(Themenstarter)

Anmeldungsdatum:
9. April 2020

Beiträge: 15

Moin Allerseits,

Ich könnte dies mithilfe von perplexity AI lösen und dabei auch ein missverständnis meinerseits feststellen.

Die aktuellsten Einträge bzgl. der Log Datei sind vom 12.07.2025 und vorhanden zu diesen Zeitpunkt hatte ich das noch gar nicht eingerichtet. Da unattended Upgrades von haus aus installiert ist auf Ubuntu Systemen und auch die Konfig dateien auskommentiert vorhanden sind lief dieser Dienst schon vor den Konfigurieren von mir.

Denn die 50unattended-Upgrades Datei ist komplett auskommentiert und war es auch bei mir. Aber die 20auto-updates Datei hatte bzgl. der ersten beiden Einträge schon bei einen diesen eine 1 stehen, dadurch wurde der Service / Prozess schon vor denn Konfigurieren von mir gestartet.

Dadurch das aber alles in der 50unattended-Upgrades Datei auskommentiert war gab es keine Aufgaben streng genommen und es lief in ein Fehler.

Thread hab ich daher als gelöst markiert und bedanke mich für eure Hilfe.

LG Jan

Antworten |