Ubuntu 14.04 Dist-Upgrade:" TypeError"

时间:2017-04-19 16:45:16

标签: ubuntu ubuntu-14.04 upgrade

一天的美好时光!我尝试升级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

&lt; - 好了。

问题的最可能原因:一旦我尝试升级Ubuntu 14.04,但忘记在电池完全放电之前重启系统。从那时起,每次尝试更新时都会出现TypeError: __call__() missing 1 required positional argument: 'name'。从GUI更新也是不可能的 - 只需关闭按下&#34;升级&#34; - 按钮的窗口,就可以了。可能任何人都已经解决了同样的问题,这个信息可能很有用。

有没有办法在没有任何副作用的情况下解决问题(我知道将MARKER_EXPR()更改为MARKER_EXPR("")的技巧,但没有关于副作用的信息在升级过程中或之后)?提前谢谢!

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。执行sudo pip uninstall pyparsing然后sudo pip install pyparsing为我解决了这个问题。