debian-cryptoanarchy / cryptoanarchy-deb-repo-builder

Tooling for building a Debian repository containing interconnected, well-working applications.
143 stars 25 forks source link

Error adding repo #91

Closed wchancao closed 4 years ago

wchancao commented 4 years ago

I was following the steps to add the repo but when I sudo apt update i got this error

Ign:6 https://deb.ln-ask.me buster InRelease
Err:7 https://deb.ln-ask.me buster Release
404 Not Found [IP: 37.9.175.23 443] Reading package lists... Done E: The repository 'https://deb.ln-ask.me buster Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

Is this ok? Should i follow with installing bitcoind?

aitorjs commented 4 years ago

Same problem here! :)

I use docker with linux mint 19.3 container. Here the commands used and then an screenshot with the error.

docker pull linuxmintd/mint19.3-amd64
docker run -it linuxmintd/mint19.3-amd64

gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 3D9E81D3CA76CDCBE768C4B4DC6B4F8E60B8CF4C
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF
gpg --export 3D9E81D3CA76CDCBE768C4B4DC6B4F8E60B8CF4C | sudo apt-key add -
gpg --export BC528686B50D79E339D3721CEB3E94ADBE1229CF | sudo apt-key add -
echo 'deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/10/prod buster main' | sudo tee /etc/apt/sources.list.d/microsoft.list > /dev/null
echo 'deb https://deb.ln-ask.me buster common local desktop' | sudo tee /etc/apt/sources.list.d/cryptoanarchy.list > /dev/null
sudo apt update

cryptoanarchy-deb-repo-builder

Great project! :D

Kixunil commented 4 years ago

Hi, sorry guys, for replying this late, my GitHub notifications are blown up and I missed it (there should be a setting to make them scream more :angry: )

The instructions were missing /beta suffix, I fxed the instructions. Let me know if there's still any problem, will reopen.

aitorjs commented 4 years ago

All goes as spected :)

I install bitcoind. If I set inside my home .bitcoin/bitcoin.conf, the configuration defined there is used by bitcoind. Great! :)

I try with bitcoin-txindex-mainnet package too. I dont have bitcoind and .bitcoin/ doesn't exist. Shouldn't there be at least .bitcoin/bitcoin.conf file with the txindex configuration there?

Thanks! :)

Kixunil commented 4 years ago

Hmm, did you read the docs? While using bitcoind under your own user works, it's not the main point of the repository. You shouldn't have to configure anything.

No service uses your own home directory, the configuration is placed into /etc/... and data in /var/lib/... as in case of all other Linux services. The configuration is generated automatically by the packages. So when you install bitcoin-txindex-mainnet the configuration in /etc/bitcoin-mainnet/bitcoin.conf re-generates to contain txindex=1 If you're switching configurations you might see some strange warnings about dependencies, but everything is actually OK.

As a general rule of thumb, you should not have to configure anything. If you do, either you're doing something special or something wrong.

If you used apt install bitcoind without --no-install-recommends, then bitcoin data is already downloaded into /var/lib/bitcoin-mainnet, so if you're running bitcoind explicitly under your user you're needlessly duplicating the data on your disk. I strongly recommend not running it under your own user and removing ~/.bitcoind, as you don't need it. If there's anything you need to do differently and you are unable to configure it using sudo dpkg-reconfigure bitcoin-mainnet, let me know and I will try to address the issue in debconf. (But again, pruning, txindex and zmq are special and you need to use special packages for them.)

aitorjs commented 4 years ago

I was trying in linux mint 19.3 but bitcoind was not installed with bitcoin-pruned-mainnet.

I try with debian and this problem doesnt exist on debian but bitcoind is not up. If I run manually with bitcoind, bitcoin daemon runs. I see that a service exist on /etc/systemd/system/multi-user.target.wants/bitcoin-mainnet.service.

¿How can I use the bitcoin-mainnet.service? ¿Why bitcoind is not up after install bitcoin-pruned-mainnet?

Thanks! :)

Kixunil commented 4 years ago

That's strange, how did you check if bitcoind is running? The correct way to check is sudo systemctl status bitcoin-mainnet.

If it's not running, please send the output of sudo journalctl --no-pager -u bitcoin-mainnet.

aitorjs commented 4 years ago

No way! :)

a@4f7b4f6e8d87:/etc$ sudo systemctl status bitcoin-mainnet System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

a@4f7b4f6e8d87:/etc$ sudo journalctl --no-pager -u bitcoin-mainnet No journal files were found. -- No entries --

I tried to solve "System has not been booted with systemd as init system (PID 1). Can't operate." problem but I didn't find the correct way.

Thanks! :D

Kixunil commented 4 years ago

The Docker image you used doesn't have systemd enabled. Unfortunately, this repository currently requires systemd as it makes heavy use of some of its features.

This worked for me:

docker pull jrei/systemd-debian
docker run --name debian-systemd -d --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-debian
docker exec -it debian-systemd bash

However, I needed to install ca-certificates and gpg for it to get working. The services don't start in docker by default, so must be enabled automatically.

Kixunil commented 4 years ago

FYI, I just added a demo dockerfile: https://github.com/Kixunil/cryptoanarchy-deb-repo-builder/tree/master/docker

aitorjs commented 4 years ago

I install bitcoin-pruned-mainnet successfully using the three docker commands previously mentioned.

Also, using virtualbox and the debian last version.

Another little question, :D

Thanks! :)

Kixunil commented 4 years ago

If you didn't install selfhost-clearnet, then you can access the explorer using Tor.

btc-rpc-explorer usage

aitorjs commented 4 years ago

After install btc-rpc-explorer package, I type: sudo /usr/share/selfhost/lib/get_default_domain.sh && echo '/btc-rpc-explorer' and I get http:///btc-rpc-explorer. I go to a browser with this url but the browser redirect to www.btc-rpc-explorer.com. So, I get a 404 http error.

Installing btc-rpc-explorer, I get an error on tor@default.service:

go 31 15:45:35 pi-pc systemd[1]: tor@default.service: Main process exited, code=exited, status=1/FAILURE ago 31 15:45:35 pi-pc systemd[1]: tor@default.service: Failed with result 'exit-code'. ago 31 15:45:35 pi-pc systemd[1]: Failed to start Anonymizing overlay network for TCP. ago 31 15:45:35 pi-pc systemd[1]: tor@default.service: Service RestartSec=100ms expired, scheduling restart. ago 31 15:45:35 pi-pc systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 5. ago 31 15:45:35 pi-pc systemd[1]: Stopped Anonymizing overlay network for TCP. ago 31 15:45:35 pi-pc systemd[1]: tor@default.service: Start request repeated too quickly. ago 31 15:45:35 pi-pc systemd[1]: tor@default.service: Failed with result 'exit-code'. ago 31 15:45:35 pi-pc systemd[1]: Failed to start Anonymizing overlay network for TCP.

¿Maybe this is the reason why I cant find http:///btc-rpc-explorer?

Then, I try with selfhost-clearnet but I have a doubt in You must have a working domain pointing to your node for selfhost-clearnet to work!. I understand if my domain is domain.com, I need to make an A register on this domain pointing to http:///btc-rpc-explorer?

Thanks for the patient! :D

Kixunil commented 4 years ago

¿Maybe this is the reason why I cant find http:///btc-rpc-explorer?

Yes, that's exactly the reason. Tor failed to generate the address for you. Could you post a bigger output? From sudo journalctl --no-pager -u tor@default.service.

There were some problems with apparmor which I thought I resolved, but maybe not perfectly. Please post sudo apparmor_status

I understand if my domain is domain.com, I need to make an A register on this domain pointing to http:///btc-rpc-explorer?

Well, you need to point A record to your IP address. Also you need to make sure port forwarding is set up for ports 80 and 443, if you have the node behind NAT. I believe it also requires running Docker with -p 80 -p 443.

Kixunil commented 4 years ago

Oh, I figured it out, the Docker Debian is insanely stripped-down so it lacks even the most basic things. I will fix this properly at some point, for now, please run: apt install patch procps python3.

There seems to be also some problem with thunderhub-system-regtest. I hope whole nodejs isn't broken.

aitorjs commented 4 years ago

I'm not using docker. I'm inside virtualbox using this iso https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.5.0-amd64-cinnamon.iso

¿Maybe this is the reason why I cant find http:///btc-rpc-explorer?

Yes, that's exactly the reason. Tor failed to generate the address for you. Could you post a bigger output? From sudo journalctl --no-pager -u tor@default.service.

A bigger output:

pi@pi-pc:~$ sudo systemctl status tor@default.service ● tor@default.service - Anonymizing overlay network for TCP Loaded: loaded (/lib/systemd/system/tor@default.service; enabled-runtime; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2020-09-02 15:40:19 CEST; 8min ago Process: 637 ExecStartPre=/usr/bin/install -Z -m 02755 -o debian-tor -g debian-tor -d /run/tor (code=exited, status=0/SUCCESS) Process: 638 ExecStartPre=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 --verify-config (code=exited, status=0/SUCCESS) Process: 639 ExecStart=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 (code=exited, status=1/FAILURE) Main PID: 639 (code=exited, status=1/FAILURE)

sep 02 15:40:19 pi-pc systemd[1]: tor@default.service: Main process exited, code=exited, status=1/FAILURE sep 02 15:40:19 pi-pc systemd[1]: tor@default.service: Failed with result 'exit-code'. sep 02 15:40:19 pi-pc systemd[1]: Failed to start Anonymizing overlay network for TCP. sep 02 15:40:19 pi-pc systemd[1]: tor@default.service: Service RestartSec=100ms expired, scheduling restart. sep 02 15:40:19 pi-pc systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 5. sep 02 15:40:19 pi-pc systemd[1]: Stopped Anonymizing overlay network for TCP. sep 02 15:40:19 pi-pc systemd[1]: tor@default.service: Start request repeated too quickly. sep 02 15:40:19 pi-pc systemd[1]: tor@default.service: Failed with result 'exit-code'. sep 02 15:40:19 pi-pc systemd[1]: Failed to start Anonymizing overlay network for TCP.

There were some problems with apparmor which I thought I resolved, but maybe not perfectly. Please post sudo apparmor_status

pi@pi-pc:~$ sudo apparmor_status apparmor module is loaded. 22 profiles are loaded. 20 profiles are in enforce mode. /usr/bin/evince /usr/bin/evince-previewer /usr/bin/evince-previewer//sanitized_helper /usr/bin/evince-thumbnailer /usr/bin/evince//sanitized_helper /usr/bin/man /usr/lib/cups/backend/cups-pdf /usr/lib/x86_64-linux-gnu/lightdm/lightdm-guest-session /usr/lib/x86_64-linux-gnu/lightdm/lightdm-guest-session//chromium /usr/sbin/cups-browsed /usr/sbin/cupsd /usr/sbin/cupsd//third_party libreoffice-senddoc libreoffice-soffice//gpg libreoffice-xpdfimport man_filter man_groff nvidia_modprobe nvidia_modprobe//kmod system_tor 2 profiles are in complain mode. libreoffice-oopslash libreoffice-soffice 2 processes have profiles defined. 2 processes are in enforce mode. /usr/sbin/cups-browsed (407) /usr/sbin/cupsd (364) 0 processes are in complain mode. 0 processes are unconfined but have a profile defined.

PD: I make a video about how to install bitcoin with pruning in spanish https://www.youtube.com/watch?v=XYxxngDPYvQ&list=PLocA6zRHOS_pB63Oq5uikm2AAHGkgIpDp&index=13 i will make more videos.

Thanks! :-D

Kixunil commented 4 years ago

Shit, shit, shit! This error looks like related to apparmor. >:(

Could you please try:

sudo aa-complain /usr/bin/tor
sudo apt install -f

PD: I make a video about how to install bitcoin with pruning in spanish https://www.youtube.com/watch?v=XYxxngDPYvQ&list=PLocA6zRHOS_pB63Oq5uikm2AAHGkgIpDp&index=13 i will make more videos.

Awesome, thanks a lot!

aitorjs commented 4 years ago

Could you please try:

sudo aa-complain /usr/bin/tor

pi@pi-pc:~$ sudo aa-complain /usr/bin/tor sudo: aa-complain: command not found

I install it using sudo apt install apparmor-utils. This is the log I geted:

pi@pi-pc:~$ sudo apt-get install apparmor-utils Leyendo lista de paquetes... Hecho Creando árbol de dependencias
Leyendo la información de estado... Hecho Se instalarán los siguientes paquetes adicionales: python3-apparmor python3-libapparmor Paquetes sugeridos: vim-addon-manager Se instalarán los siguientes paquetes NUEVOS: apparmor-utils python3-apparmor python3-libapparmor 0 actualizados, 3 nuevos se instalarán, 0 para eliminar y 93 no actualizados. 4 no instalados del todo o eliminados. Se necesita descargar 344 kB de archivos. Se utilizarán 971 kB de espacio de disco adicional después de esta operación. ¿Desea continuar? [S/n] Des:1 http://deb.debian.org/debian buster/main amd64 python3-libapparmor amd64 2.13.2-10 [89,4 kB] Des:2 http://deb.debian.org/debian buster/main amd64 python3-apparmor amd64 2.13.2-10 [141 kB] Des:3 http://deb.debian.org/debian buster/main amd64 apparmor-utils amd64 2.13.2-10 [114 kB] Descargados 344 kB en 0s (1.439 kB/s)
Seleccionando el paquete python3-libapparmor previamente no seleccionado. (Leyendo la base de datos ... 267707 ficheros o directorios instalados actualmente.) Preparando para desempaquetar .../python3-libapparmor_2.13.2-10_amd64.deb ... Desempaquetando python3-libapparmor (2.13.2-10) ... Seleccionando el paquete python3-apparmor previamente no seleccionado. Preparando para desempaquetar .../python3-apparmor_2.13.2-10_amd64.deb ... Desempaquetando python3-apparmor (2.13.2-10) ... Seleccionando el paquete apparmor-utils previamente no seleccionado. Preparando para desempaquetar .../apparmor-utils_2.13.2-10_amd64.deb ... Desempaquetando apparmor-utils (2.13.2-10) ... Configurando python3-libapparmor (2.13.2-10) ... Configurando selfhost-onion (0.1.5-3) ... Job for tor@default.service failed because the control process exited with error code. See "systemctl status tor@default.service" and "journalctl -xe" for details. dpkg: error al procesar el paquete selfhost-onion (--configure): el subproceso instalado paquete selfhost-onion script post-installation devolvió el código de salida de error 1 Configurando selfhost (0.1.5-3) ... nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful nginx: [emerg] invalid number of arguments in "server_name" directive in /etc/nginx/sites-enabled/onion.conf:3 nginx: configuration file /etc/nginx/nginx.conf test failed dpkg: error al procesar el paquete selfhost (--configure): el subproceso instalado paquete selfhost script post-installation devolvió el código de salida de error 1 Configurando selfhost-clearnet-certbot (0.1.5-4) ... An unexpected error occurred: Error creating new order :: Cannot issue for "btc-rpc-explorer": Domain name needs at least one dot Please see the logfiles in /var/log/letsencrypt for more details. dpkg: error al procesar el paquete selfhost-clearnet-certbot (--configure): el subproceso instalado paquete selfhost-clearnet-certbot script post-installation devolvió el código de salida de error 1 Configurando python3-apparmor (2.13.2-10) ... dpkg: problemas de dependencias impiden la configuración de btc-rpc-explorer-selfhost-mainnet: btc-rpc-explorer-selfhost-mainnet depende de selfhost (<< 0.2.0); sin embargo: El paquete selfhost' no está configurado todavía. btc-rpc-explorer-selfhost-mainnet depende de selfhost (>= 0.1.5); sin embargo: El paqueteselfhost' no está configurado todavía.

dpkg: error al procesar el paquete btc-rpc-explorer-selfhost-mainnet (--configure): problemas de dependencias - se deja sin configurar Configurando apparmor-utils (2.13.2-10) ... Procesando disparadores para man-db (2.8.5-2) ... Procesando disparadores para nginx-full (1.14.2-2+deb10u3) ... Triggering nginx reload ... invoke-rc.d: policy-rc.d denied execution of reload. Se encontraron errores al procesar: selfhost-onion selfhost selfhost-clearnet-certbot btc-rpc-explorer-selfhost-mainnet E: Sub-process /usr/bin/dpkg returned an error code (1)

pi@pi-pc:~$ sudo aa-complain /usr/bin/tor Profile for /usr/bin/tor not found, skipping

sudo apt install -f

pi@pi-pc:~$ sudo apt install -f Leyendo lista de paquetes... Hecho Creando árbol de dependencias
Leyendo la información de estado... Hecho 0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 93 no actualizados. 4 no instalados del todo o eliminados. Se utilizarán 0 B de espacio de disco adicional después de esta operación. Configurando selfhost-onion (0.1.5-3) ... Job for tor@default.service failed because the control process exited with error code. See "systemctl status tor@default.service" and "journalctl -xe" for details. dpkg: error al procesar el paquete selfhost-onion (--configure): el subproceso instalado paquete selfhost-onion script post-installation devolvió el código de salida de error 1 Configurando selfhost (0.1.5-3) ... nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful nginx: [emerg] invalid number of arguments in "server_name" directive in /etc/nginx/sites-enabled/onion.conf:3 nginx: configuration file /etc/nginx/nginx.conf test failed dpkg: error al procesar el paquete selfhost (--configure): el subproceso instalado paquete selfhost script post-installation devolvió el código de salida de error 1 Configurando selfhost-clearnet-certbot (0.1.5-4) ... An unexpected error occurred: Error creating new order :: Cannot issue for "btc-rpc-explorer": Domain name needs at least one dot Please see the logfiles in /var/log/letsencrypt for more details. dpkg: error al procesar el paquete selfhost-clearnet-certbot (--configure): el subproceso instalado paquete selfhost-clearnet-certbot script post-installation devolvió el código de salida de error 1 dpkg: problemas de dependencias impiden la configuración de btc-rpc-explorer-selfhost-mainnet: btc-rpc-explorer-selfhost-mainnet depende de selfhost (<< 0.2.0); sin embargo: El paquete selfhost' no está configurado todavía. btc-rpc-explorer-selfhost-mainnet depende de selfhost (>= 0.1.5); sin embargo: El paqueteselfhost' no está configurado todavía.

dpkg: error al procesar el paquete btc-rpc-explorer-selfhost-mainnet (--configure): problemas de dependencias - se deja sin configurar Procesando disparadores para nginx-full (1.14.2-2+deb10u3) ... Triggering nginx reload ... invoke-rc.d: policy-rc.d denied execution of reload. Se encontraron errores al procesar: selfhost-onion selfhost selfhost-clearnet-certbot btc-rpc-explorer-selfhost-mainnet E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks! :-D

Kixunil commented 4 years ago

Oh, the man page of aa-complain was confusing. This should work:

sudo LANG=en_US.UTF-8 aa-complain /etc/apparmor.d/system_tor
sudo LANG=en_US.UTF-8 apt install -f
aitorjs commented 4 years ago

sudo LANG=en_US.UTF-8 aa-complain /etc/apparmor.d/system_tor

pi@pi-pc:~$ sudo LANG=en_US.UTF-8 aa-complain /etc/apparmor.d/system_tor Setting /etc/apparmor.d/system_tor to complain mode.

sudo LANG=en_US.UTF-8 apt install -f

pi@pi-pc:~$ sudo LANG=en_US.UTF-8 apt install -f Reading package lists... Done Building dependency tree
Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 93 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up selfhost-onion (0.1.5-3) ... Setting up selfhost (0.1.5-3) ... nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Setting up selfhost-clearnet-certbot (0.1.5-4) ..................] An unexpected error occurred: Error creating new order :: Cannot issue for "btc-rpc-explorer": Domain name needs at least one dot Please see the logfiles in /var/log/letsencrypt for more details. dpkg: error processing package selfhost-clearnet-certbot (--configure): installed selfhost-clearnet-certbot package post-installation script subprocess returned error exit status 1 Setting up btc-rpc-explorer-selfhost-mainnet (2.0.2-4) ... Processing triggers for nginx-full (1.14.2-2+deb10u3) ... Triggering nginx reload ... invoke-rc.d: policy-rc.d denied execution of reload. Processing triggers for selfhost (0.1.5-3) ... nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Processing triggers for btc-rpc-explorer-mainnet (2.0.2-4) ... /usr/sbin/policy-rc.d returned 101, not running 'restart btc-rpc-explorer-mainnet' Processing triggers for nginx-full (1.14.2-2+deb10u3) ... Triggering nginx reload ... invoke-rc.d: policy-rc.d denied execution of reload. Errors were encountered while processing: selfhost-clearnet-certbot E: Sub-process /usr/bin/dpkg returned an error code (1)

Kixunil commented 4 years ago

So it seems Tor is "fixed" (temporary workaround).

To find the more appropriate solution please run sudo LANG=en_US.UTF-8 aa-logprof and answer each question with i (ignore, to not make any changes). Then post the output here and hopefully I'll be able to figure out a proper solution. - you don't have to, I successfully reproduced it on a clean Debian machine. Will try to fix it tomorrow and let you know.

You tried to install selfhost-clearnet without domain name. Either enter a valid domain name with dpkg-reconfigure selfhost-clearnet or remove the selfhost-clearnet package using sudo apt purge selfhost-clearnet (You will still be able to use Tor.)

aitorjs commented 4 years ago

First of all, thanks for all the help. Very thankful! :)

I want to access btc-rpc-explorer using tor so I delete selfthost-clearnet package. With sudo /usr/share/selfhost-onion/onion_domain.sh, I get the onion address and using tor browser I access that onion. I get nginx default page, not btc-rpc-explorer . It's almost ready :)

Kixunil commented 4 years ago

Yeah, you forgot to append /btc-rpc-explorer to the end of the address (http://blabla.onion/btc-rpc-explorer).

The password is stored in /etc/btc-rpc-explorer-mainnet/btc-rpc-explorer.conf

BTW, the fixed tor-hs-patch-config package is already out, so if you do sudo apt update && sudo apt upgrade you should be able to then switch back to aa-enforce /etc/apparmor.d/system_tor in order to improve the security of Tor. I'm working on other package fixes right now.

aitorjs commented 4 years ago

Yeah, you forgot to append /btc-rpc-explorer to the end of the address (http://blabla.onion/btc-rpc-explorer).

The password is stored in /etc/btc-rpc-explorer-mainnet/btc-rpc-explorer.conf

Perfect! :)

BTW, the fixed tor-hs-patch-config package is already out, so if you do sudo apt update && sudo apt upgrade you should be able to then switch back to aa-enforce /etc/apparmor.d/system_tor in order to improve the security of Tor. I'm working on other > package fixes right now.

So, with this change, to install btc-rpc-explorer on mainnet with 512 Mb of prune, installing btc-rpc-explorer is sufficient? What if I want to use testnet without prune and btc-rpc-explorer?

Thanks you very much! :)

Kixunil commented 4 years ago

Unfortunately, pruning and btc-rpc-explorer are mutually exclusive because it needs txindex=1. If you install btc-rpc-explorer pruning turns off automatically in the config (but there's still #97).

Testnet is currently not supported (out-of-the-box) and even regtest is not supported for btc-rpc-explorer due to https://github.com/janoside/btc-rpc-explorer/pull/207#discussion_r463989354

aitorjs commented 3 years ago

You are gonna kill me!

I try with sudo apt install btc-rpc-explorer inside a fresh debian buster installation using virtualbox and I get this error:

sudo apt update
Get:1 https://deb.ln-ask.me/beta buster InRelease [7,014 B]
Hit:2 http://deb.debian.org/debian buster InRelease                            
Get:3 https://packages.microsoft.com/debian/10/prod buster InRelease [29.8 kB] 
Get:4 https://deb.ln-ask.me/beta buster/common amd64 Packages [1,014 B]
Get:5 https://deb.ln-ask.me/beta buster/local amd64 Packages [13.1 kB]
Get:6 https://deb.ln-ask.me/beta buster/desktop amd64 Packages [800 B]
Get:7 https://packages.microsoft.com/debian/10/prod buster/main all Packages [556 B]
Get:8 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages [58.0 kB]
Get:9 https://packages.microsoft.com/debian/10/prod buster/main arm64 Packages [6,826 B]
Get:10 https://packages.microsoft.com/debian/10/prod buster/main armhf Packages [6,837 B]
Fetched 124 kB in 1s (102 kB/s)                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
user@debian:~$ sudo apt install btc-rpc-explorer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bitcoin-mainnet bitcoin-rpc-proxy bitcoin-rpc-proxy-mainnet bitcoin-timechain-mainnet bitcoin-txindex-mainnet bitcoind btc-rpc-explorer-mainnet btc-rpc-explorer-selfhost-mainnet libc-ares2
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnode64 libuv1 nginx nginx-common nginx-full nodejs nodejs-doc ruby-mustache selfhost selfhost-nginx selfhost-onion tor tor-geoipdb
  tor-hs-patch-config torsocks
Suggested packages:
  bitcoin-cli electrs-mainnet fcgiwrap nginx-doc npm mixmaster torbrowser-launcher socat tor-arm apparmor-utils obfs4proxy
The following NEW packages will be installed:
  bitcoin-mainnet bitcoin-rpc-proxy bitcoin-rpc-proxy-mainnet bitcoin-timechain-mainnet bitcoin-txindex-mainnet bitcoind btc-rpc-explorer btc-rpc-explorer-mainnet btc-rpc-explorer-selfhost-mainnet libc-ares2
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnode64 libuv1 nginx nginx-common nginx-full nodejs nodejs-doc ruby-mustache selfhost selfhost-nginx selfhost-onion tor tor-geoipdb
  tor-hs-patch-config torsocks
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.2 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-txindex-mainnet all 0.20.0-6 [1,928 B]
Get:2 http://deb.debian.org/debian buster/main amd64 libc-ares2 amd64 1.14.0-1 [85.8 kB]
Get:3 https://deb.ln-ask.me/beta buster/local amd64 bitcoind amd64 0.20.0-6 [3,230 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 libuv1 amd64 1.24.1-1 [110 kB]
Get:5 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-mainnet all 0.20.0-6 [3,620 B]
Get:6 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-rpc-proxy amd64 0.1.1-1 [648 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 libnode64 amd64 10.21.0~dfsg-1~deb10u1 [5,629 kB]
Get:8 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-rpc-proxy-mainnet all 0.1.1-1 [3,172 B]
Get:9 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-timechain-mainnet all 0.1.1-1 [2,176 B]
Get:10 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer all 2.0.2-4 [8,339 kB]
Get:11 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer-mainnet all 2.0.2-4 [5,856 B]
Get:12 https://deb.ln-ask.me/beta buster/local amd64 tor-hs-patch-config all 1.1-6 [2,264 B]
Get:13 https://deb.ln-ask.me/beta buster/local amd64 selfhost-onion all 0.1.5-3 [2,804 B]
Get:14 https://deb.ln-ask.me/beta buster/local amd64 selfhost-nginx all 0.1.5-3 [3,340 B]
Get:15 https://deb.ln-ask.me/beta buster/local amd64 selfhost all 0.1.5-3 [2,488 B]
Get:16 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer-selfhost-mainnet all 2.0.2-4 [4,576 B]
Get:17 http://deb.debian.org/debian buster/main amd64 nodejs amd64 10.21.0~dfsg-1~deb10u1 [87.0 kB]                                                                                                               
Get:18 http://deb.debian.org/debian buster/main amd64 tor amd64 0.3.5.10-1 [1,798 kB]                                                                                                                             
Get:19 http://deb.debian.org/debian buster/main amd64 nginx-common all 1.14.2-2+deb10u2 [120 kB]                                                                                                                  
Get:20 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-auth-pam amd64 1.14.2-2+deb10u2 [92.6 kB]                                                                                                 
Get:21 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-dav-ext amd64 1.14.2-2+deb10u2 [100 kB]                                                                                                   
Get:22 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-echo amd64 1.14.2-2+deb10u2 [104 kB]                                                                                                      
Get:23 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-geoip amd64 1.14.2-2+deb10u2 [93.9 kB]                                                                                                    
Get:24 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-image-filter amd64 1.14.2-2+deb10u2 [97.5 kB]                                                                                             
Get:25 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-subs-filter amd64 1.14.2-2+deb10u2 [95.7 kB]                                                                                              
Get:26 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-upstream-fair amd64 1.14.2-2+deb10u2 [95.8 kB]                                                                                            
Get:27 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.2-2+deb10u2 [95.7 kB]                                                                                              
Get:28 http://deb.debian.org/debian buster/main amd64 libnginx-mod-mail amd64 1.14.2-2+deb10u2 [126 kB]                                                                                                           
Get:29 http://deb.debian.org/debian buster/main amd64 libnginx-mod-stream amd64 1.14.2-2+deb10u2 [147 kB]                                                                                                         
Get:30 http://deb.debian.org/debian buster/main amd64 nginx-full amd64 1.14.2-2+deb10u2 [501 kB]                                                                                                                  
Get:31 http://deb.debian.org/debian buster/main amd64 nginx all 1.14.2-2+deb10u2 [88.3 kB]                                                                                                                        
Get:32 http://deb.debian.org/debian buster/main amd64 ruby-mustache all 1.0.2-1 [25.1 kB]                                                                                                                         
Get:33 http://deb.debian.org/debian buster/main amd64 nodejs-doc all 10.21.0~dfsg-1~deb10u1 [973 kB]                                                                                                              
Get:34 http://deb.debian.org/debian buster/main amd64 tor-geoipdb all 0.3.5.10-1 [1,442 kB]                                                                                                                       
Get:35 http://deb.debian.org/debian buster/main amd64 torsocks amd64 2.3.0-2 [76.0 kB]                                                                                                                            
Fetched 24.2 MB in 46s (529 kB/s)                                                                                                                                                                                 
Extracting templates from packages: 100%
Preconfiguring packages ...
/tmp/bitcoin-mainnet.config.NU0tNa: line 5: /etc/bitcoin-mainnet/chain_mode: No such file or directory
/tmp/bitcoin-mainnet.config.NU0tNa: line 6: test: : integer expression expected
expr: syntax error: unexpected argument ‘1000’
expr: syntax error: unexpected argument ‘0’
/tmp/bitcoin-mainnet.config.NU0tNa: line 10: test: : integer expression expected
Selecting previously unselected package bitcoin-txindex-mainnet.
(Reading database ... 273689 files and directories currently installed.)
Preparing to unpack .../00-bitcoin-txindex-mainnet_0.20.0-6_all.deb ...
Unpacking bitcoin-txindex-mainnet (0.20.0-6) ...
Selecting previously unselected package bitcoind.
Preparing to unpack .../01-bitcoind_0.20.0-6_amd64.deb ...
Unpacking bitcoind (0.20.0-6) ...
Selecting previously unselected package bitcoin-mainnet.
Preparing to unpack .../02-bitcoin-mainnet_0.20.0-6_all.deb ...
Unpacking bitcoin-mainnet (0.20.0-6) ...
Selecting previously unselected package bitcoin-rpc-proxy.
Preparing to unpack .../03-bitcoin-rpc-proxy_0.1.1-1_amd64.deb ...
Unpacking bitcoin-rpc-proxy (0.1.1-1) ...
Selecting previously unselected package bitcoin-rpc-proxy-mainnet.
Preparing to unpack .../04-bitcoin-rpc-proxy-mainnet_0.1.1-1_all.deb ...
Unpacking bitcoin-rpc-proxy-mainnet (0.1.1-1) ...
Selecting previously unselected package bitcoin-timechain-mainnet.
Preparing to unpack .../05-bitcoin-timechain-mainnet_0.1.1-1_all.deb ...
Unpacking bitcoin-timechain-mainnet (0.1.1-1) ...
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack .../06-libc-ares2_1.14.0-1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.14.0-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../07-libuv1_1.24.1-1_amd64.deb ...
Unpacking libuv1:amd64 (1.24.1-1) ...
Selecting previously unselected package libnode64:amd64.
Preparing to unpack .../08-libnode64_10.21.0~dfsg-1~deb10u1_amd64.deb ...
Unpacking libnode64:amd64 (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../09-nodejs_10.21.0~dfsg-1~deb10u1_amd64.deb ...
Unpacking nodejs (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package btc-rpc-explorer.
Preparing to unpack .../10-btc-rpc-explorer_2.0.2-4_all.deb ...
Unpacking btc-rpc-explorer (2.0.2-4) ...
Selecting previously unselected package btc-rpc-explorer-mainnet.
Preparing to unpack .../11-btc-rpc-explorer-mainnet_2.0.2-4_all.deb ...
Unpacking btc-rpc-explorer-mainnet (2.0.2-4) ...
Selecting previously unselected package tor.
Preparing to unpack .../12-tor_0.3.5.10-1_amd64.deb ...
Unpacking tor (0.3.5.10-1) ...
Selecting previously unselected package tor-hs-patch-config.
Preparing to unpack .../13-tor-hs-patch-config_1.1-6_all.deb ...
Unpacking tor-hs-patch-config (1.1-6) ...
Selecting previously unselected package selfhost-onion.
Preparing to unpack .../14-selfhost-onion_0.1.5-3_all.deb ...
Unpacking selfhost-onion (0.1.5-3) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../15-nginx-common_1.14.2-2+deb10u2_all.deb ...
Unpacking nginx-common (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-auth-pam.
Preparing to unpack .../16-libnginx-mod-http-auth-pam_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-auth-pam (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-dav-ext.
Preparing to unpack .../17-libnginx-mod-http-dav-ext_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-dav-ext (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-echo.
Preparing to unpack .../18-libnginx-mod-http-echo_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-echo (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-geoip.
Preparing to unpack .../19-libnginx-mod-http-geoip_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack .../20-libnginx-mod-http-image-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-subs-filter.
Preparing to unpack .../21-libnginx-mod-http-subs-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-subs-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-upstream-fair.
Preparing to unpack .../22-libnginx-mod-http-upstream-fair_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-upstream-fair (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack .../23-libnginx-mod-http-xslt-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../24-libnginx-mod-mail_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-mail (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../25-libnginx-mod-stream_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-stream (1.14.2-2+deb10u2) ...
Selecting previously unselected package nginx-full.
Preparing to unpack .../26-nginx-full_1.14.2-2+deb10u2_amd64.deb ...
Unpacking nginx-full (1.14.2-2+deb10u2) ...
Selecting previously unselected package nginx.
Preparing to unpack .../27-nginx_1.14.2-2+deb10u2_all.deb ...
Unpacking nginx (1.14.2-2+deb10u2) ...
Selecting previously unselected package ruby-mustache.
Preparing to unpack .../28-ruby-mustache_1.0.2-1_all.deb ...
Unpacking ruby-mustache (1.0.2-1) ...
Selecting previously unselected package selfhost-nginx.
Preparing to unpack .../29-selfhost-nginx_0.1.5-3_all.deb ...
Unpacking selfhost-nginx (0.1.5-3) ...
Selecting previously unselected package selfhost.
Preparing to unpack .../30-selfhost_0.1.5-3_all.deb ...
Unpacking selfhost (0.1.5-3) ...
Selecting previously unselected package btc-rpc-explorer-selfhost-mainnet.
Preparing to unpack .../31-btc-rpc-explorer-selfhost-mainnet_2.0.2-4_all.deb ...
Unpacking btc-rpc-explorer-selfhost-mainnet (2.0.2-4) ...
Selecting previously unselected package nodejs-doc.
Preparing to unpack .../32-nodejs-doc_10.21.0~dfsg-1~deb10u1_all.deb ...
Unpacking nodejs-doc (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package tor-geoipdb.
Preparing to unpack .../33-tor-geoipdb_0.3.5.10-1_all.deb ...
Unpacking tor-geoipdb (0.3.5.10-1) ...
Selecting previously unselected package torsocks.
Preparing to unpack .../34-torsocks_2.3.0-2_amd64.deb ...
Unpacking torsocks (2.3.0-2) ...
Setting up nginx-common (1.14.2-2+deb10u2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
Setting up libc-ares2:amd64 (1.14.0-1) ...
Setting up bitcoin-rpc-proxy (0.1.1-1) ...
Setting up bitcoind (0.20.0-6) ...
Setting up libnginx-mod-http-xslt-filter (1.14.2-2+deb10u2) ...
Setting up bitcoin-txindex-mainnet (0.20.0-6) ...
Setting up libuv1:amd64 (1.24.1-1) ...
Setting up libnginx-mod-http-auth-pam (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-geoip (1.14.2-2+deb10u2) ...
Setting up libnode64:amd64 (10.21.0~dfsg-1~deb10u1) ...
Setting up bitcoin-mainnet (0.20.0-6) ...
Created symlink /etc/systemd/system/multi-user.target.wants/bitcoin-mainnet.service → /lib/systemd/system/bitcoin-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start bitcoin-mainnet.service'
Setting up bitcoin-timechain-mainnet (0.1.1-1) ...
Setting up nodejs-doc (10.21.0~dfsg-1~deb10u1) ...
Setting up libnginx-mod-http-echo (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-subs-filter (1.14.2-2+deb10u2) ...
Setting up tor (0.3.5.10-1) ...
Something or somebody made /var/lib/tor disappear.
Creating one for you again.
Something or somebody made /var/log/tor disappear.
Creating one for you again.
Created symlink /etc/systemd/system/multi-user.target.wants/tor.service → /lib/systemd/system/tor.service.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up ruby-mustache (1.0.2-1) ...
Setting up torsocks (2.3.0-2) ...
Setting up libnginx-mod-http-dav-ext (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-mail (1.14.2-2+deb10u2) ...
Setting up bitcoin-rpc-proxy-mainnet (0.1.1-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/bitcoin-rpc-proxy-mainnet.service → /lib/systemd/system/bitcoin-rpc-proxy-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start bitcoin-rpc-proxy-mainnet.service'
Setting up libnginx-mod-http-image-filter (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-stream (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-upstream-fair (1.14.2-2+deb10u2) ...
Setting up nginx-full (1.14.2-2+deb10u2) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up nodejs (10.21.0~dfsg-1~deb10u1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Setting up tor-geoipdb (0.3.5.10-1) ...
Setting up selfhost-nginx (0.1.5-3) ...
Setting up tor-hs-patch-config (1.1-6) ...
Adding 'diversion of /etc/apparmor.d/local/system_tor to /etc/apparmor.d/local/system_tor.distrib by tor-hs-patch-config'
patching file /etc/apparmor.d/local/system_tor (read from /etc/apparmor.d/local/system_tor.distrib)
Adding 'diversion of /usr/share/tor/tor-service-defaults-torrc to /usr/share/tor/tor-service-defaults-torrc.distrib by tor-hs-patch-config'
patching file /usr/share/tor/tor-service-defaults-torrc (read from /usr/share/tor/tor-service-defaults-torrc.distrib)
apparmor.service is not active, cannot reload.
dpkg: error processing package tor-hs-patch-config (--configure):
 installed tor-hs-patch-config package post-installation script subprocess returned error exit status 1
Setting up btc-rpc-explorer (2.0.2-4) ...
Setting up nginx (1.14.2-2+deb10u2) ...
dpkg: dependency problems prevent configuration of selfhost-onion:
 selfhost-onion depends on tor-hs-patch-config; however:
  Package tor-hs-patch-config is not configured yet.

dpkg: error processing package selfhost-onion (--configure):
 dependency problems - leaving unconfigured
Setting up btc-rpc-explorer-mainnet (2.0.2-4) ...
Created symlink /etc/systemd/system/multi-user.target.wants/btc-rpc-explorer-mainnet.service → /lib/systemd/system/btc-rpc-explorer-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start btc-rpc-explorer-mainnet.service'
dpkg: dependency problems prevent configuration of selfhost:
 selfhost depends on default-selfhost-domain (<< 2.0) | selfhost-domain (<< 2.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.
 selfhost depends on default-selfhost-domain (>= 1.0) | selfhost-domain (>= 1.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.

dpkg: error processing package selfhost (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of btc-rpc-explorer-selfhost-mainnet:
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (<< 0.2.0); however:
  Package selfhost is not configured yet.
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (>= 0.1.5); however:
  Package selfhost is not configured yet.

dpkg: error processing package btc-rpc-explorer-selfhost-mainnet (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 tor-hs-patch-config
 selfhost-onion
 selfhost
 btc-rpc-explorer-selfhost-mainnet
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tor and bitcoin services are off.

¿What could be the problem?

Thank you very much! :)

Kixunil commented 3 years ago

That's strange, I know what's the issue, but I'm not sure what's the proper fix. I can try something reasonable, but not sure if it'll work.

Kixunil commented 3 years ago

I tried to improve the condition a little, could you retry now?

aitorjs commented 3 years ago

I retryed it and this I what I geted:

user@debian:~$ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 3D9E81D3CA76CDCBE768C4B4DC6B4F8E60B8CF4C
gpg: keybox '/home/user/.gnupg/pubring.kbx' created
gpg: /home/user/.gnupg/trustdb.gpg: trustdb created
gpg: key DC6B4F8E60B8CF4C: public key "Martin Habovstiak (Beta software releases) <martin.habovstiak@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
user@debian:~$ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF
gpg: key EB3E94ADBE1229CF: public key "Microsoft (Release signing) <gpgsecurity@microsoft.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
user@debian:~$ gpg --export 3D9E81D3CA76CDCBE768C4B4DC6B4F8E60B8CF4C | sudo apt-key add -
OK
user@debian:~$ gpg --export BC528686B50D79E339D3721CEB3E94ADBE1229CF | sudo apt-key add -
OK
user@debian:~$ echo 'deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/10/prod buster main' | sudo tee /etc/apt/sources.list.d/microsoft.list > /dev/null
user@debian:~$ echo 'deb https://deb.ln-ask.me/beta buster common local desktop' | sudo tee /etc/apt/sources.list.d/cryptoanarchy.list > /dev/null
user@debian:~$ sudo apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Get:2 https://packages.microsoft.com/debian/10/prod buster InRelease [29.8 kB] 
Get:3 https://deb.ln-ask.me/beta buster InRelease [7,014 B]        
Get:4 https://packages.microsoft.com/debian/10/prod buster/main all Packages [556 B]
Get:5 https://packages.microsoft.com/debian/10/prod buster/main arm64 Packages [6,826 B]
Get:6 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages [58.0 kB]
Get:7 https://packages.microsoft.com/debian/10/prod buster/main armhf Packages [6,837 B]
Get:8 https://deb.ln-ask.me/beta buster/common amd64 Packages [1,014 B]
Get:9 https://deb.ln-ask.me/beta buster/local amd64 Packages [13.2 kB]
Get:10 https://deb.ln-ask.me/beta buster/desktop amd64 Packages [800 B]
Fetched 124 kB in 1s (133 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
user@debian:~$ sudo apt install btc-rpc-explorer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bitcoin-mainnet bitcoin-rpc-proxy bitcoin-rpc-proxy-mainnet
  bitcoin-timechain-mainnet bitcoin-txindex-mainnet bitcoind
  btc-rpc-explorer-mainnet btc-rpc-explorer-selfhost-mainnet libc-ares2
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-geoip libnginx-mod-http-image-filter
  libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
  libnode64 libuv1 nginx nginx-common nginx-full nodejs nodejs-doc
  ruby-mustache selfhost selfhost-nginx selfhost-onion tor tor-geoipdb
  tor-hs-patch-config torsocks
Suggested packages:
  bitcoin-cli electrs-mainnet fcgiwrap nginx-doc npm mixmaster
  torbrowser-launcher socat tor-arm apparmor-utils obfs4proxy
The following NEW packages will be installed:
  bitcoin-mainnet bitcoin-rpc-proxy bitcoin-rpc-proxy-mainnet
  bitcoin-timechain-mainnet bitcoin-txindex-mainnet bitcoind btc-rpc-explorer
  btc-rpc-explorer-mainnet btc-rpc-explorer-selfhost-mainnet libc-ares2
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-geoip libnginx-mod-http-image-filter
  libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
  libnode64 libuv1 nginx nginx-common nginx-full nodejs nodejs-doc
  ruby-mustache selfhost selfhost-nginx selfhost-onion tor tor-geoipdb
  tor-hs-patch-config torsocks
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.2 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-txindex-mainnet all 0.20.0-6 [1,928 B]
Get:2 http://deb.debian.org/debian buster/main amd64 libc-ares2 amd64 1.14.0-1 [85.8 kB]
Get:3 https://deb.ln-ask.me/beta buster/local amd64 bitcoind amd64 0.20.0-6 [3,230 kB]
Get:4 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-mainnet all 0.20.0-7 [3,656 B]
Get:5 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-rpc-proxy amd64 0.1.1-1 [648 kB]
Get:6 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-rpc-proxy-mainnet all 0.1.1-2 [3,212 B]
Get:7 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-timechain-mainnet all 0.1.1-1 [2,176 B]
Get:8 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer all 2.0.2-4 [8,339 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libuv1 amd64 1.24.1-1 [110 kB]
Get:10 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer-mainnet all 2.0.2-5 [5,896 B]
Get:11 https://deb.ln-ask.me/beta buster/local amd64 tor-hs-patch-config all 1.1-7 [2,316 B]
Get:12 https://deb.ln-ask.me/beta buster/local amd64 selfhost-onion all 0.1.5-3 [2,804 B]
Get:13 https://deb.ln-ask.me/beta buster/local amd64 selfhost-nginx all 0.1.5-5 [3,400 B]
Get:14 https://deb.ln-ask.me/beta buster/local amd64 selfhost all 0.1.5-3 [2,488 B]
Get:15 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer-selfhost-mainnet all 2.0.2-4 [4,576 B]
Get:16 http://deb.debian.org/debian buster/main amd64 libnode64 amd64 10.21.0~dfsg-1~deb10u1 [5,629 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 nodejs amd64 10.21.0~dfsg-1~deb10u1 [87.0 kB]                                                                                                               
Get:18 http://deb.debian.org/debian buster/main amd64 tor amd64 0.3.5.10-1 [1,798 kB]                                                                                                                             
Get:19 http://deb.debian.org/debian buster/main amd64 nginx-common all 1.14.2-2+deb10u2 [120 kB]                                                                                                                  
Get:20 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-auth-pam amd64 1.14.2-2+deb10u2 [92.6 kB]                                                                                                 
Get:21 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-dav-ext amd64 1.14.2-2+deb10u2 [100 kB]                                                                                                   
Get:22 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-echo amd64 1.14.2-2+deb10u2 [104 kB]                                                                                                      
Get:23 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-geoip amd64 1.14.2-2+deb10u2 [93.9 kB]                                                                                                    
Get:24 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-image-filter amd64 1.14.2-2+deb10u2 [97.5 kB]                                                                                             
Get:25 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-subs-filter amd64 1.14.2-2+deb10u2 [95.7 kB]                                                                                              
Get:26 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-upstream-fair amd64 1.14.2-2+deb10u2 [95.8 kB]                                                                                            
Get:27 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.2-2+deb10u2 [95.7 kB]                                                                                              
Get:28 http://deb.debian.org/debian buster/main amd64 libnginx-mod-mail amd64 1.14.2-2+deb10u2 [126 kB]                                                                                                           
Get:29 http://deb.debian.org/debian buster/main amd64 libnginx-mod-stream amd64 1.14.2-2+deb10u2 [147 kB]                                                                                                         
Get:30 http://deb.debian.org/debian buster/main amd64 nginx-full amd64 1.14.2-2+deb10u2 [501 kB]                                                                                                                  
Get:31 http://deb.debian.org/debian buster/main amd64 nginx all 1.14.2-2+deb10u2 [88.3 kB]                                                                                                                        
Get:32 http://deb.debian.org/debian buster/main amd64 ruby-mustache all 1.0.2-1 [25.1 kB]                                                                                                                         
Get:33 http://deb.debian.org/debian buster/main amd64 nodejs-doc all 10.21.0~dfsg-1~deb10u1 [973 kB]                                                                                                              
Get:34 http://deb.debian.org/debian buster/main amd64 tor-geoipdb all 0.3.5.10-1 [1,442 kB]                                                                                                                       
Get:35 http://deb.debian.org/debian buster/main amd64 torsocks amd64 2.3.0-2 [76.0 kB]                                                                                                                            
Fetched 24.2 MB in 1min 17s (314 kB/s)                                                                                                                                                                            
Extracting templates from packages: 100%
Preconfiguring packages ...
/tmp/bitcoin-mainnet.config.q34SNB: line 5: /etc/bitcoin-mainnet/chain_mode: No such file or directory
/tmp/bitcoin-mainnet.config.q34SNB: line 6: test: : integer expression expected
expr: syntax error: unexpected argument ‘1000’
expr: syntax error: unexpected argument ‘0’
/tmp/bitcoin-mainnet.config.q34SNB: line 10: test: : integer expression expected
Selecting previously unselected package bitcoin-txindex-mainnet.
(Reading database ... 273689 files and directories currently installed.)
Preparing to unpack .../00-bitcoin-txindex-mainnet_0.20.0-6_all.deb ...
Unpacking bitcoin-txindex-mainnet (0.20.0-6) ...
Selecting previously unselected package bitcoind.
Preparing to unpack .../01-bitcoind_0.20.0-6_amd64.deb ...
Unpacking bitcoind (0.20.0-6) ...
Selecting previously unselected package bitcoin-mainnet.
Preparing to unpack .../02-bitcoin-mainnet_0.20.0-7_all.deb ...
Unpacking bitcoin-mainnet (0.20.0-7) ...
Selecting previously unselected package bitcoin-rpc-proxy.
Preparing to unpack .../03-bitcoin-rpc-proxy_0.1.1-1_amd64.deb ...
Unpacking bitcoin-rpc-proxy (0.1.1-1) ...
Selecting previously unselected package bitcoin-rpc-proxy-mainnet.
Preparing to unpack .../04-bitcoin-rpc-proxy-mainnet_0.1.1-2_all.deb ...
Unpacking bitcoin-rpc-proxy-mainnet (0.1.1-2) ...
Selecting previously unselected package bitcoin-timechain-mainnet.
Preparing to unpack .../05-bitcoin-timechain-mainnet_0.1.1-1_all.deb ...
Unpacking bitcoin-timechain-mainnet (0.1.1-1) ...
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack .../06-libc-ares2_1.14.0-1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.14.0-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../07-libuv1_1.24.1-1_amd64.deb ...
Unpacking libuv1:amd64 (1.24.1-1) ...
Selecting previously unselected package libnode64:amd64.
Preparing to unpack .../08-libnode64_10.21.0~dfsg-1~deb10u1_amd64.deb ...
Unpacking libnode64:amd64 (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../09-nodejs_10.21.0~dfsg-1~deb10u1_amd64.deb ...
Unpacking nodejs (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package btc-rpc-explorer.
Preparing to unpack .../10-btc-rpc-explorer_2.0.2-4_all.deb ...
Unpacking btc-rpc-explorer (2.0.2-4) ...
Selecting previously unselected package btc-rpc-explorer-mainnet.
Preparing to unpack .../11-btc-rpc-explorer-mainnet_2.0.2-5_all.deb ...
Unpacking btc-rpc-explorer-mainnet (2.0.2-5) ...
Selecting previously unselected package tor.
Preparing to unpack .../12-tor_0.3.5.10-1_amd64.deb ...
Unpacking tor (0.3.5.10-1) ...
Selecting previously unselected package tor-hs-patch-config.
Preparing to unpack .../13-tor-hs-patch-config_1.1-7_all.deb ...
Unpacking tor-hs-patch-config (1.1-7) ...
Selecting previously unselected package selfhost-onion.
Preparing to unpack .../14-selfhost-onion_0.1.5-3_all.deb ...
Unpacking selfhost-onion (0.1.5-3) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../15-nginx-common_1.14.2-2+deb10u2_all.deb ...
Unpacking nginx-common (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-auth-pam.
Preparing to unpack .../16-libnginx-mod-http-auth-pam_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-auth-pam (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-dav-ext.
Preparing to unpack .../17-libnginx-mod-http-dav-ext_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-dav-ext (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-echo.
Preparing to unpack .../18-libnginx-mod-http-echo_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-echo (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-geoip.
Preparing to unpack .../19-libnginx-mod-http-geoip_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack .../20-libnginx-mod-http-image-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-subs-filter.
Preparing to unpack .../21-libnginx-mod-http-subs-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-subs-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-upstream-fair.
Preparing to unpack .../22-libnginx-mod-http-upstream-fair_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-upstream-fair (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack .../23-libnginx-mod-http-xslt-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../24-libnginx-mod-mail_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-mail (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../25-libnginx-mod-stream_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-stream (1.14.2-2+deb10u2) ...
Selecting previously unselected package nginx-full.
Preparing to unpack .../26-nginx-full_1.14.2-2+deb10u2_amd64.deb ...
Unpacking nginx-full (1.14.2-2+deb10u2) ...
Selecting previously unselected package nginx.
Preparing to unpack .../27-nginx_1.14.2-2+deb10u2_all.deb ...
Unpacking nginx (1.14.2-2+deb10u2) ...
Selecting previously unselected package ruby-mustache.
Preparing to unpack .../28-ruby-mustache_1.0.2-1_all.deb ...
Unpacking ruby-mustache (1.0.2-1) ...
Selecting previously unselected package selfhost-nginx.
Preparing to unpack .../29-selfhost-nginx_0.1.5-5_all.deb ...
Unpacking selfhost-nginx (0.1.5-5) ...
Selecting previously unselected package selfhost.
Preparing to unpack .../30-selfhost_0.1.5-3_all.deb ...
Unpacking selfhost (0.1.5-3) ...
Selecting previously unselected package btc-rpc-explorer-selfhost-mainnet.
Preparing to unpack .../31-btc-rpc-explorer-selfhost-mainnet_2.0.2-4_all.deb ...
Unpacking btc-rpc-explorer-selfhost-mainnet (2.0.2-4) ...
Selecting previously unselected package nodejs-doc.
Preparing to unpack .../32-nodejs-doc_10.21.0~dfsg-1~deb10u1_all.deb ...
Unpacking nodejs-doc (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package tor-geoipdb.
Preparing to unpack .../33-tor-geoipdb_0.3.5.10-1_all.deb ...
Unpacking tor-geoipdb (0.3.5.10-1) ...
Selecting previously unselected package torsocks.
Preparing to unpack .../34-torsocks_2.3.0-2_amd64.deb ...
Unpacking torsocks (2.3.0-2) ...
Setting up nginx-common (1.14.2-2+deb10u2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
Setting up libc-ares2:amd64 (1.14.0-1) ...
Setting up bitcoin-rpc-proxy (0.1.1-1) ...
Setting up bitcoind (0.20.0-6) ...
Setting up libnginx-mod-http-xslt-filter (1.14.2-2+deb10u2) ...
Setting up bitcoin-txindex-mainnet (0.20.0-6) ...
Setting up libuv1:amd64 (1.24.1-1) ...
Setting up libnginx-mod-http-auth-pam (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-geoip (1.14.2-2+deb10u2) ...
Setting up libnode64:amd64 (10.21.0~dfsg-1~deb10u1) ...
Setting up bitcoin-mainnet (0.20.0-7) ...
Created symlink /etc/systemd/system/multi-user.target.wants/bitcoin-mainnet.service → /lib/systemd/system/bitcoin-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start bitcoin-mainnet.service'
Setting up bitcoin-timechain-mainnet (0.1.1-1) ...
Setting up nodejs-doc (10.21.0~dfsg-1~deb10u1) ...
Setting up libnginx-mod-http-echo (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-subs-filter (1.14.2-2+deb10u2) ...
Setting up tor (0.3.5.10-1) ...
Something or somebody made /var/lib/tor disappear.
Creating one for you again.
Something or somebody made /var/log/tor disappear.
Creating one for you again.
Created symlink /etc/systemd/system/multi-user.target.wants/tor.service → /lib/systemd/system/tor.service.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up ruby-mustache (1.0.2-1) ...
Setting up torsocks (2.3.0-2) ...
Setting up libnginx-mod-http-dav-ext (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-mail (1.14.2-2+deb10u2) ...
Setting up bitcoin-rpc-proxy-mainnet (0.1.1-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/bitcoin-rpc-proxy-mainnet.service → /lib/systemd/system/bitcoin-rpc-proxy-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start bitcoin-rpc-proxy-mainnet.service'
Setting up libnginx-mod-http-image-filter (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-stream (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-upstream-fair (1.14.2-2+deb10u2) ...
Setting up nginx-full (1.14.2-2+deb10u2) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up nodejs (10.21.0~dfsg-1~deb10u1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Setting up tor-geoipdb (0.3.5.10-1) ...
Setting up selfhost-nginx (0.1.5-5) ...
Setting up tor-hs-patch-config (1.1-7) ...
Adding 'diversion of /etc/apparmor.d/local/system_tor to /etc/apparmor.d/local/system_tor.distrib by tor-hs-patch-config'
patching file /etc/apparmor.d/local/system_tor (read from /etc/apparmor.d/local/system_tor.distrib)
Adding 'diversion of /usr/share/tor/tor-service-defaults-torrc to /usr/share/tor/tor-service-defaults-torrc.distrib by tor-hs-patch-config'
patching file /usr/share/tor/tor-service-defaults-torrc (read from /usr/share/tor/tor-service-defaults-torrc.distrib)
inactive
Setting up btc-rpc-explorer (2.0.2-4) ...
Setting up nginx (1.14.2-2+deb10u2) ...
Setting up selfhost-onion (0.1.5-3) ...
Job for tor@default.service failed because the control process exited with error code.
See "systemctl status tor@default.service" and "journalctl -xe" for details.
dpkg: error processing package selfhost-onion (--configure):
 installed selfhost-onion package post-installation script subprocess returned error exit status 1
Setting up btc-rpc-explorer-mainnet (2.0.2-5) ...
Created symlink /etc/systemd/system/multi-user.target.wants/btc-rpc-explorer-mainnet.service → /lib/systemd/system/btc-rpc-explorer-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start btc-rpc-explorer-mainnet.service'
dpkg: dependency problems prevent configuration of selfhost:
 selfhost depends on default-selfhost-domain (<< 2.0) | selfhost-domain (<< 2.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.
 selfhost depends on default-selfhost-domain (>= 1.0) | selfhost-domain (>= 1.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.

dpkg: error processing package selfhost (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of btc-rpc-explorer-selfhost-mainnet:
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (<< 0.2.0); however:
  Package selfhost is not configured yet.
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (>= 0.1.5); however:
  Package selfhost is not configured yet.

dpkg: error processing package btc-rpc-explorer-selfhost-mainnet (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 selfhost-onion
 selfhost
 btc-rpc-explorer-selfhost-mainnet
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tor service output:

● tor@default.service - Anonymizing overlay network for TCP
   Loaded: loaded (/lib/systemd/system/tor@default.service; enabled-runtime; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2020-09-19 15:11:43 UTC; 6min ago
  Process: 4525 ExecStartPre=/usr/bin/install -Z -m 02755 -o debian-tor -g debian-tor -d /run/tor (code=exited, status=0/SUCCESS)
  Process: 4526 ExecStartPre=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 --verify-config (code=exited, status=0/SUCCESS)
  Process: 4527 ExecStart=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 (code=exited, status=1/FAILURE)
 Main PID: 4527 (code=exited, status=1/FAILURE)

Sep 19 15:11:43 debian systemd[1]: tor@default.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 15:11:43 debian systemd[1]: tor@default.service: Failed with result 'exit-code'.
Sep 19 15:11:43 debian systemd[1]: Failed to start Anonymizing overlay network for TCP.
Sep 19 15:11:43 debian systemd[1]: tor@default.service: Service RestartSec=100ms expired, scheduling restart.
Sep 19 15:11:43 debian systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 8.
Sep 19 15:11:43 debian systemd[1]: Stopped Anonymizing overlay network for TCP.
Sep 19 15:11:43 debian systemd[1]: tor@default.service: Start request repeated too quickly.
Sep 19 15:11:43 debian systemd[1]: tor@default.service: Failed with result 'exit-code'.
Sep 19 15:11:43 debian systemd[1]: Failed to start Anonymizing overlay network for TCP.
~

Thank you very much! :)

Kixunil commented 3 years ago

Shit, it took me a while to find what's the problem. I know now but I will have to find out how to fix it. Until I do, you can run sudo dpkg --configure -a after failed installation to fix it.

Kixunil commented 3 years ago

Oh, it wasn't that hard, figured it out and released a fix. It should work now.

Thanks a lot for all the help with testing!

aitorjs commented 3 years ago

Oh, it wasn't that hard, figured it out and released a fix. It should work now.

I try with sudo apt install btc-rpc-explorer inside a fresh debian buster installation using virtualbox and I get this error:

sudo apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Get:2 https://packages.microsoft.com/debian/10/prod buster InRelease [29.8 kB] 
Get:3 https://deb.ln-ask.me/beta buster InRelease [7,014 B]                    
Get:4 https://packages.microsoft.com/debian/10/prod buster/main all Packages [973 B]
Get:5 https://packages.microsoft.com/debian/10/prod buster/main arm64 Packages [7,164 B]
Get:6 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages [58.3 kB]
Get:7 https://deb.ln-ask.me/beta buster/common amd64 Packages [1,014 B]
Get:8 https://packages.microsoft.com/debian/10/prod buster/main armhf Packages [7,154 B]
Get:9 https://deb.ln-ask.me/beta buster/local amd64 Packages [13.2 kB]
Get:10 https://deb.ln-ask.me/beta buster/desktop amd64 Packages [800 B]
Fetched 125 kB in 1s (149 kB/s)                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
user@debian:~$ sudo apt install btc-rpc-explorer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bitcoin-mainnet bitcoin-rpc-proxy bitcoin-rpc-proxy-mainnet
  bitcoin-timechain-mainnet bitcoin-txindex-mainnet bitcoind
  btc-rpc-explorer-mainnet btc-rpc-explorer-selfhost-mainnet libc-ares2
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-geoip libnginx-mod-http-image-filter
  libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
  libnode64 libuv1 nginx nginx-common nginx-full nodejs nodejs-doc
  ruby-mustache selfhost selfhost-nginx selfhost-onion tor tor-geoipdb
  tor-hs-patch-config torsocks
Suggested packages:
  bitcoin-cli electrs-mainnet fcgiwrap nginx-doc npm mixmaster
  torbrowser-launcher socat tor-arm apparmor-utils obfs4proxy
The following NEW packages will be installed:
  bitcoin-mainnet bitcoin-rpc-proxy bitcoin-rpc-proxy-mainnet
  bitcoin-timechain-mainnet bitcoin-txindex-mainnet bitcoind btc-rpc-explorer
  btc-rpc-explorer-mainnet btc-rpc-explorer-selfhost-mainnet libc-ares2
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-geoip libnginx-mod-http-image-filter
  libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
  libnode64 libuv1 nginx nginx-common nginx-full nodejs nodejs-doc
  ruby-mustache selfhost selfhost-nginx selfhost-onion tor tor-geoipdb
  tor-hs-patch-config torsocks
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.2 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian buster/main amd64 libc-ares2 amd64 1.14.0-1 [85.8 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libuv1 amd64 1.24.1-1 [110 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libnode64 amd64 10.21.0~dfsg-1~deb10u1 [5,629 kB]
Get:4 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-txindex-mainnet all 0.20.0-6 [1,928 B]
Get:5 https://deb.ln-ask.me/beta buster/local amd64 bitcoind amd64 0.20.0-6 [3,230 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 nodejs amd64 10.21.0~dfsg-1~deb10u1 [87.0 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 tor amd64 0.3.5.10-1 [1,798 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 nginx-common all 1.14.2-2+deb10u2 [120 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-auth-pam amd64 1.14.2-2+deb10u2 [92.6 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-dav-ext amd64 1.14.2-2+deb10u2 [100 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-echo amd64 1.14.2-2+deb10u2 [104 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-geoip amd64 1.14.2-2+deb10u2 [93.9 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-image-filter amd64 1.14.2-2+deb10u2 [97.5 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-subs-filter amd64 1.14.2-2+deb10u2 [95.7 kB]
Get:15 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-mainnet all 0.20.0-7 [3,656 B]
Get:16 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-rpc-proxy amd64 0.1.1-1 [648 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-upstream-fair amd64 1.14.2-2+deb10u2 [95.8 kB]
Get:18 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-rpc-proxy-mainnet all 0.1.1-2 [3,212 B]
Get:19 https://deb.ln-ask.me/beta buster/local amd64 bitcoin-timechain-mainnet all 0.1.1-1 [2,176 B]
Get:20 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer all 2.0.2-4 [8,339 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.2-2+deb10u2 [95.7 kB]
Get:22 http://deb.debian.org/debian buster/main amd64 libnginx-mod-mail amd64 1.14.2-2+deb10u2 [126 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 libnginx-mod-stream amd64 1.14.2-2+deb10u2 [147 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 nginx-full amd64 1.14.2-2+deb10u2 [501 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 nginx all 1.14.2-2+deb10u2 [88.3 kB]
Get:26 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer-mainnet all 2.0.2-5 [5,896 B]
Get:27 https://deb.ln-ask.me/beta buster/local amd64 tor-hs-patch-config all 1.1-7 [2,316 B]
Get:28 https://deb.ln-ask.me/beta buster/local amd64 selfhost-onion all 0.1.5-5 [2,964 B]
Get:29 https://deb.ln-ask.me/beta buster/local amd64 selfhost-nginx all 0.1.5-5 [3,400 B]
Get:30 https://deb.ln-ask.me/beta buster/local amd64 selfhost all 0.1.5-3 [2,488 B]
Get:31 https://deb.ln-ask.me/beta buster/local amd64 btc-rpc-explorer-selfhost-mainnet all 2.0.2-4 [4,576 B]
Get:32 http://deb.debian.org/debian buster/main amd64 ruby-mustache all 1.0.2-1 [25.1 kB]
Get:33 http://deb.debian.org/debian buster/main amd64 nodejs-doc all 10.21.0~dfsg-1~deb10u1 [973 kB]
Get:34 http://deb.debian.org/debian buster/main amd64 tor-geoipdb all 0.3.5.10-1 [1,442 kB]
Get:35 http://deb.debian.org/debian buster/main amd64 torsocks amd64 2.3.0-2 [76.0 kB]
Fetched 24.2 MB in 4s (6,200 kB/s)      
Extracting templates from packages: 100%
Preconfiguring packages ...
/tmp/bitcoin-mainnet.config.rTzVoJ: line 5: /etc/bitcoin-mainnet/chain_mode: No such file or directory
/tmp/bitcoin-mainnet.config.rTzVoJ: line 6: test: : integer expression expected
expr: syntax error: unexpected argument ‘1000’
expr: syntax error: unexpected argument ‘0’
/tmp/bitcoin-mainnet.config.rTzVoJ: line 10: test: : integer expression expected
Selecting previously unselected package bitcoin-txindex-mainnet.
(Reading database ... 273689 files and directories currently installed.)
Preparing to unpack .../00-bitcoin-txindex-mainnet_0.20.0-6_all.deb ...
Unpacking bitcoin-txindex-mainnet (0.20.0-6) ...
Selecting previously unselected package bitcoind.
Preparing to unpack .../01-bitcoind_0.20.0-6_amd64.deb ...
Unpacking bitcoind (0.20.0-6) ...
Selecting previously unselected package bitcoin-mainnet.
Preparing to unpack .../02-bitcoin-mainnet_0.20.0-7_all.deb ...
Unpacking bitcoin-mainnet (0.20.0-7) ...
Selecting previously unselected package bitcoin-rpc-proxy.
Preparing to unpack .../03-bitcoin-rpc-proxy_0.1.1-1_amd64.deb ...
Unpacking bitcoin-rpc-proxy (0.1.1-1) ...
Selecting previously unselected package bitcoin-rpc-proxy-mainnet.
Preparing to unpack .../04-bitcoin-rpc-proxy-mainnet_0.1.1-2_all.deb ...
Unpacking bitcoin-rpc-proxy-mainnet (0.1.1-2) ...
Selecting previously unselected package bitcoin-timechain-mainnet.
Preparing to unpack .../05-bitcoin-timechain-mainnet_0.1.1-1_all.deb ...
Unpacking bitcoin-timechain-mainnet (0.1.1-1) ...
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack .../06-libc-ares2_1.14.0-1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.14.0-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../07-libuv1_1.24.1-1_amd64.deb ...
Unpacking libuv1:amd64 (1.24.1-1) ...
Selecting previously unselected package libnode64:amd64.
Preparing to unpack .../08-libnode64_10.21.0~dfsg-1~deb10u1_amd64.deb ...
Unpacking libnode64:amd64 (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../09-nodejs_10.21.0~dfsg-1~deb10u1_amd64.deb ...
Unpacking nodejs (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package btc-rpc-explorer.
Preparing to unpack .../10-btc-rpc-explorer_2.0.2-4_all.deb ...
Unpacking btc-rpc-explorer (2.0.2-4) ...
Selecting previously unselected package btc-rpc-explorer-mainnet.
Preparing to unpack .../11-btc-rpc-explorer-mainnet_2.0.2-5_all.deb ...
Unpacking btc-rpc-explorer-mainnet (2.0.2-5) ...
Selecting previously unselected package tor.
Preparing to unpack .../12-tor_0.3.5.10-1_amd64.deb ...
Unpacking tor (0.3.5.10-1) ...
Selecting previously unselected package tor-hs-patch-config.
Preparing to unpack .../13-tor-hs-patch-config_1.1-7_all.deb ...
Unpacking tor-hs-patch-config (1.1-7) ...
Selecting previously unselected package selfhost-onion.
Preparing to unpack .../14-selfhost-onion_0.1.5-5_all.deb ...
Unpacking selfhost-onion (0.1.5-5) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../15-nginx-common_1.14.2-2+deb10u2_all.deb ...
Unpacking nginx-common (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-auth-pam.
Preparing to unpack .../16-libnginx-mod-http-auth-pam_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-auth-pam (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-dav-ext.
Preparing to unpack .../17-libnginx-mod-http-dav-ext_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-dav-ext (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-echo.
Preparing to unpack .../18-libnginx-mod-http-echo_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-echo (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-geoip.
Preparing to unpack .../19-libnginx-mod-http-geoip_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack .../20-libnginx-mod-http-image-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-subs-filter.
Preparing to unpack .../21-libnginx-mod-http-subs-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-subs-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-upstream-fair.
Preparing to unpack .../22-libnginx-mod-http-upstream-fair_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-upstream-fair (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack .../23-libnginx-mod-http-xslt-filter_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../24-libnginx-mod-mail_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-mail (1.14.2-2+deb10u2) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../25-libnginx-mod-stream_1.14.2-2+deb10u2_amd64.deb ...
Unpacking libnginx-mod-stream (1.14.2-2+deb10u2) ...
Selecting previously unselected package nginx-full.
Preparing to unpack .../26-nginx-full_1.14.2-2+deb10u2_amd64.deb ...
Unpacking nginx-full (1.14.2-2+deb10u2) ...
Selecting previously unselected package nginx.
Preparing to unpack .../27-nginx_1.14.2-2+deb10u2_all.deb ...
Unpacking nginx (1.14.2-2+deb10u2) ...
Selecting previously unselected package ruby-mustache.
Preparing to unpack .../28-ruby-mustache_1.0.2-1_all.deb ...
Unpacking ruby-mustache (1.0.2-1) ...
Selecting previously unselected package selfhost-nginx.
Preparing to unpack .../29-selfhost-nginx_0.1.5-5_all.deb ...
Unpacking selfhost-nginx (0.1.5-5) ...
Selecting previously unselected package selfhost.
Preparing to unpack .../30-selfhost_0.1.5-3_all.deb ...
Unpacking selfhost (0.1.5-3) ...
Selecting previously unselected package btc-rpc-explorer-selfhost-mainnet.
Preparing to unpack .../31-btc-rpc-explorer-selfhost-mainnet_2.0.2-4_all.deb ...
Unpacking btc-rpc-explorer-selfhost-mainnet (2.0.2-4) ...
Selecting previously unselected package nodejs-doc.
Preparing to unpack .../32-nodejs-doc_10.21.0~dfsg-1~deb10u1_all.deb ...
Unpacking nodejs-doc (10.21.0~dfsg-1~deb10u1) ...
Selecting previously unselected package tor-geoipdb.
Preparing to unpack .../33-tor-geoipdb_0.3.5.10-1_all.deb ...
Unpacking tor-geoipdb (0.3.5.10-1) ...
Selecting previously unselected package torsocks.
Preparing to unpack .../34-torsocks_2.3.0-2_amd64.deb ...
Unpacking torsocks (2.3.0-2) ...
Setting up nginx-common (1.14.2-2+deb10u2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
Setting up libc-ares2:amd64 (1.14.0-1) ...
Setting up bitcoin-rpc-proxy (0.1.1-1) ...
Setting up bitcoind (0.20.0-6) ...
Setting up libnginx-mod-http-xslt-filter (1.14.2-2+deb10u2) ...
Setting up bitcoin-txindex-mainnet (0.20.0-6) ...
Setting up libuv1:amd64 (1.24.1-1) ...
Setting up libnginx-mod-http-auth-pam (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-geoip (1.14.2-2+deb10u2) ...
Setting up libnode64:amd64 (10.21.0~dfsg-1~deb10u1) ...
Setting up bitcoin-mainnet (0.20.0-7) ...
Created symlink /etc/systemd/system/multi-user.target.wants/bitcoin-mainnet.service → /lib/systemd/system/bitcoin-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start bitcoin-mainnet.service'
Setting up bitcoin-timechain-mainnet (0.1.1-1) ...
Setting up nodejs-doc (10.21.0~dfsg-1~deb10u1) ...
Setting up libnginx-mod-http-echo (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-subs-filter (1.14.2-2+deb10u2) ...
Setting up tor (0.3.5.10-1) ...
Something or somebody made /var/lib/tor disappear.
Creating one for you again.
Something or somebody made /var/log/tor disappear.
Creating one for you again.
Created symlink /etc/systemd/system/multi-user.target.wants/tor.service → /lib/systemd/system/tor.service.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up ruby-mustache (1.0.2-1) ...
Setting up torsocks (2.3.0-2) ...
Setting up libnginx-mod-http-dav-ext (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-mail (1.14.2-2+deb10u2) ...
Setting up bitcoin-rpc-proxy-mainnet (0.1.1-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/bitcoin-rpc-proxy-mainnet.service → /lib/systemd/system/bitcoin-rpc-proxy-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start bitcoin-rpc-proxy-mainnet.service'
Setting up libnginx-mod-http-image-filter (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-stream (1.14.2-2+deb10u2) ...
Setting up libnginx-mod-http-upstream-fair (1.14.2-2+deb10u2) ...
Setting up nginx-full (1.14.2-2+deb10u2) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up nodejs (10.21.0~dfsg-1~deb10u1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Setting up tor-geoipdb (0.3.5.10-1) ...
Setting up selfhost-nginx (0.1.5-5) ...
Setting up tor-hs-patch-config (1.1-7) ...
Adding 'diversion of /etc/apparmor.d/local/system_tor to /etc/apparmor.d/local/system_tor.distrib by tor-hs-patch-config'
patching file /etc/apparmor.d/local/system_tor (read from /etc/apparmor.d/local/system_tor.distrib)
Adding 'diversion of /usr/share/tor/tor-service-defaults-torrc to /usr/share/tor/tor-service-defaults-torrc.distrib by tor-hs-patch-config'
patching file /usr/share/tor/tor-service-defaults-torrc (read from /usr/share/tor/tor-service-defaults-torrc.distrib)
inactive
Setting up btc-rpc-explorer (2.0.2-4) ...
Setting up nginx (1.14.2-2+deb10u2) ...
Setting up selfhost-onion (0.1.5-5) ...
Job for tor@default.service failed because the control process exited with error code.
See "systemctl status tor@default.service" and "journalctl -xe" for details.
dpkg: error processing package selfhost-onion (--configure):
 installed selfhost-onion package post-installation script subprocess returned error exit status 1
Setting up btc-rpc-explorer-mainnet (2.0.2-5) ...
Created symlink /etc/systemd/system/multi-user.target.wants/btc-rpc-explorer-mainnet.service → /lib/systemd/system/btc-rpc-explorer-mainnet.service.
/usr/sbin/policy-rc.d returned 101, not running 'start btc-rpc-explorer-mainnet.service'
dpkg: dependency problems prevent configuration of selfhost:
 selfhost depends on default-selfhost-domain (<< 2.0) | selfhost-domain (<< 2.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.
 selfhost depends on default-selfhost-domain (>= 1.0) | selfhost-domain (>= 1.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.

dpkg: error processing package selfhost (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of btc-rpc-explorer-selfhost-mainnet:
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (<< 0.2.0); however:
  Package selfhost is not configured yet.
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (>= 0.1.5); however:
  Package selfhost is not configured yet.

dpkg: error processing package btc-rpc-explorer-selfhost-mainnet (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 selfhost-onion
 selfhost
 btc-rpc-explorer-selfhost-mainnet
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then I try with but the problem stilli continues:

sudo dpkg --configure -a
Setting up selfhost-onion (0.1.5-5) ...
Job for tor@default.service failed because the control process exited with error code.
See "systemctl status tor@default.service" and "journalctl -xe" for details.
dpkg: error processing package selfhost-onion (--configure):
 installed selfhost-onion package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of selfhost:
 selfhost depends on default-selfhost-domain (<< 2.0) | selfhost-domain (<< 2.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.
 selfhost depends on default-selfhost-domain (>= 1.0) | selfhost-domain (>= 1.0); however:
  Package default-selfhost-domain is not installed.
  Package selfhost-onion which provides default-selfhost-domain is not configured yet.
  Package selfhost-domain is not installed.
  Package selfhost-onion which provides selfhost-domain is not configured yet.

dpkg: error processing package selfhost (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of btc-rpc-explorer-selfhost-mainnet:
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (<< 0.2.0); however:
  Package selfhost is not configured yet.
 btc-rpc-explorer-selfhost-mainnet depends on selfhost (>= 0.1.5); however:
  Package selfhost is not configured yet.

dpkg: error processing package btc-rpc-explorer-selfhost-mainnet (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 selfhost-onion
 selfhost
 btc-rpc-explorer-selfhost-mainnet
 sudo systemctl status tor@default
● tor@default.service - Anonymizing overlay network for TCP
   Loaded: loaded (/lib/systemd/system/tor@default.service; enabled-runtime; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2020-09-23 11:26:06 UTC; 6min ago
  Process: 4669 ExecStartPre=/usr/bin/install -Z -m 02755 -o debian-tor -g debian-tor -d /run/tor (code=e
  Process: 4670 ExecStartPre=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /
  Process: 4671 ExecStart=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc
 Main PID: 4671 (code=exited, status=1/FAILURE)

Sep 23 11:26:06 debian systemd[1]: tor@default.service: Main process exited, code=exited, status=1/FAILUR
Sep 23 11:26:06 debian systemd[1]: tor@default.service: Failed with result 'exit-code'.
Sep 23 11:26:06 debian systemd[1]: Failed to start Anonymizing overlay network for TCP.
Sep 23 11:26:06 debian systemd[1]: tor@default.service: Service RestartSec=100ms expired, scheduling rest
Sep 23 11:26:06 debian systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 5.
Sep 23 11:26:06 debian systemd[1]: Stopped Anonymizing overlay network for TCP.
Sep 23 11:26:06 debian systemd[1]: tor@default.service: Start request repeated too quickly.
Sep 23 11:26:06 debian systemd[1]: tor@default.service: Failed with result 'exit-code'.
Sep 23 11:26:06 debian systemd[1]: Failed to start Anonymizing overlay network for TCP.
Kixunil commented 3 years ago

What the hell?! It works for me. This crapparmor shit will kill me...

I will try to reproduce it more properly, could you post a link to the precise Debian image you used?

aitorjs commented 3 years ago

I will try to reproduce it more properly, could you post a link to the precise Debian image you used?

https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.5.0-amd64-cinnamon.iso

Kixunil commented 3 years ago

I didn't succeed at reproducing the problem. Maybe it was just a fluke? Could you try again? (Make extra sure to run apt update before installation.)

aitorjs commented 3 years ago

I have managed to install it. I think the problem was coming from use virtualbox directly from the iso without installing debian.

I installed it and without any problem! :)

Of couse, I made a video ;)

https://www.youtube.com/watch?v=vvfsVCtaxSA&list=PLocA6zRHOS_oQTDGbkkUtBppAR3d2jLln&index=3&t=0s

Thanks for all!

Kixunil commented 3 years ago

Awesome, happy to hear that!

FYI there are some issues with LND and BTCPay, the fix is being tested and should be out soon.