“apt-get upgrade” 失败,显示“/usr/bin/dpkg: 语法错误:意外换行符”

“apt-get upgrade” 失败,显示“/usr/bin/dpkg: 语法错误:意外换行符”

我正在使用 Ubuntu 19.04。问题是当我想升级并运行sudo apt-get upgrade命令时。但它失败了。

它显示:

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
/usr/bin/dpkg: 2: /usr/bin/dpkg: Syntax error: newline unexpected
E: Sub-process /usr/bin/dpkg returned an error code (2)

如果不升级系统,我就无法安装任何软件。

相关内容