OK, so I need to dig a bit further into this. I think if I move the if I
break things elsewhere. IIRC, I added the if that early because, when
apt received a redirect with Content-Length: 0, it started hanging, and
that fixed it. But maybe it breaks some other stuff now.

** Changed in: apt (Ubuntu)
       Status: Triaged => Invalid

You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs

  apt update hangs when repository url is redirect url

Status in apt package in Ubuntu:
Status in apt source package in Xenial:
Status in apt source package in Artful:

Bug description:

  When using redirect url on /etc/apt/sources.list

  apt update command hangs

  this is affected with commit

  In my test, moving below[1] code after[2]

  if (ContentLength == 0)
      return true;
  if (Encoding == Closes)
      Encoding = Stream;


  it worked fine.

  [Test Case]

  echo "deb http://packages.cloudfoundry.org/debian stable main" >

  apt update


To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to     : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp

Reply via email to