Debian
阻止文件夾,以便 wine 安裝/更新不會更改文件夾的內容
我使用基於 debian 的 linux 發行版。我的文件系統是 ext4。我也安裝了wine。我在文件夾“/opt/wine-staging/share/wine/fonts/”中進行了更改。我做了哪些改變?我已經刪除了這個文件夾中的一些文件。我已經替換了這個文件夾中的一些文件。
我想要什麼:我希望能夠以某種方式安裝或更新 wine,即我在“/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
有沒有其他解決方案可以得到我想要的?這個問題甚至有解決方案嗎?
在
/etc/dpkg/dpkg.cfg.d/60winefiles
:path-exclude=/opt/wine-staging/share/wine/fonts/*