dpkg:警告:删除目录/ usr / local时不为空,因此未删除 [英] dpkg: warning: while removing directory /usr/local not empty so not removed
问题描述
我从以下文件夹结构构建并安装了一个debian软件包:
I built and installed a debian package from the following folder structure:
- myprog
- 德班
- 控制权
- 本地
- bin
- myprog.sh
...使用以下命令:
... using the following commands:
dpkg -b myprog / myprog.deb&& dpkg -i myprog.deb
dpkg -b myprog/ myprog.deb && dpkg -i myprog.deb
当我现在输入以下内容删除软件包时:
When i now remove the package by typing:
dpkg -r myprog
dpkg -r myprog
..我收到以下警告:
.. I got the following warning:
dpkg:警告:删除myprog时,目录'/ usr / local'不为空,因此不会删除。
dpkg: warning: while removing myprog, directory '/usr/local' not empty so not removed.
我认为这是每天都会发生的情况,如何避免发出警告?
As I think this is an every day scenario, how can I avoid the warning?
Greets Thorsten!
Greets Thorsten!
我尝试将文件安装到/ bin而不是/ usr / local / bin时删除它。看来,dpkg不会将/ usr / local / ..文件夹视为系统文件夹(?)。
I tried to install the file to /bin instead of /usr/local/bin and got no warning when removing it. Seems so, that the /usr/local/.. folder will not treated as a system folder (?) by dpkg.
推荐答案
是的-程序包永远不要碰
/ usr / local
目录,由Filesystem Hierarchy Standard保留给系统管理员,并且他们的责任范围。That's right -- packages should never touch
/usr/local
directory, it's reserved for system administrators by Filesystem Hierarchy Standard and is their zone of responsibility.这篇关于dpkg:警告:删除目录/ usr / local时不为空,因此未删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- bin
- 德班