我使用基于 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
还有其他解决方案可以得到我想要的吗?这个问题有解决方案吗?
答案1
在/etc/dpkg/dpkg.cfg.d/60winefiles
:
path-exclude=/opt/wine-staging/share/wine/fonts/*