Public bug reported:


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 stable main" >

apt update


** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: sts

** Tags added: sts

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  apt update hangs when repository url is redirect url

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to