我不断收到更新,但当我下载时,最后它给出错误消息包操作失败。我无法弄清楚到底是什么原因造成的。我没有足够的声誉,否则我会发布屏幕截图!我总共有 18Gigs 的磁盘,其中 10Gigs 是免费的。我尝试了以下几种方法:
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
但它仍然会给出错误信息,令人恼火。
提前致谢。
整个错误信息是:
installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up openjdk-7-jdk (7u55-2.4.7-1ubuntu1~0.12.04.2) ...
No apport report written because MaxReports is reached already
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing openjdk-7-jdk (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up samba-common-bin (2:3.6.3-2ubuntu2.10) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing samba-common-bin (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up ssh-askpass-gnome (1:5.9p1-5ubuntu1.2) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing ssh-askpass-gnome (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
<br>
<b><i>Errors were encountered while processing:<br>
firefox<br>
openjdk-7-jdk<br>
samba-common-bin<br>
ssh-askpass-gnome</i></b><br>
Error in function:
Setting up ssh-askpass-gnome (1:5.9p1-5ubuntu1.2) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing ssh-askpass-gnome (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up samba-common-bin (2:3.6.3-2ubuntu2.10) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing samba-common-bin (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
subprocess installed post-installation script returned error exit status 2
答案1
读取错误信息:
installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
看来你有问题区域设置(人类语言支持)。您已将语言定义为LANG="en_IN.ISO8859-1"
,但dpkg -L locale|grep en_IN
仅显示
/usr/share/i18n/locales/en_IN
因此,尝试以下方法:
bash
export LANG="en_IN"
sudo apt-get update
sudo apt-get upgrade
exit
作为一种解决方法。如果您想要日志,您可以将bash
命令替换为script my.log
至于你最后的结果如何LANG="en_IN.ISO8859-1"
,我感到很困惑。
继续阅读,
Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
subprocess installed post-installation script returned error exit status 2
说,在dpkg
尝试--configure
包时firefox
,子进程失败(status 2
),可能是因为找不到/usr/bin/java/jdk1.7.0_51/bin/javac
。但由于这是第二此日志文件中存在重大错误,可能是由于第一的错误。如果再次发生,在修复LANG
问题之后,再担心它。
No apport report written because MaxReports is reached already
apport
是错误报告系统。您遇到的错误太多(超过MaxReports
),因此apport
没有将此错误发送给 Canonical/Ubuntu 支持(请参阅man -k apport
)。
只需阅读并理解消息即可。解决第一个问题以及任何看似独立的其他问题。涂抹、冲洗、重复。
`