You are not logged in.

#1 2024-11-16 09:17:46

sahar
Member
Registered: 2024-11-13
Posts: 14

[SOLVED] connected to wifi but can't search anything in any browser

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

#2 2024-11-16 09:48:59

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#3 2024-11-16 12:35:01

cryptearth
Member
Registered: 2024-02-03
Posts: 1,010

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#4 2024-11-16 14:50:20

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

The OP wrote:

whenever I search in firefox connection times out

That'd be a rather shitty captive portal?

Offline

#5 2024-11-16 15:48:20

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

thanks for replying

seth wrote:
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

https://ibb.co/2MHHPHh

Last edited by sahar (2024-11-16 15:50:30)

Offline

#6 2024-11-16 15:55:33

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#7 2024-11-16 16:02:35

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#8 2024-11-16 16:07:57

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#9 2024-11-16 16:19:01

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#10 2024-11-16 16:26:29

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#11 2024-11-16 16:28:53

cryptearth
Member
Registered: 2024-02-03
Posts: 1,010

Re: [SOLVED] connected to wifi but can't search anything in any browser

I'm still on that captive portal route: what happen when you brows to 192.168.100.1 in your browser?

Offline

#12 2024-11-16 16:38:40

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

Offline

#13 2024-11-16 16:41:10

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

That's a lowercase "v" in "curl -Lv"

Offline

#14 2024-11-16 16:42:43

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

cryptearth wrote:

I'm still on that captive portal route: what happen when you brows to 192.168.100.1 in your browser?

nothing

Offline

#15 2024-11-16 16:52:54

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

seth wrote:

That's a lowercase "v" in "curl -Lv"

really sorry
https://ibb.co/WcndvQn

Offline

#16 2024-11-16 17:05:03

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#17 2024-11-16 17:08:08

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

yes I've already adjusted date
no there isn't any vpn
none of the mirrors worked...

Offline

#18 2024-11-16 17:14:07

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

#19 2024-11-16 17:16:08

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

yes I do I already tried these mirrors

Offline

#20 2024-11-16 17:41:53

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

And what's the output when trying to curl this?
What is the internet connection? Public? Private? Campus?

Offline

#21 2024-11-16 18:12:57

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

curl: (56) Recv failure: Connection reset by peer
it's private

Offline

#22 2024-11-16 18:29:39

sahar
Member
Registered: 2024-11-13
Posts: 14

Re: [SOLVED] connected to wifi but can't search anything in any browser

It's workingggggggg I'm curious to know what was the actual problem
Reallyyyyyyyyyyyyyy thank you smile

Offline

#23 2024-11-16 21:33:45

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] connected to wifi but can't search anything in any browser

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

Board footer

Powered by FluxBB