Errors were encountered while processing: docspace

我通过Windows 11 系统中安装的 VM 虚拟机,安装了 Debian 系统,在 Debian 系统中安装文档空间,出现错误。

I installed the Debian system through the VM virtual machine installed in the Windows 11 system, and encountered an error when installing document space in the Debian system.

Errors were encountered while processing:
 docspace
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
docspace is already the newest version (2.0.3.397).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up docspace (2.0.3.397) ...
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/usr/bin/json
Configuring docspace... dpkg: error processing package docspace (--configure):
 installed docspace package post-installation script subprocess returned error exit status 126
Errors were encountered while processing:
 docspace
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@bogon:~# 

When I rerun the script, it prompts

root@bogon:~# bash docspace-install.sh package -skiphc true
Hit:1 http://mirror.bjtu.edu.cn/debian bookworm InRelease
Get:2 http://openresty.org/package/debian bullseye InRelease [4888 B]          
Hit:3 http://mirror.bjtu.edu.cn/debian bookworm-updates InRelease              
Hit:4 http://download.onlyoffice.com/repo/debian squeeze InRelease             
Hit:5 http://nginx.org/packages/debian buster InRelease                        
Hit:6 http://repo.mysql.com/apt/ubuntu jammy InRelease                         
Hit:7 http://security.debian.org/debian-security bookworm-security InRelease   
Hit:8 https://artifacts.elastic.co/packages/7.x/apt stable InRelease           
Hit:9 https://packages.microsoft.com/debian/11/prod bullseye InRelease         
Hit:10 http://ftp.uk.debian.org/debian bookworm InRelease                      
Hit:11 https://deb.nodesource.com/node_18.x nodistro InRelease                 
Fetched 4888 B in 1s (3298 B/s)
Reading package lists... Done
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   712  100   712    0     0   3663      0 --:--:-- --:--:-- --:--:--  3670

#######################################
#  BOOTSTRAP
#######################################

deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] http://download.onlyoffice.com/repo/debian squeeze main
gpg: key 8320CA65CB2DE8E5: "Ascensio System Limited (ONLYOFFICE) <support@onlyoffice.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
install-Debian.sh: line 141: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3176  100  3176    0     0  16295      0 --:--:-- --:--:-- --:--:-- 16371
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1096  100  1096    0     0   3583      0 --:--:-- --:--:-- --:--:--  3581

#######################################
#  CHECK PORTS
#######################################

docspace is already installed
onlyoffice-documentserver is already installed
root@bogon:~# 

However, when I enter the IP address, it displays as

"I encountered the same issue while installing CentOS 7.

(49/52): xorg-x11-xkb-utils-7.7-14.el7.x86_64.rpm            | 103 kB  00:00:00     
onlyoffice-documentserver-8.0. FAILED
http://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-documentserver-8.0.0.x86_64.rpm: [Errno 14] curl#52 - "Empty reply from server"
正在尝试其它镜像。
msttcore-fonts-installer-2.6-1 FAILED
http://download.onlyoffice.com/repo/centos/main/noarch/msttcore-fonts-installer-2.6-1.noarch.rpm: [Errno 14] curl#52 - "Empty reply from server"
正在尝试其它镜像。
warning: /var/cache/yum/x86_64/7/nginx-stable/packages/nginx-1.24.0-1.el7.ngx.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 7bd9bf62: NOKEY
nginx-1.24.0-1.el7.ngx.x86_64.rpm 的公钥尚未安装
(50/52): nginx-1.24.0-1.el7.ngx.x86_64.rpm                   | 804 kB  00:00:02     


Error downloading packages:
  msttcore-fonts-installer-2.6-1.noarch: [Errno 256] No more mirrors to try.        
  onlyoffice-documentserver-8.0.0-99.el7.x86_64: [Errno 256] No more mirrors to try.

“But I can successfully ping download.onlyoffice.com.”

[root@MiWiFi-RB06-srv ~]# ping download.onlyoffice.com
PING d2nlctn12v279m.cloudfront.net (13.227.62.56) 56(84) bytes of data.
64 bytes from server-13-227-62-56.nrt20.r.cloudfront.net (13.227.62.56): icmp_seq=1 ttl=243 time=85.7 ms
64 bytes from server-13-227-62-56.nrt20.r.cloudfront.net (13.227.62.56): icmp_seq=2 ttl=243 time=83.4 ms
64 bytes from server-13-227-62-56.nrt20.r.cloudfront.net (13.227.62.56): icmp_seq=3 ttl=243 time=82.2 ms
64 bytes from server-13-227-62-56.nrt20.r.cloudfront.net (13.227.62.56): icmp_seq=4 ttl=243 time=157 ms
^C
--- d2nlctn12v279m.cloudfront.net ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 82.259/102.108/157.015/31.726 ms
[root@MiWiFi-RB06-srv ~]#

By configuring the system proxy, scientific internet access can be achieved, and installation can be completed normally through the script

1 Like

Hi @touma
it seems like you need to use a proxy or VPN for installation DocSpace from China.

how did you get over GFW? My ladder could let me open G00GLE in browser and download files via curl, but can not let my docker pull and build OODSS. I have tested with my ladder turned off, the script will stop and exit at once started, it will not come to Unable to retrieve tag from onlyoffice/documentserver repository error, how to make everything in Deepin Linux get out of GFW?

I successfully completed the installation by configuring the proxy

1 Like