Closed zeroby0 closed 4 years ago
Looks like installation got corrupted somehow.
Check the list of libraries:
ls -lh /usr/share/java/r2cloud/ | wc -l 31
If its not 31, then try reinstalling r2cloud:
sudo apt-get remove r2cloud sudo apt-get install r2cloud
Yes, it has indeed gotten corrupted. I see 23 instead of 31. I have updates disabled, so it's surprising that the directory would get corrupted.
The librtlsdr package has a version mismatch which prevents me from removing and uninstalling. Is there a way to prevent the corruption from happening, other than getting a UPS?
$ sudo apt-get remove r2cloud
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
rtl-sdr : Depends: librtlsdr0 (= 0.6git) but 0.6.4 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
rtl-sdr
The following packages will be upgraded:
rtl-sdr
1 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
2 not fully installed or removed.
Need to get 0 B/53.6 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 40493 files and directories currently installed.)
Preparing to unpack .../rtl-sdr_0.6.4_armhf.deb ...
Unpacking rtl-sdr (0.6.4) over (0.6git) ...
dpkg: error processing archive /var/cache/apt/archives/rtl-sdr_0.6.4_armhf.deb (--unpack):
trying to overwrite '/usr/bin/rtl_biast', which is also in package rtl-biast 1.0
Errors were encountered while processing:
/var/cache/apt/archives/rtl-sdr_0.6.4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Try removing rtl-biast package. The new rtl-sdr 0.6.4 has rtl_biast embedded.
After a powercut, systemd doesn't start r2cloud when power is back.
On manually restarting r2cloud service with systemctl, I see a Java error.
log.txt
Even on further reboots, r2cloud is not started automatically, and manually starting with systemctl gives the same error. R2cloud never recovers and is stuck on 502.