You are not logged in.
I already added nameservers in /etc/resolv.conf and wifi connection doesn't have any problem but whenever I search in firefox connection times out(proxy is off)
also I can't update pacman and core.db is missing so I can't download anything from pacman I added mirrors to /etc/pacman.d/mirrorlist but still packages can't be retrieved.
I'm sorry if it's very obvious what's the problem but I couldn't figure it out myself(this is my first experience with linux)
Last edited by sahar (2024-11-16 18:32:37)
Offline
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
ip a; ip r; ping -c1 8.8.8.8; ping -c1 google.com; dig google.com; dig @8.8.8.8 google.com
and also
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
Offline
is this a public wifi you connect to? if so you're likely blocked by a captive portal you first have to agree to before you will get access granted to the internet
check with your phone - it should be correctly caught by the captive portal - or use your phone to tether its connection
Last edited by cryptearth (2024-11-16 12:36:02)
Offline
whenever I search in firefox connection times out
That'd be a rather shitty captive portal?
Offline
thanks for replying
ip a; ip r; ping -c1 8.8.8.8; ping -c1 google.com; dig google.com; dig @8.8.8.8 google.com
https://ibb.co/LgsBWtx
and for
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
Last edited by sahar (2024-11-16 15:50:30)
Offline
You've a wlan carrier, lease and route and can resolve and ping google.com fine.
Your internet works™ at this point although it seems you've wpa_supplicant.service enabled (which will provide a carrier) but nothing to obtain a lease (systemd-networkd, dhcpcd, …)
Let's start this simple
pacman -S cmatrix
though you can probably upload this:
pacman -v --debug -S cmatrix 2>&1 | tee /tmp/cmatrix.log
cat /tmp/cmatrix.log | curl -F 'file=@-' 0x0.st
Offline
problem is as I mentioned I can't download anything from pacman, I have tried adding new mirrors but still it times out.
I tried adding core.db with curl but even that didn't work
Offline
What?
I want to see the output of pacman, the second block of command isn't anything to add anywhere but will ideally upload the pacman output to 0x0.st and hand you a URL.
Offline
sorry for bad quality of images
https://ibb.co/kgmr5gL
I thought problem is from pacman's cache so I cleared it to then update it with pacman -Sy but it's not possible as you see
Offline
ping -c1 london.mirror.pkgbuild.com
ping -c1 185.73.44.89
curl -Lv https://london.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz > /dev/null
Offline
I'm still on that captive portal route: what happen when you brows to 192.168.100.1 in your browser?
Offline
Offline
That's a lowercase "v" in "curl -Lv"
Offline
I'm still on that captive portal route: what happen when you brows to 192.168.100.1 in your browser?
nothing
Offline
That's a lowercase "v" in "curl -Lv"
really sorry
https://ibb.co/WcndvQn
Offline
Compare
date
with the date on your watch/smartphone/wall/…
Is there potentially anywhere a VPN in the mix (you're not running such service)
Do http (no httpS) mirrors work?
Offline
yes I've already adjusted date
no there isn't any vpn
none of the mirrors worked...
Offline
There's a clock on the top of the screenshot, if it's correct you're living in Iran?
http://mirror.arvancloud.ir/archlinux/
http://repo.iut.ac.ir/repo/archlinux/
curl -Lv http://repo.iut.ac.ir/repo/archlinux/core/os/x86_64/core.db.tar.gz > /dev/null
Offline
yes I do I already tried these mirrors
Offline
And what's the output when trying to curl this?
What is the internet connection? Public? Private? Campus?
Offline
curl: (56) Recv failure: Connection reset by peer
it's private
Offline
It's workingggggggg I'm curious to know what was the actual problem
Reallyyyyyyyyyyyyyy thank you
Offline
Idk - you had a connection but the actual communication to the peer failed at some point.
If it's not an ssl issue you might have been facing a flaky connection that was not detectable by short tests but failed during "longer" connections or packages got corrupted somewhere inbetween (I asked for the VPN because the overhead typically gets you into MTU issues)
The problem might return as sudden as it disappeared…
Offline