That also is having problems with missing files and errors indeed.
But that should be.....The Pi OS is fresh installed...verified...booted using a LAN cable not wifi...and I can connect to it via Windows terminal or Putty.
I then can do sudo apt-get update and after that sudo apt-get upgrade -y
Mike@PiNAS:~ $ sudo apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:3 http://archive.raspberrypi.com/debian bookworm InRelease [39.3 kB]
Get:4 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:5 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [523 kB]
Get:6 http://archive.raspberrypi.com/debian bookworm/main armhf Packages [552 kB]
Get:7 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [235 kB]
Get:8 http://deb.debian.org/debian-security bookworm-security/main armhf Packages [220 kB]
Get:9 http://deb.debian.org/debian-security bookworm-security/main Translation-en [141 kB]
Get:10 http://deb.debian.org/debian bookworm-updates/main armhf Packages [8,292 B]
Get:11 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [8,844 B]
Get:12 http://deb.debian.org/debian bookworm-updates/main Translation-en [8,248 B]
Hit:13 http://deb.debian.org/debian bookworm-updates/contrib arm64 Packages
Hit:14 http://deb.debian.org/debian bookworm-updates/contrib Translation-en
Hit:15 http://deb.debian.org/debian bookworm-updates/non-free armhf Packages
Hit:16 http://deb.debian.org/debian bookworm-updates/non-free arm64 Packages
Hit:17 http://deb.debian.org/debian bookworm-updates/non-free Translation-en
Hit:18 http://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Packages
Hit:19 http://deb.debian.org/debian bookworm-updates/non-free-firmware Translation-en
Fetched 1,839 kB in 1s (1,655 kB/s)
Reading package lists... Done
Mike@PiNAS:~ $ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8
The following packages will be upgraded:
initramfs-tools initramfs-tools-core libcamera-ipa libcamera0.3 linux-libc-dev raspberrypi-net-mods
raspberrypi-sys-mods raspi-config raspi-firmware rpi-eeprom rpicam-apps-lite tzdata
12 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 6,992 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm-updates/main arm64 tzdata all 2024b-0+deb12u1 [298 kB]
Get:2 http://archive.raspberrypi.com/debian bookworm/main arm64 raspi-firmware all 1:1.20241126-1 [12.8 MB]
Get:3 http://archive.raspberrypi.com/debian bookworm/main arm64 initramfs-tools all 0.142+rpt3+deb12u1 [17.2 kB]
Get:4 http://archive.raspberrypi.com/debian bookworm/main arm64 initramfs-tools-core all 0.142+rpt3+deb12u1 [53.1 kB]
Get:5 http://archive.raspberrypi.com/debian bookworm/main arm64 libcamera0.3 arm64 0.3.2+rpt20241119-1 [815 kB]
Get:6 http://archive.raspberrypi.com/debian bookworm/main arm64 libcamera-ipa arm64 0.3.2+rpt20241119-1 [1,071 kB]
Get:7 http://archive.raspberrypi.com/debian bookworm/main arm64 linux-libc-dev all 1:6.6.62-1+rpt1 [2,057 kB]
Get:8 http://archive.raspberrypi.com/debian bookworm/main arm64 raspi-config all 20241210 [35.6 kB]
Get:9 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-net-mods all 1.4.3 [2,272 B]
Get:10 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241202 [22.0 kB]
Get:11 http://archive.raspberrypi.com/debian bookworm/main arm64 rpi-eeprom all 26.8-1 [10.7 MB]
Get:12 http://archive.raspberrypi.com/debian bookworm/main arm64 rpicam-apps-lite arm64 1.5.3-1 [490 kB]
Fetched 28.4 MB in 2s (18.4 MB/s)
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
dpkg: warning: files list file for package 'libctf0:arm64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pkg-resources' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'pinentry-curses' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-headers-rpi-v8' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdw1:arm64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxdmcp6:arm64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxcb1:arm64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libhogweed6:arm64' missing; assuming package has no files currently installed