我无法在我的 Kubuntu 14.04 LTS 系统上配置存储库和其他内容。
当我运行 kdesudo software-properties-kde 时,它会要求我输入密码,然后显示以下回溯消息:
Traceback (most recent call last):
File "/usr/bin/software-properties-kde", line 136, in <module>
app = SoftwarePropertiesKDE(datadir=data_dir, options=options, file=afile, attachWinID=attachWinID)
File "/usr/lib/python3/dist-packages/softwareproperties/kde/SoftwarePropertiesKDE.py", line 64, in __init__
SoftwareProperties.__init__(self, options=options, datadir=datadir)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 103, in __init__
self.sourceslist = SourcesList()
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 274, in __init__
self.matcher = SourceEntryMatcher(matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 459, in __init__
dist = DistInfo(f, base_dir=matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 186, in __init__
for line in dist_file:
File "/usr/lib/python3.4/codecs.py", line 313, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae in position 2: invalid start byte
我也无法使用 add-apt-repository 或 software-properties-gtk。我该如何修复此问题?
答案1
我的/usr/share/python-apt/templates/Ubuntu.info
文件已损坏。我只需用新副本替换它,就没问题了。
谢谢大家