gpt4 book ai didi

Ubuntu 14.04 Dist-升级 : "TypeError"

转载 作者:行者123 更新时间:2023-12-04 19:14:29 25 4
gpt4 key购买 nike

一天中的好时光!我正在尝试升级 Ubuntu 14.04,但出现以下错误:

ub14:~$ do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [836 B]
Get:2 Upgrade tool [1 265 kB]
Fetched 1 266 kB in 0s (0 B/s)
authenticate 'xenial.tar.gz' against 'xenial.tar.gz.gpg'
extracting 'xenial.tar.gz'

Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-ohuj5xpk/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-ohuj5xpk/DistUpgrade/DistUpgradeMain.py", line 228, in main
from .DistUpgradeController import DistUpgradeController
File "/tmp/ubuntu-release-upgrader-ohuj5xpk/DistUpgrade/DistUpgradeController.py", line 58, in <module>
from .DistUpgradeQuirks import DistUpgradeQuirks
File "/tmp/ubuntu-release-upgrader-ohuj5xpk/DistUpgrade/DistUpgradeQuirks.py", line 36, in <module>
from janitor.plugincore.manager import PluginManager
File "/tmp/ubuntu-release-upgrader-ohuj5xpk/janitor/__init__.py", line 20, in <module>
import pkg_resources
File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/local/lib/python3.4/dist-packages/packaging/requirements.py", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() missing 1 required positional argument: 'name'

所有需要的东西都完成了:
ub14:~$ sudo apt-get update; sudo apt-get upgrade; sudo apt-get dist-upgrade
ub14:~$ sudo apt-get install update-manager-core

<-没关系。

问题的最可能原因:曾经尝试升级 Ubuntu 14.04,但在电池完全放电之前忘记重新启动系统。从此 TypeError: __call__() missing 1 required positional argument: 'name'每次尝试更新时都会出现。从 GUI 更新也是不可能的——它只是在按下“升级”按钮时关闭窗口,仅此而已。可能有人已经解决了相同的问题,并且此信息可能很有用。

有没有办法在 future 进一步解决没有任何副作用的问题(我知道将 MARKER_EXPR() 更改为 MARKER_EXPR("") 的技巧,但是在升级过程中或之后没有关于副作用的信息它)?先感谢您!

最佳答案

我有同样的问题。做sudo pip uninstall pyparsing然后 sudo pip install pyparsing为我解决了。

关于Ubuntu 14.04 Dist-升级 : "TypeError",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43501558/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com