'/var/lib/dpkg/tmp.ci/md5sums':是一个目录

'/var/lib/dpkg/tmp.ci/md5sums':是一个目录

尝试更新 Ubuntu 20.04。
我尝试了以下解决方案发行版升级至 20.04LTS 后无法升级 rsync

我尝试# sudo apt autoclean并收到了包裹警告:
dpkg: warning: files list file for package 'linux-hwe-5.8-headers-5.8.0-49' missing; assuming package has no files currently installed我认为这是正常的autoclean

正确来说,我收到以下错误。

# sudo apt upgrade
...
dpkg: warning: files list file for package 'linux-modules-5.4.0-67-generic' missing; assuming package has no files currently installed<br>
(Reading database ... 605012 files and directories currently installed.)
Preparing to unpack .../libwebkit2gtk-4.0-37_2.34.4-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libwebkit2gtk-4.0-37:amd64 (2.34.4-0ubuntu0.20.04.1) over (2.34.1-0ubuntu0.20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.34.4-0ubuntu0.20.04.1_amd64.deb (--unpack):
unable to install (supposed) new info file '/var/lib/dpkg/tmp.ci/md5sums': Is a directory
Errors were encountered while processing:
 /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.34.4-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

相同结果sudo apt-get install --reinstall rsync

 sudo apt-get install --reinstall rsync
...
Suggested packages:
  gstreamer1.0-libav
The following packages will be upgraded:
  libwebkit2gtk-4.0-37
1 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
4 not fully installed or removed.
...
dpkg: warning: files list file for package 'linux-modules-5.4.0-72-generic' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-modules-5.4.0-67-generic' missing; assuming package has no files currently installed
(Reading database ... 676780 files and directories currently installed.)
Preparing to unpack .../libwebkit2gtk-4.0-37_2.34.6-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libwebkit2gtk-4.0-37:amd64 (2.34.6-0ubuntu0.20.04.1) over (2.34.1-0ubuntu0.20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.34.6-0ubuntu0.20.04.1_amd64.deb (--unpack):
 unable to install (supposed) new info file '/var/lib/dpkg/tmp.ci/md5sums': Is a directory
Errors were encountered while processing:
 /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.34.6-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我也尝试过单独安装libwebkit2gtk,但结果相同。

# sudo apt-get install libwebkit2gtk-4.0-37
...
 '/var/lib/dpkg/tmp.ci/md5sums': Is a directory
...
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我终于可以解决这个问题了。

问题出在一个包裹上,就我的情况来说“libwebkit2gtk-4.0-37:amd64“。

我可以移动包裹清单(。列表) 和校验和 (.md5校验) 文件并成功更新 Ubuntu。

1) sudo mv /var/lib/dpkg/info/libwebkit2gtk-4.0-37\:amd64.* ~/

一般来说,你应该能够sudo mv /var/lib/dpkg/info/<package-name>.* ~/

然后简单地运行

2)

sudo apt update
sudo apt upgrade

相关内容