发新话题
打印

错误 Sub-process /usr/bin/dpkg returned an error code (1)

错误 Sub-process /usr/bin/dpkg returned an error code (1)

In my case, I had an issue with polar-bookshelf. So I looked for the files associated with it:

ls -l /var/lib/dpkg/info | grep -i polar-bookshelf
-rw-r--r-- 1 root root 2324811 Aug 14 19:29 polar-bookshelf.list
-rw-r--r-- 1 root root 2822824 Aug 10 04:28 polar-bookshelf.md5sums
-rwxr-xr-x 1 root root     113 Aug 10 04:28 polar-bookshelf.postinst
-rwxr-xr-x 1 root root      84 Aug 10 04:28 polar-bookshelf.postrm
Now all I needed to do was to remove these files:

sudo mv /var/lib/dpkg/info/polar-bookshelf.* /tmp
apt update

then you should be able to install software as usual.

原文:https://itsfoss.com/dpkg-returned-an-error-code-1/

[ 本帖最后由 linda 于 2022-10-9 17:30 编辑 ]

TOP

发新话题