我试图在我的主开发服务器上使用pdebuild构建一个Debian包(运行Debian )。下面是我运行的命令:
pdebuild --pbuilder cowbuilder --buildresult .. \
--debbuildopts -i -- \
--basepath /var/cache/pbuilder/base-wheezy.cow \
--distribution wheezy --configfile /etc/pbuilder/wheezy这在其他服务器上有效,但在一台服务器上,我得到了以下输出:
I: using cowbuilder as pbuilder
dpkg-buildpackage: source package libexample-orange-util-perl
dpkg-buildpackage: source version 0.08
dpkg-buildpackage: source changed by John User <jonuser@example.com>
dpkg-source -i --before-build libexample-orange-util-perl
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
dh_clean
dpkg-source -i -b libexample-orange-util-perl
dpkg-source: info: using source format `3.0 (native)'
dpkg-source: info: building libexample-orange-util-perl in libexample-orange-util-perl_0.08.tar.gz
dpkg-source: info: building libexample-orange-util-perl in libexample-orange-util-perl_0.08.dsc
dpkg-genchanges -S >../libexample-orange-util-perl_0.08_source.changes
dpkg-genchanges: including full source code in upload
dpkg-source -i --after-build libexample-orange-util-perl
dpkg-buildpackage: source only upload: Debian-native package
File not found: ../libexample-orange-util-perl_0.08.dsc没有文件../libexample-orange-util-perl_0.08.dsc,但是在其他构建服务器上不需要这样的文件(它是由包构建创建的)。
是什么导致了这个“文件找不到”错误?
发布于 2013-11-10 04:56:14
我从不使用pdbuild,但我认为这是一个路径错误,因为您的lib示例-橙色-util_0.08.dsc是生成的。
也许,这个链接可以帮助您:http://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html#s-sourcebuild
发布于 2013-12-13 13:05:33
事实证明,我的问题是,我试图构建一个AFS目录。我通过对sudo使用不同的pam模块解决了这个问题:
#%PAM-1.0
# /etc/pam.d/sudo
@include common-auth
@include common-account
# @include common-session-noninteractive
#
# Instead of including the stock common-session-noninteractive we
# use parts of it, overriding minimum_uid for pam_afs_session
# so that sudo will be able to get AFS tokens (helps with cowbuilder)
session optional pam_krb5.so minimum_uid=1000
session required pam_unix.so
session optional pam_afs_session.so minimum_uid=0https://serverfault.com/questions/551680
复制相似问题