Bug description
On Arch Linux having blackarch repository implemented, when I use (sometimes) my mobile connection on a specific computer with VMware hosting this Arch Linux, and execute sudo pacman -Sy
I get the following error:
:: Synchronizing package databases...
core downloading...
extra downloading...
community downloading...
multilib downloading...
chaotic-aur downloading...
blackarch downloading...
athena-repository downloading...
error: failed retrieving file 'blackarch.db' from www.blackarch.org : OpenSSL SSL_read: Connection reset by peer, errno 104
error: failed to synchronize all databases (unexpected error)
I was aware also another set of users have this kind of issue by their home network.
If I use my home network instead of my mobile network, it works correctly.
Another clearer way to trigger this issue is to run BlackArch strap.sh script. If I run it on my mobile network, I get the following print:
You don't have an Internet connection!
This error is triggered inside the check_internet()
function. And in this case, if you visit https://blackarch.org web site (I used Mozilla Firefox as browser), you will get an error containing:
So, could be that from some IPs (not VPN, not TOR, but normal Internet connections), some ISP or BlackArch itself refuse the connections/IP addresses? Or the issue has another cause?
I'm starting to think if it could be related also due to the computer used instead of the connection itself since the mobile connection works on blackarch.org on a different machine.
Steps to reproduce
First method
- connect by a mobile connection from a VMware machine (try more than one if the first one does not reproduce the error)
- run
sudo pacman -Sy
- You will get the error
- Try also to visit https://blackarch.org website for getting an error on the browser side
Second method
- connect by a mobile connection from a VMware machine (try more than one if the first one does not reproduce the error)
- run strap.sh script
- You will get "You don't have an Internet connection!" message
- Try also to visit https://blackarch.org website for getting an error on the browser side
Actual result: Describe here what happens after you run the steps above (i.e. the buggy behaviour)
By using the First Method, on the terminal we get:
error: failed retrieving file 'blackarch.db' from www.blackarch.org : OpenSSL SSL_read: Connection reset by peer, errno 104
By using the Second Method, the result of strap.sh
script is:
You don't have an Internet connection!
On both of the scenarios, if you visit https://blackarch.org website by the browser, I get this error:
I noted that not always this happen if I use the same mobile connection... Since the IP is assigned dynamically, could be that IP address could be blacklisted for some reason by BlackArch?
Expected result: Describe here what should happen after you run the steps above (i.e. what would be the correct behaviour)
sudo pacman -Sy
command is run correctly with no error messages from BlackArch side.
Info for developers
GNU/Linux distribution: Arch Linux, kernel: 5.19.4-arch1-1