vufa / deepin-wine-tim-arch

Tencent TIM on Deepin Wine(com.qq.office.deepin) For Archlinux
https://aur.archlinux.org/packages/deepin-wine-tim/
386 stars 10 forks source link

构建软件包出错 #116

Closed chenyu-01 closed 3 years ago

chenyu-01 commented 3 years ago

我的系统环境

Kernel: x86_64 Linux 5.12.14-arch1-1 OS: Arch Linux

安装方式

yay -S deepin-wine-tim

出错内容如下

==> Extracting Deepin Wine QQ archive ...

7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=C,Utf16=off,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 110786919 bytes (106 MiB)                                         

Extracting archive: /home/yeschan/Downloads/deepin-wine-tim-arch/src/dpkgdir/opt/apps/com.qq.im.deepin/files/files.7z
--
Path = /home/yeschan/Downloads/deepin-wine-tim-arch/src/dpkgdir/opt/apps/com.qq.im.deepin/files/files.7z
Type = 7z
Physical Size = 110786919
Headers Size = 22662
Method = LZMA2:26 BCJ2
Solid = +
Blocks = 1

ERROR: Can not delete output folder : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/Program Files/Tencent/QQ/?
ERROR: Can not delete output folder : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/Program Files/Tencent/QQ/??
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/????12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : /home/yeschan/Downloads/deepin-wine-tim-arch/src/deepintimdir/drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png

Sub items Errors: 17

Archives with Errors: 1

Sub items Errors: 17
==> ERROR: A failure occurred in build().
    Aborting...
vufa commented 3 years ago

尝试将系统更新到最新,并在安装时选择 clean build

chenyu-01 commented 3 years ago

尝试将系统更新到最新,并在安装时选择 clean build

已经尝试过更新系统,clean build选择All,出现同样错误 另,单独解压file.7z也同样缺失这些文件。

chenyu-01 commented 3 years ago

我尝试单独解压 7z x files.7z 还是得到以下错误

7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=C,Utf16=off,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 110786919 bytes (106 MiB)

Extracting archive: files.7z
--
Path = files.7z
Type = 7z
Physical Size = 110786919
Headers Size = 22662
Method = LZMA2:26 BCJ2
Solid = +
Blocks = 1

Would you like to replace the existing file:
  Path:     ./drive_c/Program Files/Tencent/QQ/.
  Size:     0 bytes
  Modified: 2021-07-09 11:55:37
with the file from archive:
  Path:     drive_c/Program Files/Tencent/QQ/?
  Size:     44720 bytes (44 KiB)
  Modified: 2021-01-14 16:10:08
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? Au

ERROR: Can not delete output folder : No such file or directory : ./drive_c/Program Files/Tencent/QQ/?
ERROR: Can not delete output folder : No such file or directory : ./drive_c/Program Files/Tencent/QQ/??
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/????12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png
ERROR: Can not delete output file : No such file or directory : ./drive_c/users/@current_user@/Application Data/Tencent/QQ/Misc/ClientType/???12.png

Sub items Errors: 17

Archives with Errors: 1

Sub items Errors: 17
vufa commented 3 years ago

本地构建和 GitHub Action#7 都不能复现这个问题,可以参照用安装包安装,直接用打包好的安装包安装

chenyu-01 commented 3 years ago

大概搞清楚,7z x files.7z过程时系统误以为乱码文件和某些文件一样,如果全选择No应该不会出错

Would you like to replace the existing file: Path: ./drive_c/Program Files/Tencent/QQ/. Size: 0 bytes Modified: 2021-07-09 11:55:37 with the file from archive: Path: drive_c/Program Files/Tencent/QQ/? Size: 44720 bytes (44 KiB) Modified: 2021-01-14 16:10:08 ? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? Au

但是无论用哪种方法安装都不像单独解压有选项,都会报错。 直到我尝试如下解压方式

yeschan@YC [09:42:01] [~/Downloads] 
-> % 7z x -aou files.7z -otest/

7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=C,Utf16=off,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 110786919 bytes (106 MiB)

Extracting archive: files.7z
--
Path = files.7z
Type = 7z
Physical Size = 110786919
Headers Size = 22662
Method = LZMA2:26 BCJ2
Solid = +
Blocks = 1

Everything is Ok                                                               

Folders: 356
Files: 1992
Size:       392523287
Compressed: 110786919

如果修改7z解压方式之后就不会出问题,那我也手动构建一下pkgbuild,修改一行 7z x -aoa "${srcdir}/dpkgdir/opt/apps/${debpkgname}/files/files.7z" -o"${srcdir}/ 把它改为 7z x -aou "${srcdir}/dpkgdir/opt/apps/${debpkgname}/files/files.7z" -o"${srcdir}/ 最后没报错完美运行了 最后总结:肯定是哪里编码出问题了。因为那几个被替换找不到的文件全是文件名带???乱码

chenyu-01 commented 3 years ago

最后排查出问题了,本地语言没设置好。具体来说是locale和LANC不一致,设置好之后7z不会出问题。 抱歉打扰作者了。