首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在pdebuild中获取文件未找到错误

在pdebuild中获取文件未找到错误
EN

Server Fault用户
提问于 2013-11-08 16:18:29
回答 2查看 349关注 0票数 0

我试图在我的主开发服务器上使用pdebuild构建一个Debian包(运行Debian )。下面是我运行的命令:

代码语言:javascript
复制
pdebuild --pbuilder cowbuilder --buildresult .. \
         --debbuildopts -i -- \
         --basepath /var/cache/pbuilder/base-wheezy.cow \
         --distribution wheezy --configfile /etc/pbuilder/wheezy

这在其他服务器上有效,但在一台服务器上,我得到了以下输出:

代码语言:javascript
复制
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,但是在其他构建服务器上不需要这样的文件(它是由包构建创建的)。

是什么导致了这个“文件找不到”错误?

EN

回答 2

Server Fault用户

发布于 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

票数 0
EN

Server Fault用户

发布于 2013-12-13 13:05:33

事实证明,我的问题是,我试图构建一个AFS目录。我通过对sudo使用不同的pam模块解决了这个问题:

代码语言:javascript
复制
#%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=0
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/551680

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档