首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误ModuleNotFoundError:在尝试运行lsb_release -a时没有名为“lsb_release”的模块

错误ModuleNotFoundError:在尝试运行lsb_release -a时没有名为“lsb_release”的模块
EN

Server Fault用户
提问于 2023-02-03 21:57:56
回答 1查看 1.3K关注 0票数 0

在Debian上运行lsb_release时,可以看到以下输出:

代码语言:javascript
复制
(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说,它就在那里:

代码语言:javascript
复制
(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.

然后我尝试重新安装它,但仍然得到相同的错误。

EN

回答 1

Server Fault用户

发布于 2023-02-05 19:19:04

可能是在此页中解释的解决方案,云帮助您解决这个问题。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1121912

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档