无法从 ubuntu 软件中心或 appgrid 升级或下载

无法从 ubuntu 软件中心或 appgrid 升级或下载

我是 Linux 新手。最近我安装了 barry 桌面,这是 blackberry sync 的客户端。重启后,我在桌面面板上发现一个错误通知,错误信息为

ERROR: BROKEN COUNT>0"[the error notification I get on my desktop][1] 

当我使用更新程序进行更新时,出现以下错误消息:

[updater error message][2]
"The package system is broken:
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f"

我也无法从软件中心或 Appgrid 安装任何东西。打开软件中心时出现以下错误消息:

[error message on opening software center][3]

"New software cannot be installed because there is a problem with the software currently installed. Do you want to repair this problem now?".
When I click "repair", the operation fails with another error message as follows:[package operation failed error message][4]

"PACKAGE OPERATION FAILED
The installation or removal of a software package failed
detail:
 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
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 265674 files and directories currently installed.)
Preparing to unpack .../barry-util_0.18.5-1_i386.deb ...
Unpacking barry-util (0.18.5-1) ...
dpkg: error processing archive /var/cache/apt/archives/barry-util_0.18.5-1_i386.deb (--unpack):
 trying to overwrite '/etc/bash_completion.d/bjavaloader', which is also in package linberry 1.1b1a
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/barry-util_0.18.5-1_i386.deb
Error in function: 
dpkg: dependency problems prevent configuration of barrydesktop:
 barrydesktop depends on barry-util; however:
  Package barry-util is not installed.

dpkg: error processing package barrydesktop (--configure):
 dependency problems - leaving unconfigured

当我尝试从 APPGRID 安装时,出现与上述相同的错误。我相信自从我安装了 BARRY DESKTOP(用于黑莓同步的客户端)后,我就开始遇到这个问题了。请帮我解决这个问题。谢谢。

答案1

我遇到了同样的问题,这个解决方案对我有用: http://www.ubuntu-es.org/node/184249#.V1K85kqLRNw

sudo su
mv  /var/lib/dpkg/status  /var/lib/dpkg/status-bad
cp /var/lib/dpkg/status-old  /var/lib/dpkg/status
mv /var/lib/dpkg/available  /var/lib/dpkg/available-bad
cp /var/lib/dpkg/available-old  /var/lib/dpkg/available
rm -rf /var/lib/dpkg/updates/*
rm -rf /var/lib/apt/lists/*
mkdir /var/lib/apt/lists/partial
rm /var/cache/apt/*.bin
apt-get clean
apt-get autoremove
apt-get update
dpkg --configure -a
apt-get install -f

希望它也适合你。

相关内容