Hi,

Le 2/17/20 à 2:27 PM, Guillem Jover a écrit :
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?

yes, in attached file.

root@srv-firewall-190-factory:~# ls /var/lib/dpkg/info/base-files.* -altr
-rwxr-xr-x 1 root root 3110 Feb 1 17:09 /var/lib/dpkg/info/base-files.postinst -rw-r--r-- 1 root root 1897 Feb 1 17:09 /var/lib/dpkg/info/base-files.md5sums -rw-r--r-- 1 root root 114 Feb 1 17:09 /var/lib/dpkg/info/base-files.conffiles -rw-r--r-- 1 root root 1784 Feb 12 18:26 /var/lib/dpkg/info/base-files.list.orig.20714
-rw-r--r-- 1 root root 1784 Feb 17 13:53 /var/lib/dpkg/info/base-files.list

Please note also that after second installation, result is the same ...

root@srv-firewall-190-factory:~# diff /var/lib/dpkg/info/base-files.list /var/lib/dpkg/info/base-files.list.orig.20714 Binary files /var/lib/dpkg/info/base-files.list and /var/lib/dpkg/info/base-files.list.orig.20714 differ



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.


All FS mount point are ext4 on LVM2 on SSD disc

root@srv-firewall-190-factory:~# mount
/dev/mapper/vg_srv_firewall_190-lv_rootfs on / type ext4 (rw,noatime,nodiratime,discard,commit=600)
none on /dev type tmpfs (rw,relatime,size=492k,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/vg_srv_firewall_190-lv_usr on /usr type ext4 (rw,noatime,nodiratime,discard,commit=600) /dev/mapper/vg_srv_firewall_190-lv_var on /var type ext4 (rw,noatime,nodiratime,discard,commit=600) /dev/mapper/vg_srv_firewall_190-lv_tmp on /tmp type ext4 (rw,noatime,nodiratime,discard,commit=600) /dev/mapper/vg_srv_firewall_190-lv_home on /home type ext4 (rw,noatime,nodiratime,discard,commit=600) /dev/mapper/vg_srv_firewall_190-lv_var_log on /var/log type ext4 (rw,noatime,nodiratime,discard,commit=600) /dev/mapper/vg_srv_firewall_190-lv_var_lib on /var/lib type ext4 (rw,noatime,nodiratime,discard,commit=600) /dev/mapper/vg_srv_firewall_190-lv_var_cache on /var/cache type ext4 (rw,noatime,nodiratime,discard,commit=600) /dev/mapper/vg_srv_firewall_190-lv_var_lib_apt on /var/lib/apt type ext4 (rw,noatime,nodiratime,discard,commit=600) devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=10) devpts on /dev/ptmx type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=10) devpts on /dev/tty1 type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=10) devpts on /dev/tty2 type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=10) devpts on /dev/tty3 type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=10) devpts on /dev/tty4 type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=10)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1209516k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
pstore on /sys/fs/pstore type pstore (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=2808960k)
root@srv-firewall-190-factory:~#

You are indeed right, there are very few packages on this VM
(based on LXC technology)

root@srv-firewall-190-factory:~# dpkg -l |wc -l
222


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.


Sorry, not available, because the job is encapsulated by Ansible
tools,

And you might want to run «dpkg --verify» too.


root@srv-firewall-190-factory:~# dpkg --verify
??5?????? c /etc/dhcp/dhclient.conf
dpkg: error: control file 'md5sums' for package 'libsasl2-modules-db:amd64' is missing final newline

Thanks,
Guillem

Attachment: base-files.list.orig.20714
Description: Binary data

Reply via email to