更新天气指示器时出现问题

更新天气指示器时出现问题

我无法使用更新管理器更新天气指示器。这是终端日志:

installArchives() failed: perl: warning: Setting locale failed. perl:
warning: Please check that your locale settings:    LANGUAGE = (unset),
    LC_ALL = (unset),   LANG = "sr_RS.utf_8_latin"
    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 =
"sr_RS.utf_8_latin"
    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 =
"sr_RS.utf_8_latin"
    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 =
"sr_RS.utf_8_latin"
    are supported and installed on your system. perl: warning: Falling back to the andard 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 indicator-weather (11.11.28-0ubuntu1.1) ... Installing
indicator-specific icons... Installing indicator dconf schema... cp:
cannot stat
`/usr/share/indicator-weather/indicator-weather.gschema.xml': No such
file or directory dpkg: error processing indicator-weather
(--configure):  subprocess installed post-installation script returned
error exit status 1 Errors were encountered while processing: 
indicator-weather Error in function:  SystemError: E:Sub-process
/usr/bin/dpkg returned an error code (1) Setting up indicator-weather
(11.11.28-0ubuntu1.1) ... Installing indicator-specific icons...
Installing indicator dconf schema... cp: cannot stat
`**/usr/share/indicator-weather/indicator-weather.gschema.xml**': No such
file or directory dpkg: error processing indicator-weather
(--configure):  subprocess installed post-installation script returned
error exit status 1

我加粗的文件确实不存在。我该如何解决这个问题?

答案1

indicator-weather最近有人遇到了类似的问题Ubuntu 论坛并且他们提交的日志几乎与你的相同。该论坛上的简单建议是尝试使用

sudo apt-get -f install

如果不起作用,删除indicator-weather并清除其配置文件

sudo apt-get purge indicator-weather

然后只需运行sudo apt-get update并重新安装即可。日志中没有其他错误代码表明需要进行更复杂的修复,并且配置文件的清除应该可以解决问题,就像在其他论坛上一样。

相关内容