python - 无法在 Lubuntu 上安装任何东西

标签 python ubuntu spyder systemd dbus

我正在运行最新版本的 Lubuntu,每次尝试安装时都会出现相同的错误::

    Errors were encountered while processing:
 python3
 python3-cffi-backend
 python3-keyring
 python3-crypto
 python3-idna
 python3-xdg
 python3-keyrings.alt
 python3-six
 python3-dev
 python3-wheel
 python3-pkg-resources
 python3-gi
 python3-asn1crypto
 python3-pip
 python3-setuptools
 python3-lib2to3
 python3-secretstorage
 dh-python
 python3-distutils
 python3-cryptography
 python3-dbus
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮帮我,我明天在我的大学有一个 Python 测试,这真的让我很难过,我需要练习代码。

编辑::我不知道为什么,但这里只有 python 给我一个问题

更新::现在它给了我一个不同的错误:

在这里,我尝试使用以下命令安装 Spyder3:sudo apt-get install spyder3
Setting up systemd (237-3ubuntu10.3) ...
cp: '/etc/resolv.conf' and '/run/systemd/resolve/stub-resolv.conf' are the same file
dpkg: error processing package systemd (--configure):
 installed systemd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

最佳答案

尝试删除/etc/resolv.conf
在删除之前备份文件。

关于python - 无法在 Lubuntu 上安装任何东西,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52495742/

相关文章:

python-3.x - 如何在spyder中添加所有python库

python - Spyder 3.0 不让我运行文件

python - 向我的船指向的方向发射子弹

python 类命名空间和 init 函数

ubuntu - SublimeLinter 无法确定 shell PATH

linux - 命令行连接到无线网络在 ubuntu 10.04 上不起作用

python - Spyder和Python调试: can not set breakpoint

python - 如何找到对python包的反向依赖

python - 使用仅应用程序身份验证时,Twitter API 为 GET api/帮助/语言返回 HTTP 220

ubuntu - 如何为具有自动完成功能的 ubuntu 配置 Rider F#?