当我尝试用 安装新包时apt-get install
,它不起作用。apt-get update
也不起作用。
您知道如何重新安装它才能再次工作吗?
输出自sudo dpkg--configure-a:
dpkg: dependency problems prevent configuration of tvbrowser:
tvbrowser depends on sun-java6-jre | sun-java5-jre; however:
Package sun-java6-jre is not installed.
Package sun-java5-jre is not installed.
dpkg: error processing tvbrowser (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
tvbrowser
输出自sudo apt-get 安装 sun-java6-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jre has no installation candidate
这个 pastebin有 的输出find /etc/apt/ -name '*.list' -ls -exec cat {} \; > repositories.txt
。
答案1
修复dpkg
数据库的标准方法是使用此命令:
sudo dpkg --configure -a
答案2
我从您的错误输出中注意到的是:
dpkg: dependency problems prevent configuration of tvbrowser:
尝试:
sudo apt-get -f install
这应该可以满足您在 Ubuntu 中安装 .deb 文件时未满足的依赖关系。它最终可能会询问您是否可以下载这些依赖项。
希望这会有所帮助,如果有帮助的话。
答案3
您收到的错误解释了缺少哪些包。
在终端中执行以下操作,它将修复依赖性问题:
sudo apt-get install sun-java6-jre
这应该可以立即解决您遇到的任何问题。