apt-proxy warning on start

Bug #308376 reported by Laurent Dinclaux
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-proxy (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apt-proxy

~$ sudo service apt-proxy restart
 * Stopping apt-proxy [ OK ]
 * Starting apt-proxy /usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
/usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
    t

Revision history for this message
Damien Laureaux (timoa) wrote :

In Ubuntu Jaunty (APT Proxy version 1.9.36.3+mnu1)

I've got this message since many upgrade package with python 2.6 :

~$ sudo apt-get /etc/init.d/apt-proxy restart
 * Stopping apt-proxy [ OK ]
 * Starting apt-proxy /usr/lib/python2.6/dist-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
/usr/lib/python2.6/dist-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib/python2.6/dist-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
/usr/lib/python2.6/dist-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
/usr/lib/python2.6/dist-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib/python2.6/dist-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
                                                                         [ OK ]

Revision history for this message
Phil (philippe-vialle) wrote :

Hi all,

This problem does not seem to be new, and I did not find any official solution, even on a fully patched server.

Here is the workaround I would suggest: stop the APT-Proxy service, and then comment the line
from twisted.manhole.telnet import ShellFactory
at the top of the executable file of APT-proxy (something like /usr/sbin/apt-proxy huh?). .

After that, you should see a clean start of APT-proxy:
Starting apt-proxy:None
None
.

This works on Debian Lenny, that should be the same on Ubuntu.

Obviously, we will need to keep an eye on it, until the next APT-proxy release or update.

IHTH.
Cheers,
Ph. VIALLE

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.