当我尝试使用安装新软件包时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
从输出命令和apt-get安装太阳的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
。
我将错误消息写到了robin0800答案。LC_ALL = C是某些命令?
—
xralf 2011年
@xralf请在您的问题而非某人的答案中添加详细信息。
—
Lekensteyn 2011年
LC_ALL=C
在程序之前添加会将环境变量设置LC_ALL
为C
。这将使用英语进行命令(假设您未使用英语系统)。
@xralf,您可以将其放在pastebin.ubuntu.com上
—
Jorge Castro
LC_ALL=C sudo apt-get install [package-name]
(用[package-name]
您要安装的软件包代替)并报告错误消息。