Simon,
Thank for your help,

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

root@vm-ssh-190-factory:~# md5sum  /var/lib/dpkg/info/base-passwd.list.orig
e04a73a7f25c1e3746bb815073688930  /var/lib/dpkg/info/base-passwd.list.orig

root@vm-ssh-190-factory:~# dpkg -l |grep base-passwd
ii base-passwd 3.5.46 amd64 Debian base system master password and group files


root@vm-ssh-190-factory:~# apt install --reinstall  base-passwd
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/56.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
dpkg: warning: files list file for package 'base-passwd' missing; assuming package has no files currently installed
(Reading database ... 15991 files and directories currently installed.)
Preparing to unpack .../base-passwd_3.5.46_amd64.deb ...
Unpacking base-passwd (3.5.46) over (3.5.46) ...
Setting up base-passwd (3.5.46) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline

root@vm-ssh-190-factory:~# echo $?
0

root@vm-ssh-190-factory:~# apt-get install --no-install-recommends python-apt -y -q
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libapt-inst2.0 libassuan0 libksba8 libnpth0 pinentry-curses
  python-apt-common
Suggested packages:
dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage scdaemon pinentry-doc python-apt-dbg python-apt-doc
Recommended packages:
  lsb-release iso-codes
The following NEW packages will be installed:
dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libapt-inst2.0 libassuan0 libksba8 libnpth0 pinentry-curses
  python-apt python-apt-common
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7575 kB of archives.
After this operation, 16.8 MB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libassuan0:amd64.
(Reading database ... 16010 files and directories currently installed.)
Preparing to unpack .../00-libassuan0_2.5.2-1_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.2-1) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../01-gpgconf_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpgconf (2.2.12-1+deb10u1) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../02-libksba8_1.3.5-2_amd64.deb ...
Unpacking libksba8:amd64 (1.3.5-2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../03-libnpth0_1.6-1_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-1) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../04-dirmngr_2.2.12-1+deb10u1_amd64.deb ...
Unpacking dirmngr (2.2.12-1+deb10u1) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../05-gnupg-l10n_2.2.12-1+deb10u1_all.deb ...
Unpacking gnupg-l10n (2.2.12-1+deb10u1) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../06-gnupg-utils_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gnupg-utils (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpg.
Preparing to unpack .../07-gpg_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg (2.2.12-1+deb10u1) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../08-pinentry-curses_1.1.0-2_amd64.deb ...
Unpacking pinentry-curses (1.1.0-2) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../09-gpg-agent_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg-agent (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../10-gpg-wks-client_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg-wks-client (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../11-gpg-wks-server_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg-wks-server (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../12-gpgsm_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpgsm (2.2.12-1+deb10u1) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../13-gnupg_2.2.12-1+deb10u1_all.deb ...
Unpacking gnupg (2.2.12-1+deb10u1) ...
Selecting previously unselected package libapt-inst2.0:amd64.
Preparing to unpack .../14-libapt-inst2.0_1.8.2_amd64.deb ...
Unpacking libapt-inst2.0:amd64 (1.8.2) ...
Selecting previously unselected package python-apt-common.
Preparing to unpack .../15-python-apt-common_1.8.4.1_all.deb ...
Unpacking python-apt-common (1.8.4.1) ...
Selecting previously unselected package python-apt.
Preparing to unpack .../16-python-apt_1.8.4.1_amd64.deb ...
Unpacking python-apt (1.8.4.1) ...
Setting up libksba8:amd64 (1.3.5-2) ...
Setting up libnpth0:amd64 (1.6-1) ...
Setting up libassuan0:amd64 (2.5.2-1) ...
Setting up libapt-inst2.0:amd64 (1.8.2) ...
Setting up gnupg-l10n (2.2.12-1+deb10u1) ...
Setting up python-apt-common (1.8.4.1) ...
Setting up gpgconf (2.2.12-1+deb10u1) ...
Setting up gpg (2.2.12-1+deb10u1) ...
Setting up gnupg-utils (2.2.12-1+deb10u1) ...
Setting up pinentry-curses (1.1.0-2) ...
Setting up gpg-agent (2.2.12-1+deb10u1) ...
Setting up gpgsm (2.2.12-1+deb10u1) ...
Setting up dirmngr (2.2.12-1+deb10u1) ...
Setting up gpg-wks-server (2.2.12-1+deb10u1) ...
Setting up gpg-wks-client (2.2.12-1+deb10u1) ...
Setting up gnupg (2.2.12-1+deb10u1) ...
Setting up python-apt (1.8.4.1) ...
Processing triggers for libc-bin (2.28-10) ...
root@vm-ssh-190-factory:~#

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

that's why i don't think this is the root cause of the problem

Could you give more information, on the  nature of this bug, because I
must now make  sure that all my  equipment park which is managed under
Ansible is installed correctly. From  Debian's point of view, there is
no more  bug (good news!),  From my point  of view, I  have to  find a
technical solution that works in 100% of cases ...



Le 2/17/20 à 12:18 PM, Simon Richter a écrit :
Hi,

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).

    Simon


Reply via email to