安装 nfs-kernel-server 时出错

安装 nfs-kernel-server 时出错

当我尝试安装以下内容时仍然收到此错误:

root@127:/home/gordon# sudo apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libnfsidmap2 librpcsecgss3 nfs-common portmap
The following NEW packages will be installed:
  libnfsidmap2 librpcsecgss3 nfs-common nfs-kernel-server portmap
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/367 kB of archives.
After this operation, 1,491 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package libnfsidmap2.
(Reading database ... 252530 files and directories currently installed.)
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_i386.deb) ...
dpkg: unrecoverable fatal error, aborting:
 fork failed: Cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@127:/home/gordon# 

是软件包的问题还是内存的问题?

答案1

这是内存问题。系统无法为 的解压过程分配内存libnfsidmap2,可能是因为没有多余的内存可用。您需要在系统上安装更多内存或为虚拟机(如果是虚拟机)分配更多内存来解压您正在安装的文件。

相关内容