由于 sun-java6-jre 包损坏导致的 Apt-Daemon 问题

由于 sun-java6-jre 包损坏导致的 Apt-Daemon 问题

我在安装软件中心的所有内容时遇到了问题。

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 968, in simulate
    trans.unauthenticated = self._simulate_helper(trans)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1092, in _simulate_helper
    return depends, self._cache.required_download, \
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 235, in required_download
    pm.get_archives(fetcher, self._list, self._records)
SystemError: E:I wasn't able to locate a file for the sun-java6-jre package. This might mean you need to manually fix this package.

帮助?

答案1

我认为你应该这样做:

sudo apt-get --configure -a 
sudo apt-get update 
sudo apt-get upgrade 

我不确定,但我认为这可能会有帮助......

答案2

我用了

dpkg --remove --force-remove sun-java6-bin

问题是由于JDK6安装不完整引起的

对于遇到此问题的人,我建议在解决此问题后安装 Synaptic Package Manager,以避免将来出现类似问题。

相关内容