# CMake Error at cmake\_uninstall.cmake:17 (message): Problem when removing "/usr/local/doc/cmake-3.17/Copyright.txt"

**URL:** https://discourse.cmake.org/t/cmake-error-at-cmake-uninstall-cmake-17-message-problem-when-removing-usr-local-doc-cmake-3-17-copyright-txt/1105
**Category:** Usage
**Tags:** os:linux, gen:makefiles
**Created:** [April 26, 2020, 2:33am UTC](https://discourse.cmake.org/t/cmake-error-at-cmake-uninstall-cmake-17-message-problem-when-removing-usr-local-doc-cmake-3-17-copyright-txt/1105 "2020-04-26T02:33:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![111](https://discourse.cmake.org/user_avatar/discourse.cmake.org/111/32/556_2.png) [@111](https://discourse.cmake.org/u/111)
#### Post date: [April 26, 2020, 2:33am UTC](https://discourse.cmake.org/t/cmake-error-at-cmake-uninstall-cmake-17-message-problem-when-removing-usr-local-doc-cmake-3-17-copyright-txt/1105/1 "2020-04-26T02:33:50Z")

</div>

hello,when i use [sudo make install]to install cmake itself, once i want remove it use[sudo make uninstall] it output a error

* * *

(base) lzw@resplendent-star:~/3d\_lib/cmake-3.17.1$ sudo make uninstall  
Scanning dependencies of target uninstall  
– Uninstalling “/usr/local/doc/cmake-3.17/Copyright.txt”  
CMake Error at cmake\_uninstall.cmake:17 (message):  
Problem when removing “/usr/local/doc/cmake-3.17/Copyright.txt”

CMakeFiles/uninstall.dir/build.make:57: recipe for target ‘CMakeFiles/uninstall’ failed  
make[3]: \*\*\* [CMakeFiles/uninstall] Error 1  
CMakeFiles/Makefile2:931: recipe for target ‘CMakeFiles/uninstall.dir/all’ failed  
make[2]: \*\*\* [CMakeFiles/uninstall.dir/all] Error 2  
CMakeFiles/Makefile2:938: recipe for target ‘CMakeFiles/uninstall.dir/rule’ failed  
make[1]: \*\*\* [CMakeFiles/uninstall.dir/rule] Error 2  
Makefile:548: recipe for target ‘uninstall’ failed  
make: \*\*\* [uninstall] Error 2
