dhvirtualenv生成错误文本文件忙

2024-05-16 17:54:14 发布

您现在位置:Python中文网/ 问答频道 /正文

刚刚开始使用dh virtualenv,并且一直在遵循https://nylas.com/blog/packaging-deploying-python/上的教程

我有一个简单的2文件测试应用程序,我试图建立在一个流浪的Debian杰西虚拟机运行在我的windows机器。当我运行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#

有什么想法吗?在

谢谢

比尔


Tags: tobuildcleansourcenotrootdebianx86
1条回答
网友
1楼 · 发布于 2024-05-16 17:54:14

没关系。在

这个问题似乎是由于我试图在与主机操作系统共享的目录中构建(/vagrant)。当我复制到一个只供客人使用的目录后,问题就消失了。在

比尔

相关问题 更多 >