This fundamentally affects apt-get causing a failure of 'update'.

When a private repository has been added apt will fail to authenticate
to the server using the details in /etc/apt/auth.conf.

The reason is that the netrc code in apt only allocates 64 bytes for the
user token:

apt-pkg/contrib/netrc.cc::maybe_add_auth()

char login[64] = "";

but the token stored in the /etc/apt/auth.conf "login" entry is, in my
test-case, 167 bytes.

This results in the token being truncated and therefore the
authentication fails.


** Patch added: "Precise debdiff - do not truncate auth login token"
   
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1008289/+attachment/3245093/+files/apt_0.8.16%7Eexp12ubuntu10.3%7Etj.debdiff

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

** Changed in: apt (Ubuntu)
     Assignee: TJ (intuitivenipple) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1008289

Title:
  "Failed to download repository information" for purchased application

To manage notifications about this bug go to:
https://bugs.launchpad.net/software-center-agent/+bug/1008289/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to