为了使我的 debian 打包能够按我想要的方式工作,我修改了 debian/rules 文件(显示行号)
12 %:
13 dh $@
14
15 override_dh_install:
16 dh_install
17 install -m 644 "My Company's Folder" "debian/mainproject/usr/share/MyCompanyFolder"
error:
.....
dpkg-buildpackage: host architecture i386
dpkg-source --before-build mainproject-1.0
fakeroot debian/rules clean
debian/rules:16: *** missing separator. Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
答案1
对于您的特定debian/rules:16: *** missing separator. Stop.
错误,请确保文件中有制表符debian/rules
。空格缩进不起作用。