pothosware / SoapyRemote

Use any Soapy SDR remotely
https://github.com/pothosware/SoapyRemote/wiki
Boost Software License 1.0
114 stars 22 forks source link

apt-get Errors were encountered while processing: soapysdr-server #81

Open MountainLogic opened 3 years ago

MountainLogic commented 3 years ago

I installed pothos and some of the other tools without keeping track of order under the windows Linux subsystem of win10. I keep getting apt-get errors that were encountered since trying to install soapysdr-server.

I've followed this page step by step to try and resolve it. Seemed like no matter that I did I would still get jammed-up with a 'apt-get Errors were encountered while processing: soapysdr-server' message for installing any other packages. I finally had to go in and wack the soapysdr-server entry in /var/lib/dpkg. Wacking the enty did fix things and I am now functional. (See link above) I have no idea how to repo this. Mostly, entering this report for reference. Examples of the failures follow (strike-throughs are caused by a tilde in the output) :

foo@bar:~/wip/daemon$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up soapysdr-server (0.5.1-myriadrf1~ubuntu18.04) ... sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or directory sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or directory dpkg: error processing package soapysdr-server (--configure): installed soapysdr-server package post-installation script subprocess returned error exit status 255 Errors were encountered while processing: soapysdr-server E: Sub-process /usr/bin/dpkg returned an error code (1) foo@bar:~/wip/daemon$ sudo apt-get install soapysdr-server -f Reading package lists... Done Building dependency tree Reading state information... Done soapysdr-server is already the newest version (0.5.1-myriadrf1~ubuntu18.04). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up soapysdr-server (0.5.1-myriadrf1~ubuntu18.04) ... sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or directory sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or directory dpkg: error processing package soapysdr-server (--configure): installed soapysdr-server package post-installation script subprocess returned error exit status 255 Errors were encountered while processing: soapysdr-server E: Sub-process /usr/bin/dpkg returned an error code (1) foo@bar:~/wip/daemon$ sudo apt-get install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up soapysdr-server (0.5.1-myriadrf1~ubuntu18.04) ... sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or directory sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or directory dpkg: error processing package soapysdr-server (--configure): installed soapysdr-server package post-installation script subprocess returned error exit status 255 Errors were encountered while processing: soapysdr-server E: Sub-process /usr/bin/dpkg returned an error code (1) foo@bar:~/wip/daemon$ sudo dpkg -r soapysdr-server (Reading database ... 78849 files and directories currently installed.) Removing soapysdr-server (0.5.1-myriadrf1~ubuntu18.04) ... System has not been booted with systemd as init system (PID 1). Can't operate. dpkg: error processing package soapysdr-server (--remove): installed soapysdr-server package pre-removal script subprocess returned error exit status 1 Errors were encountered while processing: soapysdr-server `

guruofquality commented 3 years ago

This is probably the script that causes this: https://github.com/pothosware/SoapyRemote/blob/master/debian/soapysdr-server.postinst

It does check for sysctl before using it. So its unfortunate that there is a sysctl executable present, but not really any of the kernel filesystem stuff that supports it.

I'm not really familiar with the windows hybrid environment. I can always shove a true at the end to quiet the errors: sysctl --load /usr/lib/sysctl.d/SoapySDRServer.conf || true