python - 无法在 Lubuntu 上安装任何东西
问题描述
我正在运行最新版本的 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 - 有没有办法导出或查看在 sagemaker 中创建的分类器,以便我们可以看到模型评估中使用了哪些权重/常数
- java - javafx 选项没有出现在eclipse中
- javascript - Node js如何每2秒运行一次axios.get?
- python - 如何在不保存迭代的最后一个值的情况下替换 Python 嵌套列表中的值
- html - Chrome 跨框架拖放:为什么它可以跨浏览器工作?
- git - 如何单独提交文件重命名及其内容编辑(因此 git 检测到重命名)?
- vb.net - 访问在 vb.net 中使用 OleDbDataReader 获取最后一个 ID
- specflow - 是否可以以编程方式执行 SpecFlow 测试运行?
- c++ - 更新 MySQL 连接器后隐式转换停止工作
- sap-cloud-sdk - 使用 SAP Cloud SDK 与基于 VDM Generator 的自定义后端服务 (oData) 集成