According to git, the function was first shipped in APT 0.9.8, so you should be able to just apply
http://anonscm.debian.org/cgit/apt/python-apt.git/commit/?id=d92026e96db4a4d03cec9f135b5407804892c55f
to trusty's python-apt , and maybe:
http://anonscm.debian.org/cgit/apt/python-apt.git/commit/?id=6fb8772391b29974985c7194bb7a4cdbff86b12d
According to git, the function was first shipped in APT 0.9.8, so you should be able to just apply
http:// anonscm. debian. org/cgit/ apt/python- apt.git/ commit/ ?id=d92026e96db 4a4d03cec9f135b 5407804892c55f
to trusty's python-apt , and maybe:
http:// anonscm. debian. org/cgit/ apt/python- apt.git/ commit/ ?id=6fb8772391b 29974985c7194bb 7a4cdbff86b12d