Dpkg - debパッケージをインストールするとフォルダが作成されません。

Dpkg - debパッケージをインストールするとフォルダが作成されません。

これはソースから独自のパッケージを作成する最初の試みです。私がした方法:

fakeroot
make install DESTDIR=/home/user/temp
cd /home/user/temp
mkdir DEBIAN
find etc | sed "s/^/\//" > DEBIAN/conffiles

その後、私はDEBIAN / controlファイルを生成し、それを実行しましたdpkg -b /home/user/temp。その後、私はdebパッケージを持っていて、実際のルートとしてこれをしましたdpkg -i /home/user/temp.deb。ただし、dpkgはdebパッケージのファイルをfsにコピーしませんが、そのフォルダが存在しないと文句を言います(そのファイルやディレクトリはありません)。私が知っているのは、DEBIAN / CONTENTSにフォルダを作成する必要がありますが、そうではありません。私は何を見逃していますか?

編集するDEBIAN/dirs ファイルとパスのリストを追加してみました。

/etc
/etc/selinux/
/etc/selinux/refpolicy
...

しかし、これは役に立ちませんでした。

編集するコマンドのdpkg-deb -c temp.deb出力は次のとおりです。

drwxr-xr-x user/user       0 2016-09-08 10:57 ./
drwxr-xr-x user/user       0 2016-09-08 10:57 ./etc/
drwxr-xr-x user/user       0 2016-09-08 10:57 ./etc/selinux/
drwxr-xr-x user/user       0 2016-09-08 10:57 ./etc/selinux/refpolicy/
drwxr-xr-x user/user       0 2016-09-08 10:57 ./etc/selinux/refpolicy/src/
drwxr-xr-x user/user       0 2016-09-08 10:57 ./etc/selinux/refpolicy/src/policy/
drwxr-xr-x user/user       0 2016-09-08 10:57 ./etc/selinux/refpolicy/src/policy/support/
-rw-r--r-- user/user    6176 2016-09-08 10:57 ./etc/selinux/refpolicy/src/policy/support/Makefile.devel
-rw-r--r-- user/user       6 2016-09-08 10:57 ./etc/selinux/refpolicy/src/policy/support/undivert.m4
-rw-r--r-- user/user      12 2016-09-08 10:57 ./etc/selinux/refpolicy/src/policy/support/divert.m4
-rw-r--r-- user/user   10673 2016-09-08 10:57 ./etc/selinux/refpolicy/src/policy/support/pyplate.py
-rw-r--r-- user/user   13796 2016-09-08 10:57 ./etc/selinux/refpolicy/src/policy/support/fc_sort.c
..... etc

これが私が得るものです:

error creating directory `./etc/selinux/refpolicy/src': No such file or directory

ベストアンサー1

conffiles問題は、そのディレクトリをファイルの内容として表示したようですDEBIAN/conffiles。これはサポートされておらず、中断されます。最新バージョンdpkg-debでは、この場合は警告が表示されます。

また、このDEBIAN/dirsファイルはここでは役に立ちません。ソースディレクトリdebian / dirsの下のファイルと混同されているようですdebhelper

おすすめ記事