LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 05-03-2019, 08:18 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
pacman: connection timed out after 10000 milliseconds.


Hi: Every time I use pacman -S I get the following message:
Code:
error: failed retrieving file 'xxxxxxxxxxxxx' from mirrors.xjtu.edu.cn : connection timed out after 10000 milliseconds.
And for each package I must wait 10 seconds, irrespective of the package size. Worse: I was doing pacstrap /mnt base and, for each package, at least 10 seconds. A way to solve this?

pacstrap ends outputing this message:
Code:
ERROR: Failed to install packages to new root

Last edited by stf92; 05-05-2019 at 06:47 PM.
 
Old 05-03-2019, 11:18 PM   #2
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
I would think it's the mirrorlist and you need to update it.


Mirrorlist generator
https://www.archlinux.org/mirrorlist/

Pic 5 of them and replace the above file to /etc/pacman.d/mirrorlist

after that issue this command:

Code:
pacman -Syyu
You can also install package pacman-contrib this will give you mirrorlist rankings by speed

If you install that package Pacman -S pacman-contrib backup the mirrorlist

Code:
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
From there you can rank them by running this command:

Code:
rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist

Last edited by drillsar; 05-03-2019 at 11:23 PM.
 
2 members found this post helpful.
Old 05-04-2019, 05:55 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
what does this have to do with pacstrap?
 
Old 05-04-2019, 08:10 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by ondoho View Post
what does this have to do with pacstrap?
pacstrap outputs the same messages as pacman.
 
Old 05-04-2019, 04:03 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I generated (www.archlinux.org/mirrorlist) this list:
Code:
## Chile
#Server = http://mirror.archlinux.cl/$repo/os/$arch

## Brazil
#Server = http://br.mirror.archlinux-br.org/$repo/os/$arch
#Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
#Server = http://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
#Server = https://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
#Server = http://linorg.usp.br/archlinux/$repo/os/$arch
#Server = http://pet.inf.ufsc.br/mirrors/archlinux/$repo/os/$arch
#Server = http://archlinux.pop-es.rnp.br/$repo/os/$arch
#Server = http://mirror.ufam.edu.br/archlinux/$repo/os/$arch
#Server = http://mirror.ufscar.br/archlinux/$repo/os/$arch


## Paraguay
#Server = http://archlinux.mirror.py/archlinux/$repo/os/$arch

## United States
#Server = http://mirrors.acm.wpi.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.advancedhosters.com/archlinux/$repo/os/$arch
#Server = http://mirrors.aggregate.org/archlinux/$repo/os/$arch
#Server = http://ca.us.mirror.archlinux-br.org/$repo/os/$arch
#Server = http://il.us.mirror.archlinux-br.org/$repo/os/$arch
#Server = http://archlinux.surlyjake.com/archlinux/$repo/os/$arch
#Server = https://archlinux.surlyjake.com/archlinux/$repo/os/$arch
#Server = http://arlm.tyzoid.com/$repo/os/$arch
#Server = https://arlm.tyzoid.com/$repo/os/$arch
#Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch
#Server = http://mirror.cc.columbia.edu/pub/linux/archlinux/$repo/os/$arch
#Server = http://arch.mirror.constant.com/$repo/os/$arch
#Server = https://arch.mirror.constant.com/$repo/os/$arch
#Server = http://mirror.cs.pitt.edu/archlinux/$repo/os/$arch
#Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/$arch
#Server = http://distro.ibiblio.org/archlinux/$repo/os/$arch
#Server = http://mirror.es.its.nyu.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.gigenet.com/archlinux/$repo/os/$arch
#Server = http://www.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
#Server = http://mirror.dc02.hackingand.coffee/arch/$repo/os/$arch
#Server = https://mirror.dc02.hackingand.coffee/arch/$repo/os/$arch
#Server = http://repo.ialab.dsu.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
#Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch
#Server = http://mirror.dal10.us.leaseweb.net/archlinux/$repo/os/$arch
#Server = http://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch
#Server = http://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
#Server = https://mirror.dal10.us.leaseweb.net/archlinux/$repo/os/$arch
#Server = https://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch
#Server = https://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
#Server = http://mirrors.liquidweb.com/archlinux/$repo/os/$arch
#Server = http://mirror.lty.me/archlinux/$repo/os/$arch
#Server = https://mirror.lty.me/archlinux/$repo/os/$arch
#Server = http://reflector.luehm.com/arch/$repo/os/$arch
#Server = https://reflector.luehm.com/arch/$repo/os/$arch
#Server = http://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
#Server = https://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
#Server = http://mirror.math.princeton.edu/pub/archlinux/$repo/os/$arch
#Server = http://mirror.metrocast.net/archlinux/$repo/os/$arch
#Server = http://mirror.kaminski.io/archlinux/$repo/os/$arch
#Server = https://mirror.kaminski.io/archlinux/$repo/os/$arch
#Server = http://repo.miserver.it.umich.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.ocf.berkeley.edu/archlinux/$repo/os/$arch
#Server = https://mirrors.ocf.berkeley.edu/archlinux/$repo/os/$arch
#Server = http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
#Server = http://arch.mirrors.pair.com/$repo/os/$arch
#Server = http://mirrors.rit.edu/archlinux/$repo/os/$arch
#Server = https://mirrors.rit.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.rutgers.edu/archlinux/$repo/os/$arch
#Server = https://mirrors.rutgers.edu/archlinux/$repo/os/$arch
#Server = http://mirror.siena.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.sonic.net/archlinux/$repo/os/$arch
#Server = https://mirrors.sonic.net/archlinux/$repo/os/$arch
#Server = http://arch.mirror.square-r00t.net/$repo/os/$arch
#Server = https://arch.mirror.square-r00t.net/$repo/os/$arch
#Server = http://mirror.stephen304.com/archlinux/$repo/os/$arch
#Server = https://mirror.stephen304.com/archlinux/$repo/os/$arch
#Server = http://trapbot.site/arch/$repo/os/$arch
#Server = http://mirror.umd.edu/archlinux/$repo/os/$arch
#Server = http://mirror.vtti.vt.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.xmission.com/archlinux/$repo/os/$arch
#Server = http://mirrors.xtom.com/archlinux/$repo/os/$arch
#Server = https://mirrors.xtom.com/archlinux/$repo/os/$arch


root@darkstar/etc/pacman.d#
I live in Argentina. I must uncomment the lines hwich I think can be done with search and replace (vim). I left "use mirror staatus unchecked". Now I'll try to rank them by speed.
 
Old 05-05-2019, 12:24 PM   #6
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
If it's not that then the second place you can look is your DNS settings.
 
Old 05-05-2019, 12:30 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Where are they?
 
Old 05-05-2019, 04:35 PM   #8
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
Did you check /etc/resolv.conf ? did you try ping to actually see if you have internet access?
 
1 members found this post helpful.
Old 05-05-2019, 06:37 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Of course I have internet access. pacman downloads every thing. Only that it waits 10000ms before actually downloading (it finds another url).
Code:
bill@darkstar/etc$ cat resolv.conf
# Generated by resolvconf
domain fibertel.com.ar
nameserver 200.49.130.47
nameserver 200.42.4.210
bill@darkstar/etc$
 
Old 05-05-2019, 07:11 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by drillsar View Post
I would think it's the mirrorlist and you need to update it.


Mirrorlist generator
https://www.archlinux.org/mirrorlist/

Pic 5 of them and replace the above file to /etc/pacman.d/mirrorlist

after that issue this command:

Code:
pacman -Syyu
You can also install package pacman-contrib this will give you mirrorlist rankings by speed

If you install that package Pacman -S pacman-contrib backup the mirrorlist

Code:
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
From there you can rank them by running this command:

Code:
rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
I replaced mirrorlist and no more connection timed outs. But when it checks package integrity it finds errors. Finally it says:
Code:
Error: failed to commit transaction. Errors ocurred. No packages were upgraded.
This in response to 'pacman -Syu'.
 
Old 05-07-2019, 04:31 PM   #11
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
the command is pacman -Syyu not -Syu
 
Old 05-07-2019, 06:50 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I did 'pacman -Syyu' and got
Code:
:: Proceed with installation? [Y/n] Y
(451/451) checking keys in keyring                                                [##############################################] 100%
(451/451) checking package integrity                                              [##############################################] 100%
error: libseccomp: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/libseccomp-2.4.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
and the same for other packages. Finally I get
Code:
:: File /var/cache/pacman/pkg/nasm-2.14.02-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
root@darkstar~#
What is wrong?
 
Old 05-08-2019, 11:55 PM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
you could simply delete the whole pacman cache, then try again.
I'll put one on top:
Code:
pacman -Syyuu
maybe you still need to do something after that; i suggest reading https://wiki.archlinux.org/index.php/Pacman
 
Old 05-09-2019, 06:10 PM   #14
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
You mean 'rm -r /var/cache/pacman'?
 
Old 05-10-2019, 08:32 PM   #15
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
go to the reading that ondoho suggested and look for Cleaning the package cache
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error log: upstream timed out (110: Connection timed out) on Nginx nikaway Linux - Server 1 09-30-2015 02:43 PM
[SOLVED] USB: Connection timed out SYS: Connection timed out PeterUK Programming 3 07-18-2013 02:59 AM
pacstrap or raid error Emrod Arch 3 05-30-2013 08:45 AM
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration