Hi! On Mon, 2020-02-17 at 13:48:30 +0100, Jean-Marc LACROIX wrote: > Le 2/17/20 à 12:18 PM, Simon Richter a écrit : > > On Mon, Feb 17, 2020 at 10:31:25AM +0100, Jean-Marc LACROIX wrote: > > > dpkg: unrecoverable fatal error, aborting: > > > files list file for package 'base-passwd' is missing final newline > > > E: Sub-process /usr/bin/dpkg returned an error code (2) > > > > That file is generated by dpkg on installation, so it's not the package's > > fault. The "final newline" check is a safety check to see that the file > > name is complete, guarding against write errors. > > > > You need to reinstall the base-passwd package, possibly after deleting > > /var/lib/dpkg/info/base-passwd.list, and I'd also run a file system check > > for good measure, because that state should only happen on write errors > > (although I remember it also sometimes happened when /var was full, but > > IIRC that got fixed).
I'm very doubtful this would be a dpkg problem (but you never know). This looks like "hardware"/emulation (memory, disk, etc) or filesystem related, perhaps due to a damaged fsys due to a system crash or similar. > Please find the test results > > root@vm-ssh-190-factory:~# ls -altr /var/lib/dpkg/info/base-passwd.list > -rw-r--r-- 1 root root 1120 Feb 12 18:33 /var/lib/dpkg/info/base-passwd.list > > root@vm-ssh-190-factory:~# mv /var/lib/dpkg/info/base-passwd.list > /var/lib/dpkg/info/base-passwd.list.orig Could you attach the old base-passwd.list file? > About the /var , my disc organisation is .... > > root@vm-ssh-190-factory:~# df -h > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/vg_vm_ssh_190-lv_rootfs 117M 31M 78M 29% / > none 492K 0 492K 0% /dev > /dev/mapper/vg_vm_ssh_190-lv_usr 685M 471M 165M 75% /usr > /dev/mapper/vg_vm_ssh_190-lv_var 66M 1.3M 60M 3% /var > /dev/mapper/vg_vm_ssh_190-lv_tmp 66M 1.3M 60M 3% /tmp > /dev/mapper/vg_vm_ssh_190-lv_home 27M 779K 24M 4% /home > /dev/mapper/vg_vm_ssh_190-lv_var_log 190M 14M 163M 8% /var/log > /dev/mapper/vg_vm_ssh_190-lv_var_lib 124M 7.5M 108M 7% /var/lib > /dev/mapper/vg_vm_ssh_190-lv_var_cache 461M 226M 207M 53% /var/cache > /dev/mapper/vg_vm_ssh_190-lv_var_lib_apt 618M 263M 311M 46% /var/lib/apt > tmpfs 1.2G 28K 1.2G 1% /run > tmpfs 5.0M 0 5.0M 0% /run/lock > tmpfs 2.7G 0 2.7G 0% /dev/shm What's the filesystem type on /var/lib? Also the used size there seems suspiciously very tiny? Or perhaps you've got very few packages installed I guess. Attaching apt's term.log and history.log for the time when the first base-passwd got upgraded to 3.5.46 would be helpful if that's available. And you might want to run «dpkg --verify» too. Thanks, Guillem