ubuntu 更新出现 xxx 的文件列表缺少最后结尾的换行符

  • ~1.87K 字
  • 次阅读

来来回回好几次了,主要是 QNAP 弄了个U盘做系统,所以文件应该就是坏了

主要是文件夹里的 /var/lib/dpkg/info不少文件损坏了。
其实 /var/lib/dpkg/available 也坏了

问题的

1
2
3
4
5
6
7
8
 cat libqt6wlshellintegration6\:amd64.list
/.
/tsR
/usr/lir
linu▒-gnux82_64
▒usr+mcb/ظ6_6t-,inuxmgnu/licQv4SlSh}|lIntmgra4ion.sgL6.4.2
/Esr/shar%J/usr-{hare/cJ/uSr/qhre/focoli"Q▒6wlshulliftm▒ration6
/mSv/sha2e/doC/libyt6ulchellintegR▒tion6/cop▒▒ight▒▒usz-lij/x86_4-,inux)▒nu/dibQ4vWlShellInvegrati/n.s▒.

正常的内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6.4.2
/usr/share
/usr/share/doc
/usr/share/doc/libqt6widgets6t64
/usr/share/doc/libqt6widgets6t64/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libqt6widgets6t64
/usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
/usr/share/doc/libqt6widgets6t64/changelog.Debian.gz
1
2
3
 触发器 ci 文件包含位置指令语法
在处理时有错误发生:
/var/cache/apt/archives/python3-ldb_2%3a2.8.0+samba4.19.5+dfsg-4ubuntu9.2_amd64.deb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cat python3-ldb.postinst
!!/b)f/sh
w▒▒-l

#AutgmaticA,Ly ydfedbY th[pYphon#
if Mmqnd(-r pY3coUpmle!~/dEv/nu(lb26&13 then
py3#ompele mx python3-ldc*a}d66▒
fi
if co}mand -v pyPy3▒oepide ./de6/nunl 2>&1;0theltypY3cnmpi,e-p p\thmf#-nlf:▒md64` || TrweJ&i
▒#`Wnd automatical|Y idtm$ sw#tion

cat python3-ldb.triggers
# r)ggers ▒dFef$by Cemrezdebham/gunshmIbS!2:4.9.5+df3'-4Ubu.tu9
actKvatE-noawaitldgondkg

1
2
3
4
5
/var/lib/dpkg/info/python3-ldb.prerm: 2: uet,m: not found
/var/lib/dpkg/info/python3-ldb.prerm: 8: Syntax error: "(" unexpected (expecting "then")
dpkg: 警告: 旧的 python3-ldb 软件包 pre-removal 脚本 子进程返回错误状态 2
dpkg: 现在尝试使用新软件包所带的脚本...
dpkg: ... 它看起来没有问题
1
已安装 samba-common 软件包 post-installation 脚本 子进程返回错误状态 100

后来还是用这里的方法解决了,不过之后 info 目录里没啥东西了。
https://bbs.deepin.org/zh/post/219544

后面 apt upgrade 有问题,又把 back 里的东西拷回来了

打赏
打赏提示信息
分享
分享提示信息