Results 1 to 9 of 9

Thread: How To Authenticate Wifi Network For System?

  1. #1
    Join Date
    Apr 2013
    Location
    /Earth/Bangladesh/Dhaka/
    Beans
    120
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question How To Authenticate Wifi Network For System?

    Currently i am using a wifi network.
    To access wifi authentication required. So when i open firefox it give me field for id and password.I have my id and pass. I access firefox using that and i can browse or download any thing.
    But when I tried to download using terminal code:
    Code:
    sudo apt-get install
    It says "Proxy authentication required" for every server.

    Also I cant download the updates using wifi it gives following errors "Installation from unauthenticated source"

    How can i authenticate with my id and password for terminal or system downloads?

  2. #2
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,970
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: How To Authenticate Wifi Network For System?

    You need to set the proxy setting of the current network in "proxy-settings"

  3. #3
    Join Date
    Apr 2013
    Location
    /Earth/Bangladesh/Dhaka/
    Beans
    120
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How To Authenticate Wifi Network For System?

    I have set proxy settings from network option.I think there is no problem with proxy settings.The problem is Authentication.
    if i give this code in the terminal
    Code:
    sudo apt-get update
    It gives following error:

    W: Failed to fetch http://download.opensuse.org/reposit...2.10/./Sources 407 Proxy Authentication Required

    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dist...source/Sources 407 Proxy Authentication Required

    W: Failed to fetch http://ppa.launchpad.net/rvm/smplaye...source/Sources 407 Proxy Authentication Required

    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...source/Sources 407 Proxy Authentication Required

    W: Failed to fetch http://download.opensuse.org/reposit....10/./Packages 407 Proxy Authentication Required

    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dist...-i386/Packages 407 Proxy Authentication Required

    E: Some index files failed to download. They have been ignored, or old ones used instead.

    Problem Is I dont know how to authenticate with my id and pass!!!
    Last edited by Ashfaqur Rahman; April 21st, 2013 at 07:41 AM.

  4. #4
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,970
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: How To Authenticate Wifi Network For System?

    Check:

    Code:
    echo 'Acquire::http::proxy "false";' | sudo tee -a /etc/apt/apt.conf
    Reboot and try again.

  5. #5
    Join Date
    Apr 2013
    Location
    /Earth/Bangladesh/Dhaka/
    Beans
    120
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How To Authenticate Wifi Network For System?

    I have tried that but now its giving following error:

    Code:
    Ign http://download.opensuse.org ./ InRelease                                  
    Ign http://dl.google.com stable InRelease                                      
    Ign http://extras.ubuntu.com quantal InRelease                                                                                                 
    Ign http://bd.archive.ubuntu.com quantal InRelease                                                                                             
    Ign http://security.ubuntu.com quantal-security InRelease                                                                                      
    Err http://extras.ubuntu.com quantal Release.gpg                                                                                               
      Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)
    Ign http://bd.archive.ubuntu.com quantal-updates InRelease                                                                                     
    Err http://security.ubuntu.com quantal-security Release.gpg                                                                                    
      Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)

  6. #6
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,970
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: How To Authenticate Wifi Network For System?

    Check:
    Code:
    cat /etc/apt/apt.conf
    cat /etc/apt/sources.list

  7. #7
    Join Date
    Apr 2013
    Location
    /Earth/Bangladesh/Dhaka/
    Beans
    120
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How To Authenticate Wifi Network For System?

    I have tried all your ideas.I am telling u in details:

    After connecting to wifi. From network settings I have set network proxy manual from automatic and gave my proxy settings there(IP = 172.16.180.251 and Port = 3128).
    I also click the option "Apply system wide" too.
    After that When I open a browser it asks me for my wifi username and pass.After giving my username and pass I can browse from browser also can download anything from browser.

    But the problem is when I tried to download software through apt-get or try to update ubuntu, I CAN'T!

    When I try to install through apt-get it gives following errors:
    Code:
    sajib@MULTIVAC:~$ sudo apt-get install  uget
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      uget
    0 upgraded, 1 newly installed, 0 to remove and 333 not upgraded.
    Need to get 206 kB of archives.
    After this operation, 705 kB of additional disk space will be used.
    WARNING: The following packages cannot be authenticated!
      uget
    Install these packages without verification [y/N]? y
    Err http://bd.archive.ubuntu.com/ubuntu/ quantal/universe uget i386 1.8.2-1
      407  Proxy Authentication Required
    Failed to fetch http://bd.archive.ubuntu.com/ubuntu/pool/universe/u/uget/uget_1.8.2-1_i386.deb  407  Proxy Authentication Required
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    Then I gave this code echo 'Acquire::http:roxy "false";' | sudo tee -a /etc/apt/apt.conf as you told before. And after that i found:
    Code:
    sajib@MULTIVAC:~$ echo 'Acquire::http::proxy "false";' | sudo tee -a /etc/apt/apt.conf
    Acquire::http::proxy "false";
    sajib@MULTIVAC:~$ sudo apt-get install  ugetReading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      uget
    0 upgraded, 1 newly installed, 0 to remove and 333 not upgraded.
    Need to get 206 kB of archives.
    After this operation, 705 kB of additional disk space will be used.
    WARNING: The following packages cannot be authenticated!
      uget
    Install these packages without verification [y/N]? y
    Err http://bd.archive.ubuntu.com/ubuntu/ quantal/universe uget i386 1.8.2-1
      Something wicked happened resolving 'bd.archive.ubuntu.com:http' (-5 - No address associated with hostname)
    Failed to fetch http://bd.archive.ubuntu.com/ubuntu/pool/universe/u/uget/uget_1.8.2-1_i386.deb  Something wicked happened resolving 'bd.archive.ubuntu.com:http' (-5 - No address associated with hostname)
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


    After that I examined
    cat /etc/apt/apt.conf which gives this:
    Code:
    sajib@MULTIVAC:~$ cat /etc/apt/apt.conf
    Acquire::http::proxy "http://172.16.180.251:3128/";
    Acquire::https::proxy "https://172.16.180.251:3128/";
    Acquire::ftp::proxy "ftp://172.16.180.251:3128/";
    Acquire::socks::proxy "socks://172.16.180.251:3128/";
    Acquire::http::proxy "false";

    And
    cat /etc/apt/sources.list which gives:
    Code:
    sajib@MULTIVAC:~$ cat /etc/apt/sources.list
    # deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
    
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://bd.archive.ubuntu.com/ubuntu/ quantal main restricted
    deb-src http://bd.archive.ubuntu.com/ubuntu/ quantal main restricted
    
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://bd.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
    deb-src http://bd.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
    
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://bd.archive.ubuntu.com/ubuntu/ quantal universe
    deb-src http://bd.archive.ubuntu.com/ubuntu/ quantal universe
    deb http://bd.archive.ubuntu.com/ubuntu/ quantal-updates universe
    deb-src http://bd.archive.ubuntu.com/ubuntu/ quantal-updates universe
    
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://bd.archive.ubuntu.com/ubuntu/ quantal multiverse
    deb-src http://bd.archive.ubuntu.com/ubuntu/ quantal multiverse
    deb http://bd.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
    deb-src http://bd.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
    
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://bd.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
    deb-src http://bd.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
    
    
    deb http://security.ubuntu.com/ubuntu quantal-security main restricted
    deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
    deb http://security.ubuntu.com/ubuntu quantal-security universe
    deb-src http://security.ubuntu.com/ubuntu quantal-security universe
    deb http://security.ubuntu.com/ubuntu quantal-security multiverse
    deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse
    
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu quantal partner
    # deb-src http://archive.canonical.com/ubuntu quantal partner
    
    
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu quantal main
    deb-src http://extras.ubuntu.com/ubuntu quantal main
    deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_12.10/ ./
    deb-src http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_12.10/ ./

    AFTER THAT SAME PROBLEM STILL EXIST!!!!

  8. #8
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,970
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: How To Authenticate Wifi Network For System?

    Did you run:

    sudo apt-get update

  9. #9
    Join Date
    Apr 2013
    Location
    /Earth/Bangladesh/Dhaka/
    Beans
    120
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How To Authenticate Wifi Network For System?

    I have run:
    Code:
    sudo apt-get update
    It gives following errors:
    Code:
    Err http://extras.ubuntu.com quantal/main Sources                              
      407  Proxy Authentication Required
    Err http://download.opensuse.org ./ Sources                                    
      407  Proxy Authentication Required
    Its clearly seen that it cant authenticate.Thats what I am looking for.
    How can I authenticate?

Tags for this Thread

Bookmarks

Posting Permissions

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