Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #231149

Re: problem with wget -O

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: problem with wget -O
Date 2021-01-25 23:10 +0100
Message-ID <BBidD-65F-79@gated-at.bofh.it> (permalink)
References <BBf61-43Z-3@gated-at.bofh.it> <BBgYa-5bw-13@gated-at.bofh.it> <BBh7R-5ex-21@gated-at.bofh.it> <BBhhw-5wV-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jan 25, 2021 at 04:07:33PM -0500, Gene Heskett wrote:
> gene@coyote:~/src/build$ cd .. && wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
> Cannot specify both -k or --convert-file-only and -O if multiple URLs are given, or in combination
> with -p or -r. See the manual for details.
> 
> Usage: wget [OPTION]... [URL]...

I tried to duplicate this myself, using buster, and using stretch (as
you previously reported this is on stretch).  I was not able to do so
using only modifications of the command you gave.  I tried replacing the
space after -O with a non-breaking space, and I tried using -O -opencv.zip
(hinted by the -p in the error message).

My next guess is that perhaps wget is receiving additional options from
somewhere other than your command line.  Perhaps via an environment
variable, or something.

Apparently wget doesn't have any such env vars, but it does allow a
startup file, which it calls ".wgetrc".  Or /etc/wgetrc.

So, after reading up on that, and experimenting a bit:

unicorn:/tmp/build$ cat ~/.wgetrc
convert-links = on
page-requisites = on

If I create a ~/.wgetrc file with at least those two lines in it, then
I get the same error you got.

Do you have a ~/.wgetrc file?  If so, what's in it?  If not, what's in
your /etc/wgetrc file (other than comments and blank lines)?

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: problem with wget -O Roberto C. Sánchez <roberto@debian.org> - 2021-01-25 19:50 +0100
  Re: problem with wget -O Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-25 20:00 +0100
    Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 21:20 +0100
      Re: problem with wget -O Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-25 21:40 +0100
        Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 21:50 +0100
          Re: problem with wget -O Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-25 22:00 +0100
            Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 22:10 +0100
              Re: problem with wget -O Darac Marjal <mailinglist@darac.org.uk> - 2021-01-25 22:50 +0100
                Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 23:40 +0100
                Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 23:40 +0100
                Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-26 00:00 +0100
                Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-26 00:10 +0100
                Re: problem with wget -O <tomas@tuxteam.de> - 2021-01-26 10:50 +0100
                Re: problem with wget -O l0f4r0@tuta.io - 2021-01-26 13:40 +0100
                Re: problem with wget -O <tomas@tuxteam.de> - 2021-01-26 14:50 +0100
              Re: problem with wget -O Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-25 23:10 +0100
                Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 23:50 +0100
                Re: problem with wget -O Vincent Lefevre <vincent@vinc17.net> - 2021-01-26 10:50 +0100
                Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-26 12:30 +0100
                Re: problem with wget -O Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-26 13:40 +0100
                Re: problem with wget -O Vincent Lefevre <vincent@vinc17.net> - 2021-01-26 15:00 +0100
                Re: problem with wget -O Celejar <celejar@gmail.com> - 2021-01-26 15:10 +0100
                Re: problem with wget -O Vincent Lefevre <vincent@vinc17.net> - 2021-01-26 14:50 +0100
                Re: problem with wget -O David Wright <deblis@lionunicorn.co.uk> - 2021-01-28 17:10 +0100
                Re: problem with wget -O Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-28 17:20 +0100
                Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-28 21:10 +0100
                Re: problem with wget -O Brian <ad44@cityscape.co.uk> - 2021-01-28 22:00 +0100
                Re: problem with wget -O David Wright <deblis@lionunicorn.co.uk> - 2021-01-29 18:30 +0100
                Re: problem with wget -O rhkramer@gmail.com - 2021-01-29 18:40 +0100
                Re: problem with wget -O David Wright <deblis@lionunicorn.co.uk> - 2021-01-29 18:00 +0100
                Re: problem with wget -O Vincent Lefevre <vincent@vinc17.net> - 2021-01-26 10:50 +0100
    Re: problem with wget -O Nicolas George <george@nsup.org> - 2021-01-26 12:40 +0100
      Re: problem with wget -O <tomas@tuxteam.de> - 2021-01-26 13:20 +0100
  Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 21:10 +0100
    Re: problem with wget -O Roberto C. Sánchez <roberto@debian.org> - 2021-01-25 21:20 +0100
      Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 21:40 +0100
    Re: problem with wget -O deloptes <deloptes@gmail.com> - 2021-01-25 21:20 +0100
      Re: problem with wget -O Gene Heskett <gheskett@shentel.net> - 2021-01-25 21:30 +0100
        Re: problem with wget -O deloptes <deloptes@gmail.com> - 2021-01-26 00:20 +0100

csiph-web