我试图构建一个为SSH提供特定配置文件的deb
包(即/etc/ssh/ssh_config
)。我还希望将我的包依赖于上游的openssh-client
包,以实现在调用apt-get install my-ssh-package
时安装openssh-client和"on-top“安装(如果是我的特定配置文件)。
我使用fpm/fpm-烹饪来构建我的deb包。这是可行的,但是当我使用dpkg进行本地测试时,我会收到这样的错误:
$ dpkg -i pkg/my-ssh-package_0.1.0-1_all.deb
Selecting previously unselected package my-ssh-package.
(Reading database ... 18814 files and directories currently installed.)
Preparing to unpack .../my-ssh-package_0.1.0-1_all.deb ...
Unpacking my-ssh-package (0.1.0-1) ...
dpkg: error processing archive pkg/my-ssh-package_0.1.0-1_all.deb (--install):
trying to overwrite '/etc/ssh/ssh_config', which is also in package openssh-client 1:6.6p1-2ubuntu2.3
Errors were encountered while processing:
pkg/my-ssh-package_0.1.0-1_all.deb
我怎么能强迫我的包覆盖来自上游openssh客户机包的/etc/ssh/ssh_config
?
发布于 2015-11-18 03:31:56
https://stackoverflow.com/questions/33778499
复制