安装 Hedgewars 后出现依赖错误

安装 Hedgewars 后出现依赖错误

我正在 Ubuntu 上安装 Hedgewars 游戏,然后发生了一些事情。我不记得了。我只知道我无法删除或安装任何东西。

有一个红色图标,当我单击它时,它显示损坏计数 > 0。当我打开软件中心并单击修复时,出现以下内容:

installArchives() failed: (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 128308 files and directories currently installed.)
Unpacking hedgewars-data (from .../hedgewars-data_0.9.17-1_all.deb) ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:4>: invalid stored block lengths'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/hedgewars-data_0.9.17-1_all.deb (--unpack):
 short read on buffer copy for backend dpkg-deb during `./usr/share/games/hedgewars/Data/Forts/WoodR.png'
Errors were encountered while processing:
 /var/cache/apt/archives/hedgewars-data_0.9.17-1_all.deb
Error in function: 
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: dependency problems prevent configuration of hedgewars:
 hedgewars depends on hedgewars-data (>= 0.9.17); however:
  Package hedgewars-data is not installed.
dpkg: error processing hedgewars (--configure):
 dependency problems - leaving unconfigured

我猜 Hedgewars 游戏出了问题。我还尝试使用终端,因为他们在网上告诉我它不起作用。该怎么办?

答案1

尝试运行:sudo apt-get clean接着然后sudo dpkg --configure -a最后sudo apt-get -f install

相关内容