You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[user@DESKTOP-DB1100 ~]$ sudo pacman -Syyu
error: failed retrieving file 'libsysprof-capture-45.1-1-x86_64.pkg.tar.zst.sig' from mirrors.edge.kernel.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'npth-1.6-4-x86_64.pkg.tar.zst' from mirrors.kernel.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'libffi-3.4.4-1-x86_64.pkg.tar.zst.sig' from mirrors.edge.kernel.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'libcap-ng-0.8.3-2-x86_64.pkg.tar.zst' from mirrors.kernel.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'filesystem-2023.09.18-1-any.pkg.tar.zst' from mirrors.kernel.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: too many errors from mirrors.kernel.org, skipping for the remainder of this transaction
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.
The errors you're encountering are due to issues with the mirror servers you're using to download packages for your Arch Linux system on WSL2. The error message "Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds" indicates that the download speed from the mirror is too slow, causing the operation to fail.
There are several potential solutions to this issue:
Update your mirror list: The mirror list is a list of servers from which your system downloads packages. If the current mirrors are slow or unresponsive, updating the list might solve the problem. You can use the reflector tool to automatically generate a new mirror list based on the latest mirror status. Here's an example command: reflector -a24 -c US --score 20 -f10 --save /etc/pacman.d/mirrorlist[8]. Replace "US" with your country code if you're not in the United States.
Try the operation again: Sometimes, mirror servers can have temporary issues. Simply trying the operation again after a while might solve the problem.
Switch to a different mirror: If updating the mirror list or retrying the operation doesn't work, you might need to manually switch to a different mirror. You can do this by editing the /etc/pacman.d/mirrorlist file and moving a different mirror to the top of the list[5].
Check your internet connection: If you're having issues with multiple mirrors, the problem might be with your internet connection. Make sure your connection is stable and try the operation again.
Remember to update your package database with sudo pacman -Sy after changing your mirror list. If none of these solutions work, there might be a problem with your Arch Linux installation on WSL2. In that case, you might need to reinstall Arch Linux or seek further assistance.
[user@DESKTOP-DB1100 ~]$ reflector -a24 -c ES --score 20 -f10 --save /etc/pacman.d/mirrorlist
-bash: reflector: command not found
[user@DESKTOP-DB1100 ~]$ sudo pacman -S pacman-contrib
[sudo] password for user:
resolving dependencies...
looking for conflicting packages...
Packages (1) pacman-contrib-1.9.1-1
Total Download Size: 0.05 MiB
Total Installed Size: 0.12 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
pacman-contrib-1.9.1-1-x86_64 48.5 KiB 68.3 KiB/s 00:01 [#######################################################] 100%(1/1) checking keys in keyring [#######################################################] 100%
(1/1) checking package integrity [#######################################################] 100%
(1/1) loading package files [#######################################################] 100%
(1/1) checking for file conflicts [#######################################################] 100%
:: Processing package changes...
(1/1) installing pacman-contrib [#######################################################] 100%
Optional dependencies for pacman-contrib
diffutils: for pacdiff
findutils: for pacdiff --find [installed]
mlocate: for pacdiff --locate
sudo: privilege elevation for several scripts [installed]
vim: default merge program for pacdiff [installed]
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
Skipped: Current root is not booted.
(2/2) Arming ConditionNeedsUpdate...
[user@DESKTOP-DB1100 ~]$ sudo pacman -Sy reflector
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
resolving dependencies...
looking for conflicting packages...
Packages (3) libnsl-2.0.1-1 python-3.11.5-2 reflector-2023-1
Total Download Size: 13.98 MiB
Total Installed Size: 75.46 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
reflector-2023-1-any 39.6 KiB 248 KiB/s 00:00 [#######################################################] 100% libnsl-2.0.1-1-x86_64 21.7 KiB 77.5 KiB/s 00:00 [#######################################################] 100% python-3.11.5-2-x86_64 13.9 MiB 2.41 MiB/s 00:06 [#######################################################] 100% Total (3/3) 14.0 MiB 2.39 MiB/s 00:06 [#######################################################] 100%
(3/3) checking keys in keyring [#######################################################] 100%
(3/3) checking package integrity [#######################################################] 100%
(3/3) loading package files [#######################################################] 100%
(3/3) checking for file conflicts [#######################################################] 100%
:: Processing package changes...
(1/3) installing libnsl [#######################################################] 100%
(2/3) installing python [#######################################################] 100%
Optional dependencies for python
python-setuptools: for building Python packages using tooling that is usually bundled with Python
python-pip: for installing Python packages using tooling that is usually bundled with Python
python-pipx: for installing Python software not packaged on Arch Linux
sqlite: for a default database integration [installed]
mpdecimal: for decimal
xz: for lzma [installed]
tk: for tkinter
(3/3) installing reflector [#######################################################] 100%
Optional dependencies for reflector
rsync: rate rsync mirrors
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
Skipped: Current root is not booted.
(2/2) Arming ConditionNeedsUpdate...
[user@DESKTOP-DB1100 ~]$ sudo reflector -c Spain -a 12 --sort rate --save /etc/pacman.d/mirrorlist
/usr/bin/python: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /usr/lib/libpython3.11.so.1.0)/usr/bin/python: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib/libpython3.11.so.1.0)[user@DESKTOP-DB1100 ~]$ sudo pacman -Su:: Starting full system upgrade... there is nothing to do[user@DESKTOP-DB1100 ~]$[user@DESKTOP-DB1100 ~]$ sudo pacman -Syyu:: Synchronizing package databases... core 130.4 KiB 221 KiB/s 00:01 [#######################################################] 100% extra.db failed to download community 45.0 B 107 B/s 00:00 [#######################################################] 100%error: failed retrieving file 'extra.db' from mirrors.kernel.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 secondserror: failed to synchronize all databases (download library error)[user@DESKTOP-DB1100 ~]$ sudo reflector -c Spain -a 12 --sort rate --save /etc/pacman.d/mirrorlist[2023-10-30 02:40:51] WARNING: failed to rate rsync download (rsync://mirror.librelabucm.org/archlinux/extra/os/x86_64/extra.db): [Errno 2] No such file or directory: 'rsync'
It doesn't work with newer versions of windows. Would not recommend using it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Beta Was this translation helpful? Give feedback.
All reactions