我运行了一个随意的apt-get update && apt-get upgrade
命令。进程完成(但有错误):You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libgcrypt11 : Breaks: libgcrypt11:i386 (!= 1.5.0-3ubuntu0.3) but 1.5.0-3ubuntu0.4 is installed
libgcrypt11:i386 : Breaks: libgcrypt11 (!= 1.5.0-3ubuntu0.4) but 1.5.0-3ubuntu0.3 is installed
E: Unmet dependencies. Try using -f..
我尝试运行apt-get -f install
,但是也出现了错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libgcrypt11
Suggested packages:
rng-tools
The following packages will be REMOVED:
libxslt1.1:i386
The following packages will be upgraded:
libgcrypt11
1 upgraded, 0 newly installed, 1 to remove and 77 not upgraded.
3 not fully installed or removed.
Need to get 0 B/282 kB of archives.
After this operation, 477 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 1288453 files and directories currently installed.)
Removing libxslt1.1:i386 ...
dpkg: unrecoverable fatal error, aborting:
fork failed: Cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)'.
我尝试运行dpkg --configure -a
,但又出现了另一个陷阱:
dpkg: error processing libgcrypt11 (--configure):
libgcrypt11:amd64 1.5.0-3ubuntu0.3 cannot be configured because libgcrypt11:i386 is in a different version (1.5.0-3ubuntu0.4)
Errors were encountered while processing:
libgcrypt11
所以我被困在更新中。我尝试使用 aptitude 删除 libgcrypt,但遇到了同样的问题。我完全不知道。任何帮助都将不胜感激!
答案1
鉴于您看到“fork failed: Cannot allocate memory”,我猜您已经用完了内存或相关资源。尝试关闭浏览器和其他占用大量内存的应用程序,然后再尝试。重新启动也会有所帮助。