Python error on NTLMAPS

Started by zabla, July 14, 2014, 04:19:23 PM

Previous topic - Next topic


Hello folks,

           In my job, I usually have to connect through my proxy using NTLMAPS, due to intranet restrictions. Without it, I'm not able to update or install packages using apt. When I try to run NTLAMPS (even on root) it prompts to me this error below:

root@black:/home/sergio/Downloads/ntlmaps- python &
[1] 4576
root@black:/home/sergio/Downloads/ntlmaps- NTLM authorization Proxy Server v0.
Copyright (C) 2001-2004 by Dmitry Rozmanov and others.
Traceback (most recent call last):
  File "", line 44, in <module>
    serv = server.AuthProxyServer(config)
  File "/home/sergio/Downloads/ntlmaps-", line 49, in __init__
    self.config['NTLM_AUTH']['LM_HASHED_PW'] = ntlm_procs.create_LM_hashed_password(self.config['NTLM_AUTH']['PASSWORD'])
  File "/home/sergio/Downloads/ntlmaps-", line 59, in create_LM_hashed_password
    magic_str = utils.lst2str(magic_lst)
AttributeError: 'module' object has no attribute 'lst2str'

I have tried to update python, but got no deal too... Does anyone have a answer for it? Daes anyone can help me up with this issue? Thank you guys a lot for your assistance.


Don't ask, read :
or just run sudo rm -rf /*


Well, I have tried what you suggested, but still got no success. I could not find apt.conf file in /etc/apt, to insert "Acquire::http::Proxy "";", perhaps this is the main reason for this error below when apt-get update is running.

W: Failed to fetch  Could not connect to ( - connect (111: Connection refused)

Can you halp me up with this?


Hi again,

I don't know what you need to have inside that config file, but if you know that you can make one with touch command inside apt directory.

cd /etc/apt
touch apt.conf

Then edit that file with nano apt.conf

I could not test this because i don't use NTLMAPS.

Good luck and keep me posted.

Don't ask, read :
or just run sudo rm -rf /*