Fehler bei apt-get update

@jim_os : "sudo rm /var/lib/apt/lists/*" -> dort werden die Datenbanken für APT gespeichert.
Wenn du diesen "leers" könnte der Fehler weg sein. Mach aber vorher mal ein Backup von dem Ordner ;-)
und berichte.

die Unterordner (auxfiles und partial sind bei mir leer)
 
Last edited:
  • Like
Reactions: Dart and jim_os
Moin

Danke das Du (bzw. Ihr) mir hier Vorschläge macht wie ich bei mir das apt update Problem ggf. in den Griff bekommen könnte, :) aber im Moment werde ich da keine weiteren Versuche mehr starten, eben weil ich ja eh das Update auf PVE 9 machen will und werde und weil im Moment ja auch alle mir bisher angebotenen PVE 8 und Debian 12 Updates installiert wurden/sind.

Jetzt noch irgendwelche manuellen Änderungen bei PVE 8 durchzuführen und dort dann den Inhalt von Ordnern zu löschen

Proxmox_Debian_Lists.png

macht für mich nicht mehr so wirklich Sinn. Auch weil ich mit meinen eher begrenzten Linux Kenntnissen nicht abschätzen kann ob, was und welche Folgen das dann ggf. für später haben könnte. D.h. ich weder jetzt erst einmal die Finger davon lassen und mich dann später um das PVE 9 Update kümmern. Ob und welche Probleme oder Fehler dann dabei ggf. auftauchen und ob ich dann dabei auch oder wieder noch irgendwelche manuellen Änderungen vornehmen muss, wird man sehen. :)

Trotzdem - wie schon gesagt - Danke und vielleicht wird @Dart das dann bei sich ja mal durchspielen.


Edit: Hier noch einmal FYI die kompl. Meldung die jetzt kommt wenn ich per shell ein apt update eingebe.

Code:
root@pve:~# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Get:2 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Hit:3 http://ftp.de.debian.org/debian bookworm InRelease
Get:4 http://ftp.de.debian.org/debian bookworm-updates InRelease [55.4 kB]
E: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Origin' value from 'Debian' to 'Proxmox'
E: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Label' value from 'Debian' to 'Proxmox Debian Repository'
N: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Version' value from '12-updates' to ''
N: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Suite' value from 'oldstable-updates' to 'stable'
E: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Codename' value from 'bookworm-updates' to 'bookworm'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]
Diese bzw. so eine Meldung hatte ich ja am Sonntag schon und dort dann mit Y bestätigt.

Wenn ich sie jetzt mit N bestätige kommt:
Code:
Fetched 55.4 kB in 4min 57s (186 B/s)                                                  
Reading package lists... Done
W: Conflicting distribution: http://ftp.de.debian.org/debian bookworm InRelease (expected bookworm but got bookworm-updates)
E: Failed to fetch http://download.proxmox.com/debian/pve/dists/bookworm/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.

Wenn ich dann ein apt update erneut ausführe und die Meldung dann mit Y bestätige kommt das:
Code:
root@pve:~# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Get:2 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Hit:3 http://ftp.de.debian.org/debian bookworm InRelease
Hit:4 http://ftp.de.debian.org/debian bookworm-updates InRelease
E: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Origin' value from 'Debian' to 'Proxmox'
E: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Label' value from 'Debian' to 'Proxmox Debian Repository'
N: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Version' value from '12-updates' to ''
N: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Suite' value from 'oldstable-updates' to 'stable'
E: Repository 'http://download.proxmox.com/debian/pve bookworm InRelease' changed its 'Codename' value from 'bookworm-updates' to 'bookworm'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:5 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages [507 kB]
Fetched 507 kB in 3s (187 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Conflicting distribution: http://ftp.de.debian.org/debian bookworm InRelease (expected bookworm but got bookworm-updates)
root@pve:~#

Und weil ich gerade dabei war habe ich jetzt auch noch ein apt dist-upgrade gemacht :D mit dem Ergebnis:
Code:
root@pve:~# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  proxmox-kernel-6.8.12-1-pve-signed proxmox-kernel-6.8.12-2-pve-signed
  proxmox-kernel-6.8.12-4-pve-signed proxmox-kernel-6.8.12-5-pve-signed
  proxmox-kernel-6.8.12-7-pve-signed proxmox-kernel-6.8.12-8-pve-signed
  proxmox-kernel-6.8.12-9-pve-signed proxmox-kernel-6.8.8-3-pve-signed
  proxmox-kernel-6.8.8-4-pve-signed
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  proxmox-kernel-6.8.12-13-pve-signed
The following packages will be upgraded:
  libpve-common-perl libpve-storage-perl proxmox-backup-client proxmox-backup-file-restore
  proxmox-kernel-6.8 proxmox-kernel-helper proxmox-widget-toolkit pve-container pve-docs
  pve-manager
10 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 127 MB of archives.
After this operation, 578 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 libpve-common-perl all 8.3.4 [120 kB]
Get:2 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 proxmox-backup-client amd64 3.4.4-1 [3,498 kB]
Get:3 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 proxmox-backup-file-restore amd64 3.4.4-1 [3,339 kB]
Get:4 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 libpve-storage-perl all 8.3.7 [158 kB]
Get:5 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 proxmox-kernel-6.8.12-13-pve-signed amd64 6.8.12-13 [103 MB]
Get:6 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 proxmox-kernel-6.8 all 6.8.12-13 [11.1 kB]
Get:7 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 proxmox-kernel-helper all 8.1.4 [16.6 kB]
Get:8 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 proxmox-widget-toolkit all 4.3.13 [225 kB]
Get:9 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 pve-container all 5.3.0 [145 kB]
Get:10 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 pve-docs all 8.4.1 [15.7 MB]
Get:11 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 pve-manager all 8.4.10 [586 kB]
Fetched 127 MB in 4s (30.4 MB/s)    
Reading changelogs... Done
(Reading database ... 131932 files and directories currently installed.)
Preparing to unpack .../00-libpve-common-perl_8.3.4_all.deb ...
Unpacking libpve-common-perl (8.3.4) over (8.3.2) ...
Preparing to unpack .../01-proxmox-backup-client_3.4.4-1_amd64.deb ...
Unpacking proxmox-backup-client (3.4.4-1) over (3.4.3-1) ...
Preparing to unpack .../02-proxmox-backup-file-restore_3.4.4-1_amd64.deb ...
Unpacking proxmox-backup-file-restore (3.4.4-1) over (3.4.3-1) ...
Preparing to unpack .../03-libpve-storage-perl_8.3.7_all.deb ...
Unpacking libpve-storage-perl (8.3.7) over (8.3.6) ...
Selecting previously unselected package proxmox-kernel-6.8.12-13-pve-signed.
Preparing to unpack .../04-proxmox-kernel-6.8.12-13-pve-signed_6.8.12-13_amd64.deb ...
Unpacking proxmox-kernel-6.8.12-13-pve-signed (6.8.12-13) ...
Preparing to unpack .../05-proxmox-kernel-6.8_6.8.12-13_all.deb ...
Unpacking proxmox-kernel-6.8 (6.8.12-13) over (6.8.12-12) ...
Preparing to unpack .../06-proxmox-kernel-helper_8.1.4_all.deb ...
Unpacking proxmox-kernel-helper (8.1.4) over (8.1.1) ...
Preparing to unpack .../07-proxmox-widget-toolkit_4.3.13_all.deb ...
Unpacking proxmox-widget-toolkit (4.3.13) over (4.3.12) ...
Preparing to unpack .../08-pve-container_5.3.0_all.deb ...
Unpacking pve-container (5.3.0) over (5.2.7) ...
Preparing to unpack .../09-pve-docs_8.4.1_all.deb ...
Unpacking pve-docs (8.4.1) over (8.4.0) ...
Preparing to unpack .../10-pve-manager_8.4.10_all.deb ...
Unpacking pve-manager (8.4.10) over (8.4.5) ...
Setting up proxmox-backup-file-restore (3.4.4-1) ...
Updating file-restore initramfs...
14319 blocks
Setting up proxmox-widget-toolkit (4.3.13) ...
Setting up proxmox-kernel-6.8.12-13-pve-signed (6.8.12-13) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.12-13-pve /boot/vmlinuz-6.8.12-13-pve
update-initramfs: Generating /boot/initrd.img-6.8.12-13-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 6.8.12-13-pve /boot/vmlinuz-6.8.12-13-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 6.8.12-13-pve /boot/vmlinuz-6.8.12-13-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-systemd-boot 6.8.12-13-pve /boot/vmlinuz-6.8.12-13-pve
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 6.8.12-13-pve /boot/vmlinuz-6.8.12-13-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.12-13-pve
Found initrd image: /boot/initrd.img-6.8.12-13-pve
Found linux image: /boot/vmlinuz-6.8.12-12-pve
Found initrd image: /boot/initrd.img-6.8.12-12-pve
Found linux image: /boot/vmlinuz-6.8.12-11-pve
Found initrd image: /boot/initrd.img-6.8.12-11-pve
Found linux image: /boot/vmlinuz-6.8.12-9-pve
Found initrd image: /boot/initrd.img-6.8.12-9-pve
Found linux image: /boot/vmlinuz-6.8.12-8-pve
Found initrd image: /boot/initrd.img-6.8.12-8-pve
Found linux image: /boot/vmlinuz-6.8.12-7-pve
Found initrd image: /boot/initrd.img-6.8.12-7-pve
Found linux image: /boot/vmlinuz-6.8.12-5-pve
Found initrd image: /boot/initrd.img-6.8.12-5-pve
Found linux image: /boot/vmlinuz-6.8.12-4-pve
Found initrd image: /boot/initrd.img-6.8.12-4-pve
Found linux image: /boot/vmlinuz-6.8.12-2-pve
Found initrd image: /boot/initrd.img-6.8.12-2-pve
Found linux image: /boot/vmlinuz-6.8.12-1-pve
Found initrd image: /boot/initrd.img-6.8.12-1-pve
Found linux image: /boot/vmlinuz-6.8.8-4-pve
Found initrd image: /boot/initrd.img-6.8.8-4-pve
Found linux image: /boot/vmlinuz-6.8.8-3-pve
Found initrd image: /boot/initrd.img-6.8.8-3-pve
Found linux image: /boot/vmlinuz-6.8.4-2-pve
Found initrd image: /boot/initrd.img-6.8.4-2-pve
Found memtest86+x64 image: /boot/memtest86+x64.bin
done
Setting up libpve-common-perl (8.3.4) ...
Setting up pve-docs (8.4.1) ...
Setting up proxmox-kernel-helper (8.1.4) ...
Installing new version of config file /etc/kernel/postinst.d/zz-proxmox-boot ...
Installing new version of config file /etc/kernel/postrm.d/zz-proxmox-boot ...
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
Setting up proxmox-backup-client (3.4.4-1) ...
Setting up libpve-storage-perl (8.3.7) ...
Setting up proxmox-kernel-6.8 (6.8.12-13) ...
Setting up pve-container (5.3.0) ...
Setting up pve-manager (8.4.10) ...
Created symlink /etc/systemd/system/multi-user.target.wants/pve-sdn-commit.service → /lib/systemd/system/pve-sdn-commit.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pve-firewall-commit.service → /lib/systemd/system/pve-firewall-commit.service.
Processing triggers for pve-ha-manager (4.0.7) ...
Processing triggers for initramfs-tools (0.142+deb12u3) ...
update-initramfs: Generating /boot/initrd.img-6.8.12-13-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
Processing triggers for man-db (2.11.2-2) ...
root@pve:~#

Mal sehen was jetzt nach einem Reboot passiert. Auch nach dem apt update und apt dist-upgrade kommt wie gehabt:

Code:
starting apt-get update
Get:1 http://download.proxmox.com/debian/pve bookworm InRelease [2768 B]
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://ftp.de.debian.org/debian bookworm InRelease
Hit:4 http://ftp.de.debian.org/debian bookworm-updates InRelease
Fetched 2768 B in 0s (5760 B/s)
Reading package lists...
W: Conflicting distribution: http://ftp.de.debian.org/debian bookworm InRelease (expected bookworm but got bookworm-updates)
TASK OK

So das war's aber jetzt endgültig mit den div. apt irgendetwas Versuchen und als nächstes steht das Update auf PVE 9 an. :)

VG Jim
 
Last edited:
Okay, bin weiter gekommen.

Bash:
apt-get clean
hat NICHTS gebracht, gleiche Fehlermeldung(en).

Aber nach:
Bash:
rm /var/lib/apt/lists/* -r
ging das Einlesen und aktualisieren (via GUI!) dann wieder fehlerlos durch.
Zuvor hatte ich das Verzeichnis gesichert.

Ein Umbenennen des Verzeichnisses in "lists.bak" hätte wahrscheinlich auch gereicht.
Ich hatte die Sicherung vor dem Update Spasseshalber einfach mal wieder eingespielt - danach kam der gleiche, ursprüngliche Fehler.

Also nun, nach dem Löschen und komplett neu einlesen ist wieder alles tutti.
Ich denke der Consolen-Output diesbzgl. ist nicht von Relevanz und lasse ihn weg.

Der Server läuft jetzt auf 8.4.10 (von 8.4.1)


Vielen Dank an alle!
Insbesondere auch an blu3bird für den richtigen Hinweis.

(Mit dem Upgrade auf die PMX 9 warte ich dann jetzt ersteinmal, ersteinmal schauen wie der Server nach diesem Problemchen läuft)
 
Last edited:
Also nun, nach dem Löschen und komplett neu einlesen ist wieder alles tutti.
Gut zu wissen und danke für den Test. Vielleicht spiele ich das bei mir dann auch noch durch, aber ich denke ich werde dann eher direkt das Update auf PVE 9 machen. :)

VG JIm
 
@jim_os - wenn der PVE mit dem aktuellen Kernel läuft würde ich aber mal die ganzen alten Krempel zuvor mit apt-get autoremove entfernen - gibt auch wieder mehr Platz. Ich meine 13 Kernel gesamt gelesen zu haben - bist ein Sammler.
Viel Glück!
 
  • Like
Reactions: jim_os
Stimmt. :) Ne ich bin kein Sammler, :D aber ich habe schon ewig nicht mehr daran gedacht. Bei meinen Linux Arbeits-PC(s) mache ich regelmäßig ein autoclean und autoremove, aber die Proxmox Kiste vergesse ich immer irgendwie. Die läuft halt still und unauffällig vor sich hin und bekommt nur ab und zu mal Updates per WebGUI. :)

VG Jim
 
  • Like
Reactions: ThoSo
Moin Allerseits,

WIe ich gerade über diesen Thread erfahren habe kann man Beiträge je nach benutzerrang nur für eine gewisse Zeit schließen / auf solved setzen und das ist mir bei diesen nicht mehr möglich da der Button "Eddit Thread" mir nicht angezeigt wird.

Diesen Thread daher bitte auch als geschlossen / solved sehen.

LG Jan