婆罗门
精华
|
战斗力 鹅
|
回帖 0
注册时间 2010-8-5
|
本帖最后由 reekilynn 于 2025-6-18 19:18 编辑
主机系统Windows 11 24H2,WSL版本如下:
WSL 版本: 2.4.11.0
内核版本: 5.15.167.4-1
WSLg 版本: 1.0.65
MSRDC 版本: 1.2.5716
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26100.1-240331-1435.ge-release
Windows 版本: 10.0.26100.4349
之前WSL里的Ubuntu版本是22.04,想升级到24.04,结果执行升级命令之后,目前每次启动Ubuntu都会弹出以下错误信息(不妨碍运行):
- Traceback (most recent call last):
- File "/usr/bin/landscape-sysinfo", line 11, in <module>
- from twisted.internet import reactor
- File "/usr/lib/python3/dist-packages/twisted/internet/reactor.py", line 38, in <module>
- from twisted.internet import default
- File "/usr/lib/python3/dist-packages/twisted/internet/default.py", line 55, in <module>
- install = _getInstallFunction(platform)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/twisted/internet/default.py", line 43, in _getInstallFunction
- from twisted.internet.epollreactor import install
- File "/usr/lib/python3/dist-packages/twisted/internet/epollreactor.py", line 19, in <module>
- from twisted.internet import posixbase
- File "/usr/lib/python3/dist-packages/twisted/internet/posixbase.py", line 19, in <module>
- from twisted.internet import error, tcp, udp
- File "/usr/lib/python3/dist-packages/twisted/internet/tcp.py", line 37, in <module>
- from twisted.internet._newtls import (
- File "/usr/lib/python3/dist-packages/twisted/internet/_newtls.py", line 18, in <module>
- from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
- File "/usr/lib/python3/dist-packages/twisted/protocols/tls.py", line 40, in <module>
- from OpenSSL.SSL import (
- File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
- from OpenSSL import crypto, SSL
- File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 3279, in <module>
- _lib.OpenSSL_add_all_algorithms()
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
- System information as of Tue Jun 17 14:26:11 CST 2025
- Expanded Security Maintenance for Applications is not enabled.
复制代码
执行sudo apt update没有问题,但执行sudo apt dist-upgrade更新软件包会弹出如下错误:
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- You might want to run 'apt --fix-broken install' to correct these.
- The following packages have unmet dependencies:
- ubuntu-standard : Depends: cron but it is not installed
- Recommends: tcpdump but it is not installed
- E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
复制代码
按照错误信息,执行sudo apt --fix-broken install提示以下错误:
- Failed to take /etc/passwd lock: Invalid argument
- dpkg: error processing package systemd (--configure):
- installed systemd package post-installation script subprocess returned error exit status 1
- dpkg: dependency problems prevent configuration of cron-daemon-common:
- cron-daemon-common depends on systemd | systemd-standalone-sysusers | systemd-sysusers; however:
- Package systemd is not configured yet.
- Package systemd-standalone-sysusers is not installed.
- Package systemd-sysusers is not installed.
- Package systemd which provides systemd-sysusers is not configured yet.
- dpkg: error processing package cron-daemon-common (--configure):
- dependency problems - leaving unconfigured
- Errors were encountered while processing:
- systemd
- cron-daemon-common
- No apport report written because the error message indicates its a followup error from a previous failure.
- E: Sub-process /usr/bin/dpkg returned an error code (1)
复制代码
请问这种情况应当如何解决?
|
|