Ubuntu: Error during installation Openldap on ubuntu



Question:

Please help me to find out why its not working

  root@icloud_mail# sudo apt-get install slapd ldap-utils  Reading package lists... Done  Building dependency tree         Reading state information... Done  The following extra packages will be installed:    libodbc1 libslp1  Suggested packages:    libmyodbc odbc-postgresql tdsodbc unixodbc-bin slpd openslp-doc  The following NEW packages will be installed:    ldap-utils libodbc1 libslp1 slapd  0 upgraded, 4 newly installed, 0 to remove and 284 not upgraded.  Need to get 2,243 kB of archives.  After this operation, 5,595 kB of additional disk space will be used.  Do you want to continue [Y/n]? Y  Err http://us.archive.ubuntu.com/ubuntu/ quantal/main libodbc1 i386 2.2.14p2-5ubuntu4    Could not connect to 172.19.48.164:8080 (172.19.48.164). - connect (110: Connection timed out)  Err http://us.archive.ubuntu.com/ubuntu/ quantal/main libslp1 i386 1.2.1-9    Unable to connect to 172.19.48.164:8080:  


Solution:1

Apparently, your APT configuration is set to connect using a proxy server. This server cannot be reached and that is what the error is about. How do we know that? Well, it should not connect to a local IP address for the Ubuntu mirror for downloading the packages. The combination with the connect to port 8080 instead of plain HTTP on port 80, this is behaviour of APT that can only be caused by proxy configuration settings.

I assume your proxy server isn't online anymore and you don't want to use it anymore.

  1. Find the configuration line responsible for it:

    grep -rni proxy /etc/apt  
  2. The results will list something like

    /etc/apt/apt.conf:1:Acquire::http::Proxy "http://1.2.3.4:8000/";  

    What you see here is that in the file /etc/apt/apt.conf on line 1 APT is configured to connect using that proxy address. On your system filename and line are likely to be different.

  3. Edit the file with the line. Comment it (prepend it with a hash #) or simply remove the line. Use a text editor, e.g. nano (or any other of your preference):

    sudo nano /etc/apt/apt.conf  
  4. Save and close.

  5. Update the APT lists:

    sudo apt-get update  

Happy updating/installing.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »