ワインのインストール/アップデートがフォルダの内容を変更しないようにフォルダをブロックします。

ワインのインストール/アップデートがフォルダの内容を変更しないようにフォルダをブロックします。

私はDebianベースのLinuxディストリビューションを使用しています。私のファイルシステムはext4です。ワインも設置しました。 "/opt/wine-staging/share/wine/fonts/"フォルダを変更しました。私はどんな変化を経験しましたか?このフォルダの一部のファイルを削除しました。このフォルダの一部のファイルを置き換えました。

私が望むもの: "/opt/wine-staging/share/wine/fonts/"で手動で行った変更がアップデートでインストールまたは上書きされないように、ワインをインストールまたはアップデートできるようにしたいです。

これを得る方法はありますか?

私が試したこと:私が望むものを得るために、次のコマンドを試しました。

$ sudo chattr -R +i fonts

結果:wineをインストールすると、次のメッセージが表示され、インストールが失敗します。

Previously unselected package wine-staging is selected.
Preparation for unpacking .../91-wine-staging_5.6-1mx19+1_amd64.deb ...
Unpacking of wine-staging (5.6-1mx19+1) ...
dpkg: Error while editing the archive /tmp/apt-dpkg-install-uAdnvm/91-wine-staging_5.6-1mx19+1_amd64.deb (--unpack):
"/opt/wine-staging/share/wine/fonts/arial.ttf.dpkg-new" could not be created (while processing "./opt/wine-staging/share/wine/fonts/arial.ttf"): The operation is not allowed
dpkg-deb: Error: "insert" subprocess was killed by signal (broken pipe)
Previously unselected package winehq-staging is selected.
Preparation for unpacking .../92-winehq-staging_5.6-1mx19+1_amd64.deb ...
Unpacking of winehq-staging (5.6-1mx19+1) ...
Errors occured while editing:
/tmp/apt-dpkg-install-uAdnvm/91-wine-staging_5.6-1mx19+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
My Account

私が望むものを得ることができる他の解決策はありますか?この問題に対する解決策はありますか?

ベストアンサー1

存在する/etc/dpkg/dpkg.cfg.d/60winefiles

path-exclude=/opt/wine-staging/share/wine/fonts/*

おすすめ記事