我刚刚从ubuntu 16.04系统中删除了一个软件包。删除软件包后,终端显示如下警告:
Removing gitlab-ce (8.10.4-ce.0) ...
Purging configuration files for gitlab-ce (8.10.4-ce.0)...
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/sv' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/etc' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/service' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/cookbooks' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/ssl/certs' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/service/gitlab-rails/public' not empty so not emoved
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/service/gitlab-rails/config/initializers' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/service/gitlab-shell' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/init' not empty so not removed
它说该/opt/gitlab/
目录不为空,因此它无法将其从系统中删除。
是否应该手动删除这些目录?
2
您可以尝试重命名它,看看是否有任何不好的事情发生。
—
edwinksl
您安装和删除了哪个gitlab软件包?
—
安瓦尔
如您所提供的图像(第二行)所示,它是gitlab-ce(社区版)。
—
vivek
对于这个问题的生命和可搜索性而言,这是一件很小的事情,但很重要:请不要发布容易被剪切并粘贴为代码的文本截图到问题本身。可以搜索实际的文本并将其编入索引,这使有类似问题的人更容易找到此问题和相关答案。屏幕截图就是屏幕截图:这只是一张不可搜索的图片。
—
JakeGould