Results 1 to 4 of 4

Thread: apt-get update , Unable to connect to source

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    May 2012
    Posts
    1

    Default apt-get update , Unable to connect to source

    I am using Backtrack 5 R2 KDE on my Dell XPS side by side with Windows 7.
    I have connected to internet via my University wifi using a proxy. I have access to internet via Firefox.
    But when i use any "apt" command in terminal to install any package it shows an errors like Could not connect to 32.repository.backtrack-linux.org:80 (67.159.60.63), etc.


    This is what it happens when i type sudo apt-get install gedit in terminal.

    sudo apt-get install gedit
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    libdmraid1.0.0.rc16 python-pyicu libdebian-installer4 cryptsetup libecryptfs0 reiserfsprogs rdate bogl-bterm ecryptfs-utils libdebconfclient0 dmraid
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
    gedit-common launchpad-integration liblaunchpad-integration1
    The following NEW packages will be installed:
    gedit gedit-common launchpad-integration liblaunchpad-integration1
    0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
    Need to get 1,374kB of archives.
    After this operation, 17.0MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Err http://32.repository.backtrack-linux.org/ revolution/main liblaunchpad-integration1 0.1.35
    Could not connect to 32.repository.backtrack-linux.org:80 (67.159.60.63). - connect (111: Connection refused) [IP: 67.159.60.63 80]
    Err http://32.repository.backtrack-linux.org/ revolution/main gedit 2.30.3-0ubuntu0.1
    Unable to connect to 32.repository.backtrack-linux.org:http: [IP: 67.159.60.63 80]
    Err http://all.repository.backtrack-linux.org/ revolution/main gedit-common 2.30.3-0ubuntu0.1
    Could not connect to all.repository.backtrack-linux.org:80 (67.159.60.63). - connect (111: Connection refused) [IP: 67.159.60.63 80]
    Err http://all.repository.backtrack-linux.org/ revolution/main launchpad-integration 0.1.35
    Unable to connect to all.repository.backtrack-linux.org:http: [IP: 67.159.60.63 80]
    Failed to fetch http://32.repository.backtrack-linux....1.35_i386.deb Could not connect to 32.repository.backtrack-linux.org:80 (67.159.60.63). - connect (111: Connection refused) [IP: 67.159.60.63 80]
    Failed to fetch http://all.repository.backtrack-linu...ntu0.1_all.deb Could not connect to all.repository.backtrack-linux.org:80 (67.159.60.63). - connect (111: Connection refused) [IP: 67.159.60.63 80]
    Failed to fetch http://32.repository.backtrack-linux...tu0.1_i386.deb Unable to connect to 32.repository.backtrack-linux.org:http: [IP: 67.159.60.63 80]
    Failed to fetch http://all.repository.backtrack-linu...0.1.35_all.deb Unable to connect to all.repository.backtrack-linux.org:http: [IP: 67.159.60.63 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


    So guys, Please help. I can do nothing, till this problem is solved.
    Thank you in advance.

  2. #2

    Default Re: apt-get update , Unable to connect to source

    I would like to recommend to run this command first:

    apt-get update

    After that then you can try to use the apt-get anything command..
    I think the sources list on your machine is pointing to a wrong IP, and the "apt-get update"
    should resolve this. I hope it helps^^

  3. #3
    Very good friend of the forum maverik35's Avatar
    Join Date
    Sep 2009
    Location
    Debian land
    Posts
    734

    Default Re: apt-get update , Unable to connect to source

    You are behind a proxy, so you need to specify it in the apt configuration file (try to use aptitude)..So look for the apt.conf and if does not exist, look for the directory apt.conf.d...Need to know which one you have..
    If apt.conf, just add this line:

    Short format:
    Acquire::http::Proxy "<proxy address>:PORT"; or

    Long format
    # Configuración para utilizar un proxy Web
    Acquire {
    http {
    Proxy "http://xxx.xxx.xxx.xxx:PORT“;
    }
    }

    If apt.conf.d, go to that directory and create a new file called per say, "99apt-proxy", or "88my-proxy", etc (use 2 numbers and then letters)etc, then insert this:

    Short format:
    Acquire::http::Proxy "<proxy address>:PORT"; or

    Long format
    # Configuración para utilizar un proxy Web
    Acquire {
    http {
    Proxy "http://xxx.xxx.xxx.xxx:PORT“;
    }
    }

    If you set a user and password to the proxy, then just do this:

    # My Proxy with user:Password
    Acquire {
    http {
    Proxy "http://my_user:my_password@xxx.xxx.xxx.xxx:PORT";
    }
    }

    Or short format:

    Acquire::ftp::Proxy "http://my_user:my_password@xxx.xxx.xxx.xxx:PORT";

    Use the " doble quotes " in the proxys info, it is a value = String...

    Try it..

    Hope it helps...
    Last edited by maverik35; 05-10-2012 at 11:50 AM.

  4. #4
    Just burned his ISO
    Join Date
    May 2012
    Posts
    1

    Default Re: apt-get update , Unable to connect to source

    Okay; try this sudo apt-get update (i happen to stumble a pone this when i was looking for how to install missing/locked/unaccessable files)

    then try this sudo apt-get dist-upgrade* "file" (where "file" is what you want to upgrade; you can do several files at once, such as "sudo apt-get dist-upgrade metasploit framework framework2 framework3" ect (separate them by spaces; do not add commas; do not add anything to the upgrade process but a space between what you want to upgrade...)

    * = maybe install instead of upgrade im not on bt5 atm...

    but it took me 3 days to fully figure out how to install/upgrade completely (and now im running bt5r2 i was running bt5r1) and i was only trying to install metasploits framework (and update it...)

    all i have to say is dont give up; there is always a way to do what you want; (perhaps the person above me is right and you need to configure your router/firewall... idk. im still getting used to the command process myself............ >.<)

Similar Threads

  1. NVIDIA driver install - Error: Unable to find the kernel source tree......
    By Chinese in forum BackTrack 5 Beginners Section
    Replies: 45
    Last Post: 07-21-2011, 12:31 AM
  2. NVIDIA driver installing problem: Unable to find the kernel source tree...
    By adrianpip2000 in forum BackTrack 5 Beginners Section
    Replies: 1
    Last Post: 07-04-2011, 11:14 AM
  3. Unable to update
    By Virulent87 in forum BackTrack 5 General Topics
    Replies: 4
    Last Post: 05-30-2011, 01:42 PM
  4. Unable to update - BT4
    By Nirmal jose in forum OLD BT4 Feature Requests
    Replies: 1
    Last Post: 02-12-2010, 01:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •