软件包‘libgtkmm-2.4-1v5:amd64’的文件列表文件缺少最后的换行符

软件包‘libgtkmm-2.4-1v5:amd64’的文件列表文件缺少最后的换行符

所以我尝试安装 gparted,但由于硬盘故障,安装中断,现在我收到依赖性错误,我无法重新安装或删除 gparted。

这就是我跑步后的感受sudo dpkg -C

 The following packages are in a mess due to serious problems during
installation.  They must be reinstalled for them (and any packages
that depend on them) to function properly:
 libgtkmm-2.4-1v5:amd64 C++ wrappers for GTK+ (shared libraries)

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 gparted              GNOME partition editor

The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
 gparted              GNOME partition editor
 libgtkmm-2.4-1v5:amd64 C++ wrappers for GTK+ (shared libraries)

运行时cat -A /var/lib/dpkg/info/libgtkmm-2.4-1v5\:amd64.list 它会显示一组奇怪的符号,就像这些 )M-zM-^?M-^?HM-^M^UM-^B^M^H^@M-^IM-iM->^A^@^@^@1M-@M-hG)M-xM-^?M-i^OM-zM-^?M-^?M-hM-- M-xM-^?HM-^M=M-n^C^H^@DM-^IM-~1M-@M-hM-\@M-^?M-^?HM-^M^MM-e^F^H^@HM-^M5S^I

截屏

答案1

我通过以下方式解决了该问题:

  1. 访问/var/lib/dpkg/信息以 root 身份运行。
  2. 移动libgtkmm-2.4-1v5:amd64到另一个文件夹。
  3. 跑步sudo apt install --reinstall libgtkmm-2.4-1v5:amd64
  4. 重新安装分区现在一切正常。

运行sudo dpkg -C现在没有返回任何错误

相关内容