当我尝试使用 安装新软件包时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 install 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
.
修复
dpkg
数据库的标准方法是使用以下命令:我从您的错误输出中注意到的是:
dpkg: dependency problems prevent configuration of tvbrowser:
尝试:
这应该满足在 Ubuntu 中安装 .deb 文件时未满足的依赖关系。它可能最终会询问您是否可以下载这些依赖项。
希望这会有所帮助,如果有帮助的话。
您收到的错误解释了缺少哪些包。
在终端中执行以下操作,它将解决依赖问题:
这应该可以立即解决您遇到的任何问题。