Ubuntu 16.04无法完全升级

时间:2018-04-04 07:28:45

标签: python ubuntu ubuntu-16.04

无法在Ubuntu 16.04上成功进行apt-get upgrade -y,
尝试使用 apt-get upgrade -y apt-get upgrade -y --fix-missing , 面对升级python3的问题, 获得以下警告/错误 -

/home/user# apt-get upgrade -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-hwe-16.04 linux-headers-generic-hwe-16.04 linux-image-generic-hwe-16.04 linux-signed-generic-hwe-16.04
  linux-signed-image-generic-hwe-16.04
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3-pytango (8.1.8-1) ...
  File "/usr/lib/python3/dist-packages/PyTango/tango_gevent.py", line 56
    raise result.error_string, None, result.tb
                             ^
SyntaxError: invalid syntax

dpkg: error processing package python3-pytango (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python3-pytango
E: Sub-process /usr/bin/dpkg returned an error code (1)

在观察时,问题仅面临python问题。 尝试做sudo apt-get --reinstall install python3 -

Setting up python3-pytango (8.1.8-1) ...
  File "/usr/lib/python3/dist-packages/PyTango/tango_gevent.py", line 56
    raise result.error_string, None, result.tb
                             ^
SyntaxError: invalid syntax

dpkg: error processing package python3-pytango (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python3-pytango
E: Sub-process /usr/bin/dpkg returned an error code (1)

0 个答案:

没有答案