我无法从GUI或我的ubuntu16.04系统的终端打开“软件和更新”
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安装软件
我试过了
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)我不知道该怎么做才能解决这个问题,我不想对系统造成任何损害。
发布于 2019-07-11 14:37:24
似乎包ssmtp还没有完全安装。您可以尝试用sudo apt install --reinstall ssmtp重新安装它,或者如果您不在计算机上运行本地邮件服务,则可以使用sudo apt remove ssmtp删除它。
发布于 2021-07-17 00:36:55
另一个解决方案是创建一个符号链接。只需将第一个字符串放在.cpython之前,并将.so附加到其中。
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.sohttps://askubuntu.com/questions/1141743
复制相似问题