You are not logged in.

#1 2019-03-23 05:15:11

magicloud
Member
Registered: 2014-06-17
Posts: 48

PACMAN could not resolve host with network available.

This just happened today. When I `sudo pacman -Syu`, I got a bunch of messages in the same format:

error: failed retrieving file 'core.db' from mirrors.163.com : Could not resolve host: mirrors.163.com

But in the meantime, my browser works. Dig also works:

; <<>> DiG 9.13.7 <<>> mirrors.163.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43270
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mirrors.163.com.        IN    A

;; ANSWER SECTION:
mirrors.163.com.    1368    IN    A    59.111.0.251

;; Query time: 6 msec
;; SERVER: 192.168.3.1#53(192.168.3.1)
;; WHEN: Sat Mar 23 13:07:36 CST 2019
;; MSG SIZE  rcvd: 49

Where should I check? I have to put the IP in /etc/hosts to make pacman working.

Last edited by magicloud (2019-03-23 05:16:59)

Offline

#2 2019-03-23 05:19:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: PACMAN could not resolve host with network available.

Have you tried using reflector to sort your mirror list? Or at least tried another mirror?


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-03-23 05:20:55

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

jasonwryan wrote:

Have you tried using reflector to sort your mirror list? Or at least tried another mirror?


Moving to NC...

Sorry did not make this clear. ALL my mirrors are unresolvable.

Offline

#4 2019-03-23 05:22:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: PACMAN could not resolve host with network available.

Please paste, in code tags, the output of `pacman -Syu --debug`.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-03-23 05:27:46

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

debug: pacman v5.1.3 - libalpm v11.0.3
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 85: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': http://mirrors.163.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.xjtu.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.ustc.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.tuna.tsinghua.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.lzu.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.shu.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.zju.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.neusoft.edu.cn/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': http://mirrors.163.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.xjtu.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.ustc.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.tuna.tsinghua.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.lzu.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.shu.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.zju.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.neusoft.edu.cn/archlinux/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': http://mirrors.163.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.xjtu.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.ustc.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.tuna.tsinghua.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.lzu.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.shu.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.zju.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.neusoft.edu.cn/archlinux/community/os/x86_64
:: Synchronizing package databases...
debug: url: http://mirrors.163.com/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.163.com : Could not resolve host: mirrors.163.com
debug: url: http://mirrors.xjtu.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.xjtu.edu.cn : Could not resolve host: mirrors.xjtu.edu.cn
debug: url: http://mirrors.ustc.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
debug: url: http://mirrors.tuna.tsinghua.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
debug: url: http://mirror.lzu.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirror.lzu.edu.cn : Could not resolve host: mirror.lzu.edu.cn
debug: url: http://mirrors.shu.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.shu.edu.cn : Could not resolve host: mirrors.shu.edu.cn
debug: url: http://mirrors.zju.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.zju.edu.cn : Could not resolve host: mirrors.zju.edu.cn
debug: url: http://mirrors.neusoft.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.neusoft.edu.cn : Could not resolve host: mirrors.neusoft.edu.cn
debug: failed to sync db: invalid url for server
error: failed to update core (invalid url for server)
debug: url: http://mirrors.163.com/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.163.com : Could not resolve host: mirrors.163.com
debug: url: http://mirrors.xjtu.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.xjtu.edu.cn : Could not resolve host: mirrors.xjtu.edu.cn
debug: url: http://mirrors.ustc.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
debug: url: http://mirrors.tuna.tsinghua.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
debug: url: http://mirror.lzu.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirror.lzu.edu.cn : Could not resolve host: mirror.lzu.edu.cn
debug: url: http://mirrors.shu.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.shu.edu.cn : Could not resolve host: mirrors.shu.edu.cn
debug: url: http://mirrors.zju.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.zju.edu.cn : Could not resolve host: mirrors.zju.edu.cn
debug: url: http://mirrors.neusoft.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.neusoft.edu.cn : Could not resolve host: mirrors.neusoft.edu.cn
debug: failed to sync db: invalid url for server
error: failed to update extra (invalid url for server)
debug: url: http://mirrors.163.com/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.163.com : Could not resolve host: mirrors.163.com
debug: url: http://mirrors.xjtu.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.xjtu.edu.cn : Could not resolve host: mirrors.xjtu.edu.cn
debug: url: http://mirrors.ustc.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
debug: url: http://mirrors.tuna.tsinghua.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
debug: url: http://mirror.lzu.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirror.lzu.edu.cn : Could not resolve host: mirror.lzu.edu.cn
debug: url: http://mirrors.shu.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.shu.edu.cn : Could not resolve host: mirrors.shu.edu.cn
debug: url: http://mirrors.zju.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.zju.edu.cn : Could not resolve host: mirrors.zju.edu.cn
debug: url: http://mirrors.neusoft.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.neusoft.edu.cn : Could not resolve host: mirrors.neusoft.edu.cn
debug: failed to sync db: invalid url for server
error: failed to update community (invalid url for server)
error: failed to synchronize all databases
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'

Offline

#6 2019-03-23 11:59:44

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: PACMAN could not resolve host with network available.

Is a XferCommand specified in /etc/pacman.conf?
What is the output of the following

pacman -Q curl
/usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db

Offline

#7 2019-03-23 16:15:30

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: PACMAN could not resolve host with network available.

debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened

Looks like something is wrong with your databases, not the network .

post

ls - l /var/lib/pacman/sync

this is how that folder looks on my system :

$ ls -l /var/lib/pacman/sync/
total 35952
-rw-r--r-- 1 root root  5091472 23 mrt 14:46 community.db
-rw-r--r-- 1 root root 19416423 12 feb 10:28 community.files
-rw-r--r-- 1 root root   136938 23 mrt 09:30 core.db
-rw-r--r-- 1 root root   824621 11 feb 23:08 core.files
-rw-r--r-- 1 root root  1738715 23 mrt 11:08 extra.db
-rw-r--r-- 1 root root  9074529 12 feb 10:55 extra.files
-rw-r--r-- 1 root root     9248 14 jan 18:21 llvm-svn.db
-rw-r--r-- 1 root root      566 14 jan 18:21 llvm-svn.db.sig
-rw-r--r-- 1 root root     9248 14 jan 18:21 llvm-svn.files
-rw-r--r-- 1 root root      566 14 jan 18:21 llvm-svn.files.sig
-rw-r--r-- 1 root root     3128  9 mrt 14:23 lonewolf.db
-rw-r--r-- 1 root root     7796  8 feb 21:41 lonewolf.files
-rw-r--r-- 1 root root   178976 21 mrt 21:53 multilib.db
-rw-r--r-- 1 root root   289285 11 feb 23:08 multilib.files
[panoramix@silverbolt ~]$ 

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2019-03-23 17:27:08

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: PACMAN could not resolve host with network available.

@Lone_Wolf The arch official repositories are not signed so the signature files should be missing as your listing shows

Offline

#9 2019-03-23 17:30:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: PACMAN could not resolve host with network available.

How is your networking configured?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#10 2019-03-24 02:44:17

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

loqs wrote:

Is a XferCommand specified in /etc/pacman.conf?
What is the output of the following

pacman -Q curl
/usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db

curl 7.64.0-9

Lone_Wolf wrote:
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened

Looks like something is wrong with your databases, not the network .

post

ls - l /var/lib/pacman/sync

this is how that folder looks on my system :

$ ls -l /var/lib/pacman/sync/
total 35952
-rw-r--r-- 1 root root  5091472 23 mrt 14:46 community.db
-rw-r--r-- 1 root root 19416423 12 feb 10:28 community.files
-rw-r--r-- 1 root root   136938 23 mrt 09:30 core.db
-rw-r--r-- 1 root root   824621 11 feb 23:08 core.files
-rw-r--r-- 1 root root  1738715 23 mrt 11:08 extra.db
-rw-r--r-- 1 root root  9074529 12 feb 10:55 extra.files
-rw-r--r-- 1 root root     9248 14 jan 18:21 llvm-svn.db
-rw-r--r-- 1 root root      566 14 jan 18:21 llvm-svn.db.sig
-rw-r--r-- 1 root root     9248 14 jan 18:21 llvm-svn.files
-rw-r--r-- 1 root root      566 14 jan 18:21 llvm-svn.files.sig
-rw-r--r-- 1 root root     3128  9 mrt 14:23 lonewolf.db
-rw-r--r-- 1 root root     7796  8 feb 21:41 lonewolf.files
-rw-r--r-- 1 root root   178976 21 mrt 21:53 multilib.db
-rw-r--r-- 1 root root   289285 11 feb 23:08 multilib.files
[panoramix@silverbolt ~]$ 

I noticed that. But if I put the mirror IP in /etc/hosts, it just worked.

-rw-r--r-- 1 root root 4.9M Mar 24 02:55 community.db
-rw-r--r-- 1 root root  19M Mar  7 07:22 community.files
-rw-r--r-- 1 root root 134K Mar 23 16:30 core.db
-rw-r--r-- 1 root root 807K Mar  7 00:33 core.files
-rw-r--r-- 1 root root 1.7M Mar 23 18:08 extra.db
-rw-r--r-- 1 root root 8.8M Mar  7 07:17 extra.files

Offline

#11 2019-03-24 02:46:22

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

Slithery wrote:

How is your networking configured?

It is WPA2 Wifi, DHCP with static TCP DNS.

Offline

#12 2019-03-24 06:50:45

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: PACMAN could not resolve host with network available.

That doesn't sufficient describe the conig.

1. you forgot to run loqs' curl command (pacman uses curl, so this should narrow the problem)
2.

ps aux | grep resolved
systemctl list-unit-files --state=enable
ping mirrors.163.com
nslookup mirrors.163.com

Offline

#13 2019-03-24 07:18:49

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

loqs wrote:

Is a XferCommand specified in /etc/pacman.conf?
What is the output of the following

pacman -Q curl
/usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db

Sorry, forgot this output:

/usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: mirrors.163.com
seth wrote:

That doesn't sufficient describe the conig.

1. you forgot to run loqs' curl command (pacman uses curl, so this should narrow the problem)
2.

ps aux | grep resolved
systemctl list-unit-files --state=enable
ping mirrors.163.com
nslookup mirrors.163.com
$ ps aux | grep resolved
shida    28159  0.0  0.0   6272  2300 pts/1    S+   14:52   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn resolved
$ systemctl list-unit-files --state=enabled
UNIT FILE               STATE  
akbl.service            enabled
autovt@.service         enabled
display-manager.service enabled
docker.service          enabled
getty@.service          enabled
gpm.service             enabled
kubelet.service         enabled
polipo.service          enabled
sshd.service            enabled
sysstat.service         enabled
systemd-swap.service    enabled
v2ray.service           enabled
xdm.service             enabled
remote-fs.target        enabled
sysstat-collect.timer   enabled
sysstat-summary.timer   enabled

16 unit files listed.
$ ping mirrors.163.com
ping: mirrors.163.com: Temporary failure in name resolution
$ nslookup mirrors.163.com
Server:		223.5.5.5
Address:	223.5.5.5#53

Non-authoritative answer:
Name:	mirrors.163.com
Address: 59.111.0.251

I think all problem relates to my TCP DNS setup. But I could not see why Chromium works with same setup (I tested with brand new FQDN to rule out Chromium resolving cache).

Last edited by magicloud (2019-03-24 08:17:46)

Offline

#14 2019-03-24 07:29:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: PACMAN could not resolve host with network available.

magicloud wrote:
systemctl list-unit-files --state=enable

That's supposed to be enabled.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2019-03-24 08:18:19

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

jasonwryan wrote:
magicloud wrote:
systemctl list-unit-files --state=enable

That's supposed to be enabled.

No wonder there was no output.... Thanks.

Offline

#16 2019-03-24 08:55:45

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: PACMAN could not resolve host with network available.

How are you configuring your network?

I possibly know what the issue is, but I need to know how you're managing everything.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#17 2019-03-24 09:02:32

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

Slithery wrote:

How are you configuring your network?

I possibly know what the issue is, but I need to know how you're managing everything.

Sorry, could you list what exactly data you need? I may not follow.

Here is something:

The network is connected and configured by `systemctl start wpa_supplicant@wlp13s0 dhcpcd@wlp13s0`.

/etc/resolvconf.conf contains only two non-commented lines:

resolv_conf=/etc/resolv.conf
resolv_conf_options="use-vc"

Offline

#18 2019-03-24 11:14:15

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: PACMAN could not resolve host with network available.

Sorry about the missing "d"

The failing ping suggest the issue to be in /etc/nsswitch.conf, please post that.
Also elaborate on your DNS config - why and how do you (enforce?) requests over TCP?

Offline

#19 2019-03-24 11:21:56

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

seth wrote:

Sorry about the missing "d"

The failing ping suggest the issue to be in /etc/nsswitch.conf, please post that.
Also elaborate on your DNS config - why and how do you (enforce?) requests over TCP?

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files mymachines systemd
group: files mymachines systemd
shadow: files

publickey: files

hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

Should be the default content, I never touched it.

Offline

#20 2019-03-24 12:13:41

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: PACMAN could not resolve host with network available.

Yes, is.

cat /etc/resolv.conf

only says

nameserver 223.5.5.5

?

Also

seth wrote:

elaborate on your DNS config - why and how do you (enforce?) requests over TCP?

Offline

#21 2019-03-24 15:00:36

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

seth wrote:

Yes, is.

cat /etc/resolv.conf

only says

nameserver 223.5.5.5

?

Also

seth wrote:

elaborate on your DNS config - why and how do you (enforce?) requests over TCP?

$ cat /etc/resolv.conf
nameserver 192.168.3.1
options use-vc

And "use-vc" is all I set to get TCP DNS. For the "why", I am trying to rule out some wong result issue.

Offline

#22 2019-03-24 15:09:17

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: PACMAN could not resolve host with network available.

192.168.3.1 is not the nameserver used by nslookup (but probably your router?)
I'd try replacing that w/ either 223.5.5.5 (seems some Chinese ISP) or eg. 8.8.8.8 (google) or 1.1.1.1 (cloudflare)

Is 223.5.5.5 configured as backend in whatever 192.168.3.1 is and does the problem go away if you allow UDP requests in resolv.conf?

Offline

#23 2019-03-24 15:15:10

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

seth wrote:

192.168.3.1 is not the nameserver used by nslookup (but probably your router?)
I'd try replacing that w/ either 223.5.5.5 (seems some Chinese ISP) or eg. 8.8.8.8 (google) or 1.1.1.1 (cloudflare)

Is 223.5.5.5 configured as backend in whatever 192.168.3.1 is and does the problem go away if you allow UDP requests in resolv.conf?

Ah, that is my mistake. I posted wrong result during test.

$ nslookup mirrors.163.com
Server:		192.168.3.1
Address:	192.168.3.1#53

Non-authoritative answer:
Name:	mirrors.163.com
Address: 59.111.0.251

And yes, 223.5.5.5 was once the upstream DNS, also some others like 114.114.114.114. All problem gone if I just remove the "use-vc" option.

Last edited by magicloud (2019-03-24 15:17:19)

Offline

#24 2019-03-24 20:45:52

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: PACMAN could not resolve host with network available.

Let's see whether tcp queries work in general - and on what server:

dig +vc mirrors.163.com
dig @8.8.8.8 +vc mirrors.163.com

Offline

#25 2019-03-25 04:39:49

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: PACMAN could not resolve host with network available.

seth wrote:

Let's see whether tcp queries work in general - and on what server:

dig +vc mirrors.163.com
dig @8.8.8.8 +vc mirrors.163.com
$ dig +vc mirrors.163.com

; <<>> DiG 9.13.7 <<>> +vc mirrors.163.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47348
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mirrors.163.com.		IN	A

;; ANSWER SECTION:
mirrors.163.com.	1436	IN	A	59.111.0.251

;; Query time: 1 msec
;; SERVER: 192.168.3.1#53(192.168.3.1)
;; WHEN: Mon Mar 25 12:36:48 CST 2019
;; MSG SIZE  rcvd: 49

I cannot access 8.8.8.8.

Offline

Board footer

Powered by FluxBB