dernasherbrezon / r2cloud

Decode satellite signals on Raspberry PI or any other 64-bit CPU.
Apache License 2.0
255 stars 30 forks source link

Sub-process /usr/bin/dpkg returned an error code (1) #94

Closed ZL1LAC closed 3 years ago

ZL1LAC commented 3 years ago

Not sure what I'm doing wrong.

sudo apt install r2cloud
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libflac8 libfontconfig1 libgsm1 libhyperic-sigar-java libltdl7 libnginx-mod-http-echo libogg0 libopencore-amrnb0 libopencore-amrwb0 librtlsdr0 libsndfile1 libsox-fmt-alsa
  libsox-fmt-base libsox3 libvorbis0a libvorbisenc2 libvorbisfile3 libwavpack1 libxft2 libxrender1 nginx-common nginx-light r2cloud-jdk rtl-sdr sox wxtoimg
Suggested packages:
  libsox-fmt-all fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core libflac8 libfontconfig1 libgsm1 libhyperic-sigar-java libltdl7 libnginx-mod-http-echo libogg0 libopencore-amrnb0 libopencore-amrwb0 librtlsdr0 libsndfile1 libsox-fmt-alsa
  libsox-fmt-base libsox3 libvorbis0a libvorbisenc2 libvorbisfile3 libwavpack1 libxft2 libxrender1 nginx-common nginx-light r2cloud r2cloud-jdk rtl-sdr sox wxtoimg
0 upgraded, 29 newly installed, 0 to remove and 7 not upgraded.
Need to get 277 kB/55.8 MB of archives.
After this operation, 31.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://s3.amazonaws.com/r2cloud r2cloud/main armhf r2cloud armhf 20200918184808 [277 kB]
Fetched 277 kB in 1s (200 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libopencore-amrnb0:armhf.
(Reading database ... 43644 files and directories currently installed.)
Preparing to unpack .../00-libopencore-amrnb0_0.1.3-2.1_armhf.deb ...
Unpacking libopencore-amrnb0:armhf (0.1.3-2.1) ...
Selecting previously unselected package libopencore-amrwb0:armhf.
Preparing to unpack .../01-libopencore-amrwb0_0.1.3-2.1_armhf.deb ...
Unpacking libopencore-amrwb0:armhf (0.1.3-2.1) ...
Selecting previously unselected package libhyperic-sigar-java.
Preparing to unpack .../02-libhyperic-sigar-java_1.6.4+dfsg-4_armhf.deb ...
Unpacking libhyperic-sigar-java (1.6.4+dfsg-4) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../03-fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../04-fontconfig-config_2.13.1-2_all.deb ...
Unpacking fontconfig-config (2.13.1-2) ...
Selecting previously unselected package libfontconfig1:armhf.
Preparing to unpack .../05-libfontconfig1_2.13.1-2_armhf.deb ...
Unpacking libfontconfig1:armhf (2.13.1-2) ...
Selecting previously unselected package libxrender1:armhf.
Preparing to unpack .../06-libxrender1_1%3a0.9.10-1_armhf.deb ...
Unpacking libxrender1:armhf (1:0.9.10-1) ...
Selecting previously unselected package libxft2:armhf.
Preparing to unpack .../07-libxft2_2.3.2-2_armhf.deb ...
Unpacking libxft2:armhf (2.3.2-2) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../08-nginx-common_1.14.2-2+deb10u3_all.deb ...
Unpacking nginx-common (1.14.2-2+deb10u3) ...
Selecting previously unselected package libnginx-mod-http-echo.
Preparing to unpack .../09-libnginx-mod-http-echo_1.14.2-2+deb10u3_armhf.deb ...
Unpacking libnginx-mod-http-echo (1.14.2-2+deb10u3) ...
Selecting previously unselected package nginx-light.
Preparing to unpack .../10-nginx-light_1.14.2-2+deb10u3_armhf.deb ...
Unpacking nginx-light (1.14.2-2+deb10u3) ...
Selecting previously unselected package r2cloud-jdk.
Preparing to unpack .../11-r2cloud-jdk_20191226160628_armhf.deb ...
Unpacking r2cloud-jdk (20191226160628) ...
Selecting previously unselected package librtlsdr0:armhf.
Preparing to unpack .../12-librtlsdr0_0.6.4_armhf.deb ...
Unpacking librtlsdr0:armhf (0.6.4) ...
Selecting previously unselected package rtl-sdr.
Preparing to unpack .../13-rtl-sdr_0.6.4_armhf.deb ...
Unpacking rtl-sdr (0.6.4) ...
Selecting previously unselected package libgsm1:armhf.
Preparing to unpack .../14-libgsm1_1.0.18-2_armhf.deb ...
Unpacking libgsm1:armhf (1.0.18-2) ...
Selecting previously unselected package libltdl7:armhf.
Preparing to unpack .../15-libltdl7_2.4.6-9_armhf.deb ...
Unpacking libltdl7:armhf (2.4.6-9) ...
Selecting previously unselected package libsox3:armhf.
Preparing to unpack .../16-libsox3_14.4.2+git20190427-1_armhf.deb ...
Unpacking libsox3:armhf (14.4.2+git20190427-1) ...
Selecting previously unselected package libsox-fmt-alsa:armhf.
Preparing to unpack .../17-libsox-fmt-alsa_14.4.2+git20190427-1_armhf.deb ...
Unpacking libsox-fmt-alsa:armhf (14.4.2+git20190427-1) ...
Selecting previously unselected package libogg0:armhf.
Preparing to unpack .../18-libogg0_1.3.2-1+b2_armhf.deb ...
Unpacking libogg0:armhf (1.3.2-1+b2) ...
Selecting previously unselected package libflac8:armhf.
Preparing to unpack .../19-libflac8_1.3.2-3_armhf.deb ...
Unpacking libflac8:armhf (1.3.2-3) ...
Selecting previously unselected package libvorbis0a:armhf.
Preparing to unpack .../20-libvorbis0a_1.3.6-2_armhf.deb ...
Unpacking libvorbis0a:armhf (1.3.6-2) ...
Selecting previously unselected package libvorbisenc2:armhf.
Preparing to unpack .../21-libvorbisenc2_1.3.6-2_armhf.deb ...
Unpacking libvorbisenc2:armhf (1.3.6-2) ...
Selecting previously unselected package libsndfile1:armhf.
Preparing to unpack .../22-libsndfile1_1.0.28-6_armhf.deb ...
Unpacking libsndfile1:armhf (1.0.28-6) ...
Selecting previously unselected package libvorbisfile3:armhf.
Preparing to unpack .../23-libvorbisfile3_1.3.6-2_armhf.deb ...
Unpacking libvorbisfile3:armhf (1.3.6-2) ...
Selecting previously unselected package libwavpack1:armhf.
Preparing to unpack .../24-libwavpack1_5.1.0-6_armhf.deb ...
Unpacking libwavpack1:armhf (5.1.0-6) ...
Selecting previously unselected package libsox-fmt-base:armhf.
Preparing to unpack .../25-libsox-fmt-base_14.4.2+git20190427-1_armhf.deb ...
Unpacking libsox-fmt-base:armhf (14.4.2+git20190427-1) ...
Selecting previously unselected package sox.
Preparing to unpack .../26-sox_14.4.2+git20190427-1_armhf.deb ...
Unpacking sox (14.4.2+git20190427-1) ...
Selecting previously unselected package wxtoimg.
Preparing to unpack .../27-wxtoimg_2.11.2_armhf.deb ...
Unpacking wxtoimg (2.11.2) ...
Selecting previously unselected package r2cloud.
Preparing to unpack .../28-r2cloud_20200918184808_armhf.deb ...
Unpacking r2cloud (20200918184808) ...
Setting up wxtoimg (2.11.2) ...
Setting up libogg0:armhf (1.3.2-1+b2) ...
Setting up libxrender1:armhf (1:0.9.10-1) ...
Setting up libgsm1:armhf (1.0.18-2) ...
Setting up nginx-common (1.14.2-2+deb10u3) ...
Setting up libflac8:armhf (1.3.2-3) ...
Setting up libopencore-amrwb0:armhf (0.1.3-2.1) ...
Setting up librtlsdr0:armhf (0.6.4) ...
Setting up libvorbis0a:armhf (1.3.6-2) ...
Setting up r2cloud-jdk (20191226160628) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up libltdl7:armhf (2.4.6-9) ...
Setting up libnginx-mod-http-echo (1.14.2-2+deb10u3) ...
Setting up libwavpack1:armhf (5.1.0-6) ...
Setting up libopencore-amrnb0:armhf (0.1.3-2.1) ...
Setting up libhyperic-sigar-java (1.6.4+dfsg-4) ...
Setting up libvorbisenc2:armhf (1.3.6-2) ...
Setting up nginx-light (1.14.2-2+deb10u3) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2020-09-19 07:27:47 BST; 29ms ago
     Docs: man:nginx(8)
  Process: 4628 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Sep 19 07:27:47 raspberrypi systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 19 07:27:47 raspberrypi nginx[4628]: nginx: [emerg] BIO_new_file("/home/pi/r2cloud/ssl/domain-chain.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/pi/r2cloud/ssl/domain-chain.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Sep 19 07:27:47 raspberrypi nginx[4628]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 19 07:27:47 raspberrypi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Sep 19 07:27:47 raspberrypi systemd[1]: nginx.service: Failed with result 'exit-code'.
Sep 19 07:27:47 raspberrypi systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-light (--configure):
 installed nginx-light package post-installation script subprocess returned error exit status 1
Setting up libsox3:armhf (14.4.2+git20190427-1) ...
Setting up fontconfig-config (2.13.1-2) ...
dpkg: dependency problems prevent configuration of r2cloud:
 r2cloud depends on nginx-light (>= 1.10.3); however:
  Package nginx-light is not configured yet.

dpkg: error processing package r2cloud (--configure):
 dependency problems - leaving unconfigured
Setting up rtl-sdr (0.6.4) ...
Setting up libvorbisfile3:armhf (1.3.6-2) ...
Setting up libsox-fmt-alsa:armhf (14.4.2+git20190427-1) ...
Setting up libfontconfig1:armhf (2.13.1-2) ...
Setting up libsndfile1:armhf (1.0.28-6) ...
Setting up libxft2:armhf (2.3.2-2) ...
Setting up libsox-fmt-base:armhf (14.4.2+git20190427-1) ...
Setting up sox (14.4.2+git20190427-1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for systemd (241-7~deb10u4+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for mime-support (3.62) ...
Errors were encountered while processing:
 nginx-light
 r2cloud
E: Sub-process /usr/bin/dpkg returned an error code (1)
dernasherbrezon commented 3 years ago

Nginx was incorrectly uninstalled and when re-installed old configs were picked up. I will fix proper r2cloud uninstallation. In the meantime, delete nginx using the command:

sudo apt-get purge nginx nginx-common nginx-light

And then install r2cloud using the command:

sudo apt-get install r2cloud