刚刚开始使用dh-virtualenv并且一直在https://nylas.com/blog/packaging-deploying-python/
上学习本教程我有一个简单的2文件测试应用程序,我试图在我的Windows框上运行的流浪汉Debian Jessie VM上构建。当我运行dpkg-buildpackage -us -uc时,我在最后收到错误 - 无法重命名文件 - 文本文件正忙:
root@jessie:/vagrant/updatetest3#
root@jessie:/vagrant/updatetest3#
root@jessie:/vagrant/updatetest3# uname -a
Linux jessie 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux
root@jessie:**/vagrant/updatetest3# sudo dpkg-buildpackage -us -uc**
dpkg-buildpackage: source package updatetest3
dpkg-buildpackage: source version 1.3
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by bill <bill@bill.com>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build updatetest3
debian/rules clean
dh clean --with python-virtualenv
dh_testdir
dh_auto_clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
dh_clean
dpkg-source -b updatetest3
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'updatetest3' is not <sourcepackage>-<upstreamversion> 'updatetest3-1.3'
dpkg-source: info: building updatetest3 in updatetest3_1.3.tar.gz
dpkg-source: **error: unable to rename `/vagrant/updatetest3_1.3.tar.gz.new.WqKLSO' (newly created) to `updatetest3_1.3.tar.gz': Text file busy**
dpkg-buildpackage: error: dpkg-source -b updatetest3 gave error exit status 26
root@jessie:/vagrant/updatetest3#
有什么想法吗?
由于
比尔
答案 0 :(得分:1)
没关系。
这个问题似乎是我尝试构建与主机操作系统共享的目录(/ vagrant)的结果。在我复制给一位客人之后,问题就消失了。
比尔