在http://msys2.github.io/上描述的MSYS2首次安裝步驟後,我收到了這些錯誤。我想獲得一些實用程序,如vi
,vim
,bc
,gnuplot
。我如何配置pacman
連接到存儲庫?MSYS2 pacman無法通過公司防火牆更新軟件包
我的電腦在公司網絡上。我的瀏覽器通過PAC腳本連接到Web。
$ pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
:: Synchronizing package databases...
error: failed retrieving file 'mingw32.db' from downloads.sourceforge.net : Connection timed out after 10000 milliseconds
error: failed to update mingw32 (download library error)
error: failed retrieving file 'mingw64.db' from downloads.sourceforge.net : Connection timed out after 10000 milliseconds
error: failed to update mingw64 (download library error)
error: failed retrieving file 'msys.db' from downloads.sourceforge.net : Connection timed out after 10000 milliseconds
error: failed to update msys (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)
在mailing list上提到的以下解決方案也未解決問題。
1. Close MSYS2.
2. Run autorebase.bat
3. Open MSYS2 again.
也試過'pacman-key --init'但是沒有幫助。我在'/ etc/pacman.conf'中猜測一些配置設置,或者需要'/ etc/network'。 – ropata
在[askubuntu.com]找到了幾個不完整的答案(http://askubuntu.com/questions/104950/how-do-i-configure-apt-get-to-use-a-pac-file-for -a-proxy)和[superuser.com](http://superuser.com/questions/323488/ubuntu-system-wide-proxy-auto-configuration-pac-script)。 – ropata