diff --git a/doc/fluid/install/compile/compile_CentOS.md b/doc/fluid/install/compile/compile_CentOS.md
index 74b8a05f7ff2232dec6a3879f8e96a58c83b16fa..3c23cfff4d4368ee2e0cd575e7eece4e3887bc18 100644
--- a/doc/fluid/install/compile/compile_CentOS.md
+++ b/doc/fluid/install/compile/compile_CentOS.md
@@ -153,7 +153,7 @@
恭喜,至此您已完成PaddlePaddle的编译安装。您只需要进入Docker容器后运行PaddlePaddle,即可开始使用。更多Docker使用请参见[Docker官方文档](https://docs.docker.com)
-> 注:PaddlePaddle Docker镜像为了减小体积,默认没有安装`vim`,您可以在容器中执行 `apt-get install -y vim` 来安装
+> 注:PaddlePaddle Docker镜像为了减小体积,默认没有安装`vim`,您可以在容器中执行 `apt-get update && apt-get install -y vim` 来安装
### **本机编译**
diff --git a/doc/fluid/install/compile/compile_CentOS_en.md b/doc/fluid/install/compile/compile_CentOS_en.md
index 81220c6ef342ae09c7ba084b285c8cb1756bf218..56814005dce2f71eb59d24fb2ba3cdff6e9c921a 100644
--- a/doc/fluid/install/compile/compile_CentOS_en.md
+++ b/doc/fluid/install/compile/compile_CentOS_en.md
@@ -154,7 +154,7 @@ Please follow the steps below to install:
Congratulations, now that you have successfully installed PaddlePaddle using Docker, you only need to run PaddlePaddle after entering the Docker container. For more Docker usage, please refer to the [official Docker documentation](https://docs.docker.com/).
-> Note: In order to reduce the size, `vim` is not installed in PaddlePaddle Docker image by default. You can edit the code in the container after executing `apt-get install -y vim` in the container.
+> Note: In order to reduce the size, `vim` is not installed in PaddlePaddle Docker image by default. You can edit the code in the container after executing `apt-get update && apt-get install -y vim` in the container.
### **Local compilation**
diff --git a/doc/fluid/install/compile/compile_Ubuntu.md b/doc/fluid/install/compile/compile_Ubuntu.md
index 74954df2a1db1f79cc64643aeaa08c8dc64c8f0e..2b0c0941fdda0d86866ee5706b1fc6a9e89f8ee3 100644
--- a/doc/fluid/install/compile/compile_Ubuntu.md
+++ b/doc/fluid/install/compile/compile_Ubuntu.md
@@ -152,7 +152,7 @@
恭喜,至此您已完成PaddlePaddle的编译安装。您只需要进入Docker容器后运行PaddlePaddle,即可开始使用。更多Docker使用请参见[Docker官方文档](https://docs.docker.com)
-> 注:PaddlePaddle Docker镜像为了减小体积,默认没有安装`vim`,您可以在容器中执行 `apt-get install -y vim` 来安装。
+> 注:PaddlePaddle Docker镜像为了减小体积,默认没有安装`vim`,您可以在容器中执行 `apt-get update && apt-get install -y vim` 来安装。
### **本机编译**
diff --git a/doc/fluid/install/compile/compile_Ubuntu_en.md b/doc/fluid/install/compile/compile_Ubuntu_en.md
index d8104a3af529e12a47d939462300ae25c891fc09..5269a2d157fb9bd686fb46e5e1c9cbe0127ed9d3 100644
--- a/doc/fluid/install/compile/compile_Ubuntu_en.md
+++ b/doc/fluid/install/compile/compile_Ubuntu_en.md
@@ -151,7 +151,7 @@ Please follow the steps below to install:
Congratulations, now you have completed the compilation and installation of PaddlePaddle. You only need to enter the Docker container and run PaddlePaddle to start using. For more Docker usage, please refer to [official docker documentation](https://docs.docker.com)
-> Note: In order to reduce the size, `vim` is not installed in PaddlePaddle Docker image by default. You can edit the code in the container after executing `apt-get install -y vim` in the container.
+> Note: In order to reduce the size, `vim` is not installed in PaddlePaddle Docker image by default. You can edit the code in the container after executing `apt-get update && apt-get install -y vim` in the container.
### ***Local compilation***