You are not logged in.
➜ ~ git:(master) ✗ aria2c http://www.vim.org/scripts/download_script.php\?src_id\=7722
[#1 SIZE:0B/0B CN:1 SPD:0Bs]
2011-12-01 17:21:37.240745 NOTICE - Download complete: /home/jinleileiking/omnicppcomplete-0.41.zip
Download Results:
gid|stat|avg speed |path/URI
===+====+===========+===========================================================
1| OK| 87.8KiB/s|/home/jinleileiking/omnicppcomplete-0.41.zip
Status Legend:
(OK):download completed.
➜ ~ git:(master) ✗ export | grep proxy
ftp_proxy=http://proxy.xxx.com.cn:80
http_proxy=http://proxy.xxx.com.cn:80
https_proxy=http://proxy.xxx.com.cn:80
rvm_proxy=''
➜ ~ git:(master) ✗ pacman -S conky
error: you cannot perform this operation unless you are root.
➜ ~ git:(master) ✗ sudo pacman -S conky
Password:
resolving dependencies...
looking for inter-conflicts...
Targets (5): wireless_tools-29-5 giflib-4.1.6-4 libid3tag-0.15.1b-6 imlib2-1.4.5-1 conky-1.8.2git20111107-1
Total Download Size: 0.91 MB
Total Installed Size: 2.86 MB
Proceed with installation? [Y/n] y
:: Retrieving packages from core...
[#1 SIZE:0B/0B CN:1 SPD:0Bs]
2011-12-01 18:00:59.545800 NOTICE - Shutdown sequence commencing... Press Ctrl-C again for emergency shutdown.
2011-12-01 18:00:59.546020 NOTICE - Download GID#1 not complete: //var/cache/pacman/pkg/wireless_tools-29-5-i686.pkg.tar.xz.part
Download Results:
gid|stat|avg speed |path/URI
===+====+===========+===========================================================
1|INPR| 0B/s|//var/cache/pacman/pkg/wireless_tools-29-5-i686.pkg.tar.xz.part
Status Legend:
(INPR):download in-progress.
aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
^C
Interrupt signal received
➜ ~ git:(master) ✗ cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# 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
HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl -C - -f %u > %o
#CleanMethod = KeepInstalled
XferCommand = /usr/bin/aria2c -s8 --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 --max-connection-per-server=10 --max-file-not-found=5 --min-split-size=1M --no-conf --remote-time=true --summary-interval=60 -t5 -d / -o %o %u
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload
#CheckSpace
#
# 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]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
[archlinuxfr]
Server = http://repo.archlinux.fr/$arch
use aria2c get a file through proxy is ok.
But using the pacman is not ok..
Offline
the proxy env is ok in superuser env
➜ ~ git:(master) ✗ export | grep proxy
ftp_proxy=http://proxy.zte.com.cn:80
http_proxy=http://proxy.zte.com.cn:80
https_proxy=http://proxy.zte.com.cn:80
rvm_proxy=''
➜ ~ git:(master) ✗ su
Password:
[root@myhost jinleileiking]# export | grep proxy
declare -x ftp_proxy="http://proxy.zte.com.cn:80"
declare -x http_proxy="http://proxy.zte.com.cn:80"
declare -x https_proxy="http://proxy.zte.com.cn:80"
Offline
Offline
Try
sudo -E
Offline
Try
sudo -E
Failed..
Offline