Ubuntu 16.04无法完全升级

2024-05-12 22:42:46 发布

您现在位置:Python中文网/ 问答频道 /正文

无法在Ubuntu 16.04上成功执行apt get upgrade-y,
尝试同时使用apt-get upgrade-yapt-get upgrade-y——修复缺失
面临着升级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--重新安装install python3-

^{pr2}$

Tags: installedimagepackagegetlinuxpackagesapterror