症状:
aptツールを使用すると、次のエラーが発生する可能性があります:
Traceback (most recent call last): File "/usr/bin/lsb_release", line 28, inimport lsb_release ImportError: No module named 'lsb_release' Traceback (most recent call last): File "/usr/bin/lsb_release", line 28, in import lsb_release ImportError: No module named 'lsb_release'
解決策
このエラーメッセージの原因として最も可能性が高いのは、使用中の不適切なPythonバージョンにある可能性があります。お使いのシステムには、複数のPythonバージョンがインストールされています。解決策は、update-alternatives
のいずれかを使用することです。 デフォルトのPythonバージョンに変更するか、/usr/bin/lsb_release
を暗黙的に上書きします スクリプトの解釈例:
FROM: #! /usr/bin/python -Es TO: #! /usr/bin/python2.7 -Es
Ubuntu /DebianLinuxでDEBパッケージによってインストールされたすべてのファイルを一覧表示する方法
Debian /UbuntuLinuxシステムにインストールされているすべてまたは特定のパッケージを一覧表示する方法