Why my pacman just broken?

Only for Manjaro specific hardware, Meaning you did buy a Manjaro supported machine, from the list bellow.

I use sudo pacman-mirror -c china and it show

::WARNING https://repo.manjaro.org 'Connection: HTTPSConnectionPool(host='repo.manjaro.org', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e292516c0>: Failed to establish a new connection: [Errno 111] Connection refused')))'
::WARNING https://wikipedia.org 'Connection: HTTPSConnectionPool(host='wikipedia.org', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e29250df0>: Failed to establish a new connection: [Errno 111] Connection refused')))'
::WARNING https://bitbucket.org 'Connection: HTTPSConnectionPool(host='bitbucket.org', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e292525c0>: Failed to establish a new connection: [Errno 111] Connection refused')))'
::INFO Internet connection appears to be down
::INFO Mirror ranking is not available
::INFO Mirror list is generated using random method
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Writing mirror list
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable
::China           : https://mirrors.pku.edu.cn/manjaro/stable
::China           : https://mirrors.huaweicloud.com/manjaro/stable
::China           : https://mirror.nju.edu.cn/manjaro/stable
::China           : https://mirrors.tuna.tsinghua.edu.cn/manjaro/stable
::China           : https://mirrors.pku.edu.cn/manjaro/stable
::China           : https://mirrors.tuna.tsinghua.edu.cn/manjaro/stable
::China           : https://mirrors.aliyun.com/manjaro/stable
::China           : https://mirrors.ustc.edu.cn/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

and when I use sudo pacman -S xxx it show

warning: gcc-11.1.0-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) gcc-11.1.0-3

Total Download Size:    33.93 MiB
Total Installed Size:  151.43 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 gcc-11.1.0-3-x86_64.pkg.tar.zst failed to download
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.sjtug.sjtu.edu.cn : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.pku.edu.cn : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.huaweicloud.com : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirror.nju.edu.cn : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.pku.edu.cn : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.aliyun.com : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
error: failed retrieving file 'gcc-11.1.0-3-x86_64.pkg.tar.zst' from mirrors.ustc.edu.cn : Failed to connect to 127.0.0.1 port 12639 after 0 ms: Connection refused
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

why???

I can not intall anything now!!!

Should be pacman-mirrors

Try with fasttrack instead of country
sudo pacman-mirrors -f5 && sudo pacman -Syyu

https://repo.manjaro.org/

Wait or change the pacman-mirrors options (i.e., country, geoip, etc). The default for pacman-mirrors is status.

First

Then

There is something off with your network configuration.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.