我想在 Ubuntu 18.04 上与 Let's Encrypt 一起安装 Nginx,并且已经安装了此包:
software-properties-common
当我尝试使用该命令时:
sudo add-apt-repository ppa:certbot/certbot
添加 certbot 的存储库时,我收到以下错误消息:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 107, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 122, in __init__
self.sourceslist = SourcesList()
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 273, in __init__
self.matcher = SourceEntryMatcher(matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 457, in __init__
dist = DistInfo(f, base_dir=matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 261, in __init__
component.set_description(_(value))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 17: invalid start byte
我该如何修复这个错误?