Raspbian无法升级包

时间:2017-06-20 14:39:02

标签: python debian raspbian

几天后,每当我尝试升级软件包sudo apt-get upgrade时,都会出现以下错误:

The following packages will be upgraded:
  locales python-samba

Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 33, in <module>
    from ALChacks import *
  File "/usr/share/apt-listchanges/ALChacks.py", line 25, in <module>
    import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 261
SyntaxError: Non-ASCII character '\xe9' in file /usr/lib/python2.7/locale.py on line 262, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

更多信息显示在https://pastebin.com/RCqFs78t的这些行下方。

如果您查看locale.py文件(https://pastebin.com/HfTUtqWb),您会注意到第263行附近有很多奇怪的字符

我尝试将区域设置设置为en_US.UTF-8无效。任何线索都将非常感激。

0 个答案:

没有答案