Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

构建软件包出错 #116

Closed
chenyu-01 opened this issue Jul 9, 2021 · 6 comments
Closed

构建软件包出错 #116

chenyu-01 opened this issue Jul 9, 2021 · 6 comments

Comments

@chenyu-01
Copy link

我的系统环境

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
Copy link
Owner

vufa commented Jul 9, 2021

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

@chenyu-01
Copy link
Author

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

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

@chenyu-01
Copy link
Author

我尝试单独解压
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

@chenyu-01 chenyu-01 changed the title 构建软包件出错 构建软件包出错 Jul 9, 2021
@vufa
Copy link
Owner

vufa commented Jul 9, 2021

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

@chenyu-01
Copy link
Author

chenyu-01 commented Jul 9, 2021

大概搞清楚,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 chenyu-01 reopened this Jul 10, 2021
@chenyu-01
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants