![update-manager-text 失敗並出現錯誤:AttributeError:“UpdateList”物件沒有屬性“pkgs”](https://rvso.com/image/898927/update-manager-text%20%E5%A4%B1%E6%95%97%E4%B8%A6%E5%87%BA%E7%8F%BE%E9%8C%AF%E8%AA%A4%EF%BC%9AAttributeError%EF%BC%9A%E2%80%9CUpdateList%E2%80%9D%E7%89%A9%E4%BB%B6%E6%B2%92%E6%9C%89%E5%B1%AC%E6%80%A7%E2%80%9Cpkgs%E2%80%9D.png)
運行update-manager-text
結果出現錯誤訊息:
AttributeError: 'UpdateList' object has no attribute 'pkgs'
這是整個控制台輸出:
$ sudo update-manager-text
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building Updates List
Traceback (most recent call last):
File "/usr/bin/update-manager-text", line 70, in <module>
app = UpdateManagerText(data_dir)
File "/usr/lib/python3/dist-packages/UpdateManagerText/UpdateManagerText.py", line 55, in __init__
self.fillstore()
File "/usr/lib/python3/dist-packages/UpdateManagerText/UpdateManagerText.py", line 90, in fillstore
self.list.pkgs, key=operator.attrgetter("importance"),
AttributeError: 'UpdateList' object has no attribute 'pkgs'
這是 Ubuntu 17.10 上的「巧妙」。
有任何想法嗎?
答案1
似乎是個錯誤。我可以在我的 14.04 LTS、16.04 LTS、17.10 和 18.04 LTS 上確認這一點。
這錯誤 1385524歷史悠久 - 自 13.10 起。