Results 1 to 9 of 9

Thread: How to use zypper with wget as default downloader?

  1. #1

    Default How to use zypper with wget as default downloader?

    Hello,
    Now I can't upgrade or install anything by zypper/yast. The message is pasted below:
    Code:
    zypper -vv ref 3
    Verbosity: 2
    Non-option program arguments: '3' 
    Initializing Target
    Specified repositories: repo-update 
    Checking whether to refresh metadata for openSUSE-12.3-Update
    Retrieving: http://download.opensuse.org/update/12.3/repodata/repomd.xml.asc ................................................................................................................................[done]
    Retrieving: http://download.opensuse.org/update/12.3/repodata/repomd.xml.key ................................................................................................................................[done]
    Retrieving: http://download.opensuse.org/update/12.3/repodata/repomd.xml ....................................................................................................................................[done]
    Retrieving: http://download.opensuse.org/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz ............................................................[error]
    Permission to access 'http://download.opensuse.org/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz' denied.
    
    Abort, retry, ignore? [a/r/i/?] (a)
    I tried to use wget to download this archive (app-icon.tar.gz) and successful
    There's no aria2 in my system and I don't know zypper use what program to retrieve file from repository.

    So can you help me to set up zypper to use wget as its default downloader?

    PS: I install openSuSE 12.3, IPV6 is disabled, proxy properties are set

    Thank you very much

  2. #2

    Default Re: How to use zypper with wget as default downloader?

    More information about my case.
    I try to install aria2 and download app-icon.tar.gz (I mentioned in above post) successfully . My settings for aria2 are set in /root/.aria2/aria2.conf (all-proxy and user-agent)

    After that, I export variable to use aria2 with zypper by command
    Code:
    export ZYPP_ARIA2C=1
    However, zypper can't still download from repository and here's the log from /var/log/zypper.log
    Code:
    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp:fetcher] Fetcher.cc(provideToDest):547 Not found in cache, downloading
    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide  file ./repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz from media number 1
    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(2): desired (cached)
    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(2): desired (cached)
    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp] MediaAria2c.cc(fillAriaCmdLine):182 Passing http-proxy credentials 'dungla4:PASSWORD'
    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] ExternalProgram.cc(start_program):229 Executing 'aria2c' '--user-agent=ZYpp 12.9.0 (aria2 version 1.16.1) openSUSE-12.3-x86_64' '--summary-interval=1' '--follow-metalink=mem' '--check-integrity=true' '--file-allocation=none' '--server-stat-of=/var/cache/zypp/aria2.stats' '--server-stat-if=/var/cache/zypp/aria2.stats' '--uri-selector=adaptive' '--use-head=false' '--max-tries=5' '--max-concurrent-downloads=5' '--connect-timeout=180' '--http-proxy=http://<myproxy>:8080' '--dir=/var/adm/mount/AP_0xo2A1KP/repodata' '--conf-path=/var/tmp/TmpFile.OjS7ty' 'http://download.opensuse.org/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] ExternalProgram.cc(start_program):381 pid 7973 launched
    2014-10-01 15:27:07 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.uni-ulm.de/mirrors/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:08 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:08 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:08 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:08 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp4.gwdg.de/pub/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:09 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp5.gwdg.de/pub/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:10 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:10 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:10 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:10 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.uni-kl.de/pub/linux/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:11 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:11 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:11 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:11 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://widehat.opensuse.org/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:12 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:12 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:13 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:13 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:13 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:14 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:14 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:14 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:15 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:15 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:15 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:16 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:16 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://mirror.rackspace.hk/openSUSE/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:17 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:17 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:18 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:18 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:18 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:19 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:19 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:19 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:20 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:20 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:20 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:20 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:20 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://mirrors.hustunique.com/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:21 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:21 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:22 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:22 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://mirrors.hust.edu.cn/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:23 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:23 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:24 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:24 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://mirrors.ustc.edu.cn/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:25 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:25 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:25 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:25 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://mirrors.ispros.com.bd/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:26 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:26 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:27 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:27 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:27 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:28 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:28 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.twaren.net/Linux/OpenSuSE/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:29 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:29 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:30 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:30 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://mirror.nus.edu.sg/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:31 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:31 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:31 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:31 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.kaist.ac.kr/pub/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:32 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:32 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-01 15:27:32 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:32 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.neowiz.com/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    2014-10-01 15:27:33 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-01 15:27:33 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to use zypper with wget as default downloader?

    On 2014-10-01 10:46, banhbaochay wrote:

    > After that, I export variable to use aria2 with zypper by command
    >
    > Code:
    > --------------------
    > export ZYPP_ARIA2C=1
    > --------------------
    >
    >
    > However, zypper can't still download from repository and here's the log
    > from /var/log/zypper.log



    Code:
    
    >      2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp:fetcher] Fetcher.cc(provideToDest):547 Not found in cache, downloading
    >    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide  file ./repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz from media number 1
    >    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(2): desired (cached)
    >    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(2): desired (cached)
    >    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp] MediaAria2c.cc(fillAriaCmdLine):182 Passing http-proxy credentials 'dungla4:PASSWORD'
    >    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] ExternalProgram.cc(start_program):229 Executing 'aria2c' '--user-agent=ZYpp 12.9.0 (aria2 version 1.16.1) openSUSE-12.3-x86_64' '--summary-interval=1' '--follow-metalink=mem' '--check-integrity=true' '--file-allocation=none' '--server-stat-of=/var/cache/zypp/aria2.stats' '--server-stat-if=/var/cache/zypp/aria2.stats' '--uri-selector=adaptive' '--use-head=false' '--max-tries=5' '--max-concurrent-downloads=5' '--connect-timeout=180' '--http-proxy=http://fsoft-proxy:8080' '--dir=/var/adm/mount/AP_0xo2A1KP/repodata' '--conf-path=/var/tmp/TmpFile.OjS7ty' 'http://download.opensuse.org/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    >    2014-10-01 15:27:06 <1> linux-ukui.site(7922) [zypp++] ExternalProgram.cc(start_program):381 pid 7973 launched
    >    2014-10-01 15:27:07 <1> linux-ukui.site(7922) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.uni-ulm.de/mirrors/opensuse/update/12.3/repodata/201274629e9d3c2a1cea5e6cc88b5a316afd992ef10037f0765fbb348e9705aa-app-icons.tar.gz'
    >    2014-10-01 15:27:08 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'
    >    2014-10-01 15:27:08 <2> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    >    2014-10-01 15:27:08 <3> linux-ukui.site(7922) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#1cd93c 0B/42KiB(0%) CN:1 DL:0B]'

    Interesting; I was not aware that the setting ZYPP_ARIA2C made a difference today.

    zypper is having problems parsing the output from aria2c. Please make sure that the root locale is
    POSIX, not your local language:

    Code:
    Elessar:~ # locale
    LANG=POSIX
    LC_CTYPE=en_US.UTF-8
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=
    Elessar:~ #

    Then try again.


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,170

    Default Re: How to use zypper with wget as default downloader?

    To me it seems that you have a problem using zypper refresh.

    Now instead of asking here help in solving this problem, you went down a path ( that I do not fully understand, but that maybe me), that brought you to the title as you used it for this thread.

    Wouldn't it have been better to present the original problem here? Refreshing the 12.3 Update repo is something that goes without any flaw for the far majority of the 12.3 users here. So why trying to change something deep inside the mechanism instead of trying to find why it is going wrong in your case?
    Henk van Velden

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to use zypper with wget as default downloader?

    On 2014-10-01 12:46, hcvv wrote:

    > Wouldn't it have been better to present the original problem here?


    I think it is hiding in the first message of the thread ;-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  6. #6

    Default Re: How to use zypper with wget as default downloader?

    @robin_listar: Thanks for helping. I change locale to POSIX and try zypper refresh with aria2 but no luck
    Code:
    [zypp++] ExternalProgram.cc(start_program):229 Executing 'aria2c' '--user-agent=ZYpp 12.9.0 (aria2 version 1.16.1) openSUSE-12.3-x86_64' '--summary-interval=1' '--follow-metalink=mem' '--check-integrity=true' '--file-allocation=none' '--server-stat-of=/var/cache/zypp/aria2.stats' '--server-stat-if=/var/cache/zypp/aria2.stats' '--uri-selector=adaptive' '--use-head=false' '--max-tries=5' '--max-concurrent-downloads=5' '--connect-timeout=180' '--http-proxy=http://<myproxy>:8080' '--dir=/var/adm/mount/AP_0xbXD5Tr/repodata' '--conf-path=/var/tmp/TmpFile.6Y9mOL' 'http://download.opensuse.org/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz'
    2014-10-02 09:23:19 <1> linux-ukui.site(3569) [zypp++] ExternalProgram.cc(start_program):381 pid 3619 launched
    2014-10-02 09:23:20 <3> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#62b801 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-02 09:23:20 <2> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    2014-10-02 09:23:20 <3> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#62b801 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-02 09:23:20 <1> linux-ukui.site(3569) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.uni-kl.de/pub/linux/opensuse/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz'
    2014-10-02 09:23:21 <1> linux-ukui.site(3569) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://widehat.opensuse.org/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz'
    2014-10-02 09:23:21 <3> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#62b801 0B/42KiB(0%) CN:1 DL:0B]'
    2014-10-02 09:23:21 <2> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    But I can use aria2 to download this link
    Code:
    aria2c http://ftp.uni-kl.de/pub/linux/opensuse/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz
    [#2a7324 0B/42KiB(0%) CN:1 DL:35KiB ETA:1s]                                                                                               
    [NOTICE] Download complete: /home/dungla4/tmp/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz
    
    Download Results:
    gid   |stat|avg speed  |path/URI
    ======+====+===========+=======================================================
    2a7324|OK  |    39KiB/s|/home/dungla4/tmp/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz
    
    Status Legend:
    (OK):download completed
    Notice that the user-agent is not my setting (I set it to MozillaFirefox in /root/.aria2/aria2.conf), but http-proxy is my setting

    @hccv: Yes, I have a problem while refreshing repository (the same while installing). I know the reason is located curl which is used by zypper (default). I can't config curl behind proxy and I can use wget/aria2 to download packages from repo. So I want to change default downloader of zypper to wget. Hope it help you understand my problem

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to use zypper with wget as default downloader?

    On 2014-10-02 04:46, banhbaochay wrote:
    >
    > @robin_listar: Thanks for helping. I change locale to POSIX and try
    > zypper refresh with aria2 but no luck


    I tried to reproduce your problem, but after setting "ZYPP_ARIA2C=1", zypper did not use aria2c to download and install a test package.
    Then I noticed that you said you are using openSUSE 12.3, when I use 13.1. Maybe 13.1 does not heed that variable.


    Code:
    
    >     [zypp++] ExternalProgram.cc(start_program):229 Executing 'aria2c' '--user-agent=ZYpp 12.9.0 (aria2 version 1.16.1) openSUSE-12.3-x86_64' '--summary-interval=1' '--follow-metalink=mem' '--check-integrity=true' '--file-allocation=none' '--server-stat-of=/var/cache/zypp/aria2.stats' '--server-stat-if=/var/cache/zypp/aria2.stats' '--uri-selector=adaptive' '--use-head=false' '--max-tries=5' '--max-concurrent-downloads=5' '--connect-timeout=180' '--http-proxy=http://<myproxy>:8080' '--dir=/var/adm/mount/AP_0xbXD5Tr/repodata' '--conf-path=/var/tmp/TmpFile.6Y9mOL' 'http://download.opensuse.org/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz'
    >   2014-10-02 09:23:19 <1> linux-ukui.site(3569) [zypp++] ExternalProgram.cc(start_program):381 pid 3619 launched
    >   2014-10-02 09:23:20 <3> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#62b801 0B/42KiB(0%) CN:1 DL:0B]'
    >   2014-10-02 09:23:20 <2> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available
    >   2014-10-02 09:23:20 <3> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#62b801 0B/42KiB(0%) CN:1 DL:0B]'
    >   2014-10-02 09:23:20 <1> linux-ukui.site(3569) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://ftp.uni-kl.de/pub/linux/opensuse/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz'
    >   2014-10-02 09:23:21 <1> linux-ukui.site(3569) [zypp++] MediaAria2c.cc(getFileCopy):377 aria2c reported: ' [AbstractCommand.cc:304] errorCode=22 URI=http://widehat.opensuse.org/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz'
    >   2014-10-02 09:23:21 <3> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):363 Can't parse progress line '[#62b801 0B/42KiB(0%) CN:1 DL:0B]'
    >   2014-10-02 09:23:21 <2> linux-ukui.site(3569) [zypp] MediaAria2c.cc(getFileCopy):417 aria2c reported a file, but no progress data available

    >
    >
    > But I can use aria2 to download this link


    The problem is not that aria2c can't download files, but that the output messages it prints are not understood by zypper: "Can't parse progress line '[#62b801 0B/42KiB(0%) CN:1 DL:0B]'".
    I initially thought that perhaps your locale setting was interfering.


    Besides that:

    Code:
    
    >     aria2c http://ftp.uni-kl.de/pub/linux/opensuse/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz
    You have to do it in the exact same way as zypper is doing it:

    Code:
    aria2c --user-agent=ZYpp 12.9.0 (aria2 version 1.16.1) openSUSE-12.3-x86_64 --summary-interval=1 --follow-metalink=mem --check-integrity=true --file-allocation=none --server-stat-of=/var/cache/zypp/aria2.stats --server-stat-if=/var/cache/zypp/aria2.stats --uri-selector=adaptive --use-head=false --max-tries=5 --max-concurrent-downloads=5 --connect-timeout=180 --http-proxy=http://<myproxy>:8080 --dir=/var/adm/mount/AP_0xbXD5Tr/repodata --conf-path=/var/tmp/TmpFile.6Y9mOL http://download.opensuse.org/update/12.3/repodata/72ec1c0ce1e356099d4b423de344bf03ed9acd1d9fdffbfd7da1205697a91c52-app-icons.tar.gz
    And of course, you have to ensure that the configuration files and directories given in there do exist and have the same content...

    >
    >
    > Notice that the user-agent is not my setting (I set it to MozillaFirefox
    > in /root/.aria2/aria2.conf), but http-proxy is my setting


    See above.

    Notice that setting the agent to something different than ZYpp may confuse MirrorBrain-zypper combo (educated guess).


    What I would do is NOT set "ZYPP_ARIA2C=1". I'm not sure that the feature is still maintained.



    > @hccv: Yes, I have a problem while refreshing repository (the same while
    > installing). I know the reason is located curl which is used by zypper
    > (default). I can't config curl behind proxy and I can use wget/aria2 to
    > download packages from repo. So I want to change default downloader of
    > zypper to wget. Hope it help you understand my problem


    AHHHH! No, you can not do that.


    You'd have to reprogram zypper to understand wget. If memory serves me, they used curl and not wget because there is a library to do it. wget they'd have to use as external program, same as they did with aria2c (and they dropped it for the same reason).

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  8. #8
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,643
    Blog Entries
    3

    Default Re: How to use zypper with wget as default downloader?

    Quote Originally Posted by banhbaochay View Post
    I can't config curl behind proxy ...
    I haven't tried that because I don't use a proxy. But have you tried configuring a proxy with Yast? I was under the impression that "curl" used the proxy defined that way.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  9. #9

    Default Re: How to use zypper with wget as default downloader?

    Thanks Robin,
    With your information, I understand zypper only use curl for downloading packages from repositories. So I will focus to how to config curl with proxy

    I will start new topic because my main question in this topic is answered

    @nrickert: I config proxy in Yast before. I'll start new topic for that problem. Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •