首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有名为“_dbus_bindings”的模块

没有名为“_dbus_bindings”的模块
EN

Ask Ubuntu用户
提问于 2019-05-09 08:48:01
回答 2查看 8.2K关注 0票数 6

我无法从GUI或我的ubuntu16.04系统的终端打开“软件和更新”

代码语言:javascript
复制
sudo software-properties-gtk
sudo: unable to resolve host dna-ws: Connection timed out
[sudo] password for localadmin: 
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 37, in <module>
    from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 29, in <module>
    import dbus
  File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 82, in <module>
    import dbus.types as types
  File "/usr/lib/python3/dist-packages/dbus/types.py", line 6, in <module>
    from _dbus_bindings import (
ModuleNotFoundError: No module named '_dbus_bindings'

我也不能使用GUI安装软件

我试过了

代码语言:javascript
复制
sudo apt-get install python-dbus

    sudo: unable to resolve host dna-ws: Connection timed out
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python-dbus is already the newest version (1.2.0-3).
    python-dbus set to manually installed.
    0 to upgrade, 0 to newly install, 0 to remove and 187 not to upgrade.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up ssmtp (2.64-8ubuntu1) ...
    hostname: Temporary failure in name resolution
    dpkg: error processing package ssmtp (--configure):
     subprocess installed post-installation script returned error exit status 1
    E: Sub-process /usr/bin/dpkg returned an error code (1)

我不知道该怎么做才能解决这个问题,我不想对系统造成任何损害。

EN

回答 2

Ask Ubuntu用户

发布于 2019-07-11 14:37:24

似乎包ssmtp还没有完全安装。您可以尝试用sudo apt install --reinstall ssmtp重新安装它,或者如果您不在计算机上运行本地邮件服务,则可以使用sudo apt remove ssmtp删除它。

票数 2
EN

Ask Ubuntu用户

发布于 2021-07-17 00:36:55

另一个解决方案是创建一个符号链接。只需将第一个字符串放在.cpython之前,并将.so附加到其中。

代码语言:javascript
复制
sudo ln -s _dbus_bindings.cpython-36m-x86_64-linux-gnu.so _dbus_bindings.so
sudo ln -s _dbus_glib_bindings.cpython-36m-x86_64-linux-gnu.so _dbus_glib_bindings.so
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1141743

复制
相关文章

相似问题

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