You are not logged in.

#1 2015-06-29 19:04:59

viking60
Member
From: Valhalla
Registered: 2010-08-02
Posts: 95
Website

[SOLVED] Pacman to slow with download library error

Hi,
I have had a box that had been up for 72 days (Thoshiba equium laptop that has been running Arch for years) and I updated regularly but now I had to reboot and took the opportunity to remove some orphans and DE's (like Gnome) since this computer needs no DE. And I cleared the cache since / was full.

It works including the internet connection - here is a backup of a forum that I have on it and you should be able to see it.
   
http://viking60.no-ip.org/forum/

So the Internet connection seems just fine - iftop reports the trafifc too.
I did the signature stuff as instructed in pacman.conf but I get this when I try to update:

[berserk@viking60-server ~]$ LC_ALL=C sudo pacman -Syu
[sudo] password for berserk: 
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.archlinux.no : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'core.db' from archlinux.uib.no : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'core.db' from mirror.one.com : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'core.db' from archlinux.limun.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed to update core (download library error)

It must be mirrors I thought - but I have added and uncommented mirrors without any change.
The firewall seems OK (I use firestarter)
I have searched and mainly this is fixed by adding new or trying other mirrors - but I have no luck with it.

Here is my pacman.conf

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   = webmin 
#IgnoreGroup = kf5 plasma-next kde kdebase

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
#SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[archlinuxfr] 
Server = http://repo.archlinux.fr/$arch

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Here are my mirrors right now:

## Norway
#Server=http://archlinux.neuf.no/$repo/os/$arch
Server = http://mirror.archlinux.no/$repo/os/$arch
Server = http://archlinux.uib.no/$repo/os/$arch

## Denmark
Server= http://mirror.one.com/archlinux/$repo/os/$arch

I am stuck with this Turtle on Valium - and it is probably something simple that I have overlooked - Any ideas?

Last edited by viking60 (2015-06-30 10:37:43)


"Common sense is not common"

Offline

#2 2015-06-29 20:12:31

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] Pacman to slow with download library error

viking60 wrote:

It works including the internet connection - here is a backup of a forum that I have on it and you should be able to see it.
   
http://viking60.no-ip.org/forum/

Well, you may want to check your internet connection because I cannot access the backup of your forum: firefox fails with the exception "The connection has timeout: The server at viking60.no-ip.org  is taking too long to respond" and links shows and average speed of 26 B/s.


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#3 2015-06-30 09:58:18

viking60
Member
From: Valhalla
Registered: 2010-08-02
Posts: 95
Website

Re: [SOLVED] Pacman to slow with download library error

Thanks
That is the problem here too.
I am using Dnscrypt and I am beginning to wonder if this is a DNS thing. Checking...
Edit:
Fixed it!
I am not sure how but this is what I tried.
I started systemd-resolved without any luck. I checked /etc/resolv.conf and decided to leave it with the dhcpcd generated (Dnscrypt) settings since it has worked for "ages" - and rebooted.
I always get a firestarter error on boot and it fails to start. When it is not started everything is blocked.
This is because eth0 and wlan0 are not up so I have to start them with:

sudo systemctl start firestarter 

and

sudo ip link set eth0 up

and

sudo ip link set wlan0 up 

and then I have to start dhcpcd 

sudo systemctl start dhcpcd 

And after that it worked.
This is not very different from what I do every time I start up that box. So I am not sure what did it - maybe it was just the reboot.

Last edited by viking60 (2015-06-30 10:39:05)


"Common sense is not common"

Offline

Board footer

Powered by FluxBB