![apt-get 在 UML 中 fork 失败(用户模式 Linux)](https://linux22.com/image/6180/apt-get%20%E5%9C%A8%20UML%20%E4%B8%AD%20fork%20%E5%A4%B1%E8%B4%A5%EF%BC%88%E7%94%A8%E6%88%B7%E6%A8%A1%E5%BC%8F%20%E2%80%8B%E2%80%8BLinux%EF%BC%89.png)
我正在运行用户模式 Linux (Linux-3.19.8) 进行开发测试。我希望能够编辑 UML 内的文件。我有一些使用 Vim 的经验,所以我更喜欢它。但不幸的是,当我尝试安装 Vim 时,发生了这种情况:
root@elk:/# apt-get install vim
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libgpm2 vim-runtime
Suggested packages:
gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
libgpm2 vim vim-runtime
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
FATAL -> Failed to fork.
我以 root 身份登录 UML,显然在失败之前发生了一些事情。
我尝试安装其他东西,apt -get remove
工作正常,但apt -get install jed
产生与 Vim 类似的输出:
root@elk:/mnt/tmp# apt-get install jed
Reading package lists...Done
Building dependency tree... Done
The following extra packages will be installed:
jed-common libgpm2 libonig2 libpcre3 libpng12-0 libslang2-modules slsh
Suggested packages:
gpm
The following NEW packages will be installed:
jed jed-common libgpm2 libonig2 libpcre3 libpng12-0 libslang2-modules slsh
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
FATAL -> Failed to fork.
很明显,存在一个问题,该问题并非 Vim 特有的。
可能是什么原因?我可以做些什么来获得 Vim 吗?