[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[tde-users] blocked upgrade over "missing newline" (corrupt text file in /var/lib/dpkg/info/)



# inxi -S
System:
  Host: ab250 Kernel: 6.1.0-38-amd64 arch: x86_64 bits: 64
  Desktop: TDE (Trinity) v: R14.1.4 Distro: Debian GNU/Linux 12 (bookworm)
# apt-get update
Hit:1 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://ftp.debian.org/debian bookworm InRelease
Hit:4 http://tde-mirror.yosemite.net/trinity/deb/trinity-r14.1.x bookworm InRelease
Hit:5 http://www.deb-multimedia.org bookworm InRelease
Reading package lists... Done
# apt-get 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:
  linux-image-6.1.0-17-amd64 linux-image-6.1.0-18-amd64 linux-image-6.1.0-20-amd64
linux-image-6.1.0-22-amd64 linux-image-6.1.0-25-amd64 linux-image-6.1.0-28-amd64
  linux-image-6.1.0-30-amd64
Use 'apt autoremove' to remove them.
The following packages have been kept back:
  linux-image-amd64
The following packages will be upgraded:
  base-files bash busybox ca-certificates cpp-12 debian-archive-keyring
distro-info-data gcc-12-base gir1.2-gdkpixbuf-2.0 imagemagick imagemagick-6-common
imagemagick-6.q16
  initramfs-tools initramfs-tools-core krb5-locales libabsl20220623 libavif15
libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2
libblockdev-swap2
  libblockdev-utils2 libblockdev2 libcap2 libcap2-bin libfile-find-rule-perl
libgcc-s1 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-common libglib2.0-0 libglib2.0-data
libgnutls30 libgomp1
  libgssapi-krb5-2 libgstreamer-plugins-base1.0-0 libicu72 libjxl0.7 libk5crypto3
libkrb5-3 libkrb5support0 libldb2 libmagickcore-6.q16-6 libmagickwand-6.q16-6
libpam-systemd
  libpython3.11 libpython3.11-minimal libpython3.11-stdlib libsmbclient libssl3
libstdc++6 libsystemd-shared libsystemd0 libudev1 libudisks2-0 libvpx7
libwbclient0 libxml2 libxslt1.1
  login openssh-client openssl passwd python3-ldb python3-samba python3.11
python3.11-minimal samba samba-common samba-common-bin samba-libs smbclient sudo
systemd systemd-sysv
  systemd-timesyncd udev udisks2 xserver-common xserver-xorg-core xserver-xorg-legacy
81 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/77.8 MB of archives.
After this operation, 33.8 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Extracting templates from packages: 100%
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libgtk2.0-0:amd64' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
# apt-get remove libgtk2.0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libgtk2.0-bin' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-dev' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-doc' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-common' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil-dev' for regex 'libgtk2.0'
Package 'libgtk2.0-dev' is not installed, so not removed
Package 'libgtk2.0-cil' is not installed, so not removed
Package 'libgtk2.0-bin' is not installed, so not removed
Package 'libgtk2.0-doc' is not installed, so not removed
Package 'libgtk2.0-cil-dev' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libdbus-glib-1-2 linux-image-6.1.0-17-amd64 linux-image-6.1.0-18-amd64
linux-image-6.1.0-20-amd64 linux-image-6.1.0-22-amd64 linux-image-6.1.0-25-amd64
linux-image-6.1.0-28-amd64
  linux-image-6.1.0-30-amd64
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  gtk-qt-engine-trinity kdbusnotification-trinity libgtk2.0-0 libgtk2.0-common
0 upgraded, 0 newly installed, 4 to remove and 82 not upgraded.
After this operation, 26.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libgtk2.0-0:amd64' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
#
apt-get reinstall libgtk2.0-0 failed in same manner. I was unable to locate
libgtk2.0-0:amd64.list in the .deb, so I booted a different Bookworm to copy that
file, dated Nov 2024 1923 bytes. That obstacle file dated Sept 2024 1923 bytes
turns out was obviously corrupt starting at 1025th byte (sector 3, first byte),
switching from gtk* lines to nettle/HOGWEED lines, so I saved the corrupt file,
then copied from the other, and the upgrade was able to proceed. Afterward:
apt-get reinstall libgtk2.0-0 (successful) and the file's timestamp is now current.

The corrupt file was on a / filesystem on EXT4 on:
	Disk model: Patriot M.2 P300 512GB purchased 30 months ago
	<https://www.newegg.com/patriot-512gb-p300/p/N82E16820225228>
e2fsck -f on that filesystem produced no errors .

How should or could I have fixed this using the package management system?
-- 
Evolution as taught in public schools is, like religion,
	based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata


Reply to: