伙计们,美好的一天,我在 lxd 容器中运行景观。容器处于桥接模式。我将 lxdhost 添加到景观中,效果很好,据我所知,它连接正常。但是它没有报告它的包,这使得它对于补丁管理毫无用处,正如你可以想象的那样。所有系统都运行 ubuntu 18.04。如果我手动运行landscape-package-reporter,我会收到以下错误:
sudo landscape-package-reporter
[sudo] password for lxcuser:
2020-01-17 14:38:53,220 ERROR [MainThread] None
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3/dist-packages/landscape/client/package/reporter.py", line 92, in <lambda>
result.addCallback(lambda x: self.request_unknown_hashes())
File "/usr/lib/python3/dist-packages/landscape/client/package/reporter.py", line 498, in request_unknown_hashes
self._facade.ensure_channels_reloaded()
File "/usr/lib/python3/dist-packages/landscape/lib/apt/package/facade.py", line 265, in ensure_channels_reloaded
self.reload_channels()
File "/usr/lib/python3/dist-packages/landscape/lib/apt/package/facade.py", line 253, in reload_channels
version, with_info=False).get_hash()
File "/usr/lib/python3/dist-packages/landscape/lib/apt/package/facade.py", line 402, in get_package_skeleton
return build_skeleton_apt(pkg, with_info=with_info, with_unicode=True)
File "/usr/lib/python3/dist-packages/landscape/lib/apt/package/skeleton.py", line 131, in build_skeleton_apt
version.record, "Provides", DEB_PROVIDES))
File "/usr/lib/python3/dist-packages/apt/package.py", line 690, in record
return Record(self._records.record)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 724: invalid start byte
有趣的是,所有其他容器都正常报告他们的包裹,没有任何问题。
我查看了脚本,但由于我的编程知识非常低,我找不到问题可能是什么。
也许你们中的一个人有一个想法。