在Debian上运行lsb_release时,可以看到以下输出:
(venv) vm-1671541226:/$ lsb_release -a
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 25, in
import lsb_release
ModuleNotFoundError: No module named 'lsb_release'Debian版本: 10.12 Python版本: 3.9.14
据apt-get说,它就在那里:
(venv) vm-1671541226:/$ sudo apt-get install lsb-release
Reading package lists... Done
Building dependency tree
Reading state information... Done
lsb-release is already the newest version (10.2019051400).
The following packages were automatically installed and are no longer required:
fonts-dejavu libyelp0 python-apt-common python3-apt python3-distro-info yelp-xsl
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 187 not upgraded.然后我尝试重新安装它,但仍然得到相同的错误。
发布于 2023-02-05 19:19:04
可能是在此页中解释的解决方案,云帮助您解决这个问题。
https://serverfault.com/questions/1121912
复制相似问题