使用sudo apt-get upgrade说明时出现错误:
dpkg: error processing libgfortran3:amd64 (--configure):
package libgfortran3:amd64 is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
libgfortran3:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
它似乎不会阻止安装/升级其他应用程序。我相信这个问题是由于在升级应用程序时直接关闭我的 PC 造成的。
我怎样才能解决这个问题?
在看似部分内核升级后,Apt 无法升级或安装新软件包。我试过apt-get purge -f linux-image-extra-3.19.0-22-generic失败并显示非常相似的错误消息。机器在启动到最新内核版本时也会崩溃(grub 中的默认版本),但以前的版本工作正常。
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-image-3.19.0-22-generic linux-image-extra-3.19.0-22-generic
The following packages will be upgraded:
linux-cloud-tools-common
1 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/24.3 kB of archives.
After this operation, 208 MB disk space will be freed.
Do you want …Run Code Online (Sandbox Code Playgroud)