+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
*nix Thread, Raspberry Pi not able to software install packages in Technical; Hello, We have recently had some Raspberry Pi delivered and I have been given the task of getting them ready ...
  1. #1

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Raspberry Pi not able to software install packages

    Hello,

    We have recently had some Raspberry Pi delivered and I have been given the task of getting them ready in order to show ICT teachers what they can do. Unfortunately I am not able to download anything at all, I thought I'd start by installing Chrome for Raspberry Pi by running the "sudo apt-get install chromium" command but it failed with the following error "unable to connect to mirrordirector.raspbian.org:http:". I have attached a picture of the error.

    Please help

    Rav

    raspberry Pi error.jpg

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,762
    Thank Post
    354
    Thanked 533 Times in 498 Posts
    Rep Power
    182
    If you're doing this from within a school network did you set any of the proxies on the Pi? Else it wouldn't be able to connect through to the internet.

    Steve

  3. #3

    Join Date
    Nov 2010
    Posts
    471
    Thank Post
    64
    Thanked 72 Times in 59 Posts
    Rep Power
    35
    Are you behind a proxy? If so, you'll need something like 'export http_proxy="http://proxynameort" and search this forum for apt.conf which will also want a proxy setting which I can't remember off the top of my head.

  4. Thanks to mats from:

    Rav-Singh (21st June 2013)

  5. #4

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi Steve,

    Many thanks for getting back to me. I have set the proxy using the GUI interface (startx command) and am able to use the internet. Im assuming this should also work using the command line interface? or are there additional setting for this?

    Many Thanks

    Rav Singh

  6. #5

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks Mat will try this and get back to you.

    Cheers Fella !

  7. #6

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by mats View Post
    Are you behind a proxy? If so, you'll need something like 'export http_proxy="http://proxynameort" and search this forum for apt.conf which will also want a proxy setting which I can't remember off the top of my head.

    Hi Mats,

    Where would i add 'export http_proxy="http://proxynameport" ? Is this the right command 'export http_proxy="http://eduproxy.bgfl.org80"? ('eduproxy.bgfl.org' being our proxy and '80' being the port) also can you point me in the right direction of the apt.conf forum as I cant find it.

    Thanks

    Rav Singh

  8. #7

    Join Date
    Nov 2010
    Posts
    471
    Thank Post
    64
    Thanked 72 Times in 59 Posts
    Rep Power
    35
    At the command line -
    export http_proxy="http://eduproxy.bgfl.org/"

    You don't need the port number if you're using port 80.

    That gets wget working. To get apt-get using the proxy,

    create /etc/apt/conf and add this line
    Acquire::http::Proxy "http://eduproxy.bgfl.org";

    This worked on an ubuntu 12.04 machine - I think the RaspPi is also debian based so you're in with a chance. Failing that, have you tried the pi forums?

  9. Thanks to mats from:

    Rav-Singh (21st June 2013)

  10. #8

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    [QUOTE=mats;989387]At the command line -
    export http_proxy="http://eduproxy.bgfl.org/"

    You don't need the port number if you're using port 80.

    That gets wget working. To get apt-get using the proxy,

    create /etc/apt/conf and add this line
    Acquire::http::Proxy "http://eduproxy.bgfl.org";

    This worked on an ubuntu 12.04 machine - I think the RaspPi is also debian based so you're in with a chance. Failing that, have you tried the pi forums?[/QUOT

    Hi Mats,

    Sorry I should have said Im new to Linux, were do I create ' /etc/apt/conf' as ive tried to run it at the command promt with no joy, I get an error '-bash: create: command not found'

    Thanks

    Rav
    Last edited by Rav-Singh; 20th June 2013 at 04:52 PM.

  11. #9

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    [QUOTE=Rav-Singh;989447]
    Quote Originally Posted by mats View Post
    At the command line -
    export http_proxy="http://eduproxy.bgfl.org/"

    You don't need the port number if you're using port 80.

    That gets wget working. To get apt-get using the proxy,

    create /etc/apt/conf and add this line
    Acquire::http::Proxy "http://eduproxy.bgfl.org";

    This worked on an ubuntu 12.04 machine - I think the RaspPi is also debian based so you're in with a chance. Failing that, have you tried the pi forums?[/QUOT

    Hi Mats,

    Sorry I should have said Im new to Linux, were do I create ' /etc/apt/conf' as ive tried to run it at the command promt with no joy, I get an error '-bash: create: command not found'

    Thanks

    Rav
    I Have now been able to get to "/etc/apt/" by using the "cd /etc/apt" command however cant work out how to create "conf", sorry to be a pain!

    Thanks

    Rav

  12. #10

    Join Date
    May 2010
    Posts
    1,156
    Thank Post
    113
    Thanked 104 Times in 79 Posts
    Rep Power
    52
    you need to :-

    sudo nano /etc/apt/apt.conf

    In there you have
    Code:
    Acquire::http::proxy "YOURPROXY/";
    ctrl-x to escape then save
    Last edited by plexer; 21st June 2013 at 10:17 AM.

  13. 2 Thanks to caffrey:

    plexer (21st June 2013), Rav-Singh (21st June 2013)

  14. #11

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by caffrey View Post
    you need to :-

    sudo nano /etc/apt/apt.conf

    In there you have

    Acquire::http:roxy "YOURPROXY/";

    ctrl-x to escape then save
    Hi Caffrey thank you for your reply, i have carried out the above but still had no joy, I think i may be doing something wrong. i have tried the commands as follows-

    Code:
    acquire::http:proxy "eduproxy.bgfl.org/";             no joy
    acquire::http:proxy eduproxy.bgfl.org/;               no joy
    Any ideas?

    Thanks

    Rav
    Last edited by plexer; 21st June 2013 at 10:17 AM.

  15. #12

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,625
    Thank Post
    747
    Thanked 1,707 Times in 1,520 Posts
    Rep Power
    437
    Worked great for me to get apt working through a proxy for updates.

    Ben

  16. #13

    Join Date
    Nov 2010
    Posts
    471
    Thank Post
    64
    Thanked 72 Times in 59 Posts
    Rep Power
    35
    Capitals matter in Unix-like operating systems.

    sudo nano /etc/apt/apt.conf < this starts the nano editor on file /etc/apt/apt.conf (some systems work with /etc/apt/conf)

    Insert this line
    Code:
    Acquire::http::Proxy "http://eduproxy.bgfl.org:80";
    Press ctrl x and save the file. Try
    Code:
    apt-get update
    again

  17. Thanks to mats from:

    Rav-Singh (21st June 2013)

  18. #14

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by mats View Post
    Capitals matter in Unix-like operating systems.

    sudo nano /etc/apt/apt.conf < this starts the nano editor on file /etc/apt/apt.conf (some systems work with /etc/apt/conf)

    Insert this line
    Code:
    Acquire::http::Proxy "http://eduproxy.bgfl.org:80";
    Press ctrl x and save the file. Try
    Code:
    apt-get update
    again
    Thanks Mats for your reply, I have entered the command and have managed to pull some files down but others have failed, is this normal? I have attached a picture please let me know what you think.

    Many Thanks

    Rav Singh
    Attached Images Attached Images

  19. #15

    Join Date
    Apr 2012
    Location
    Birmingham
    Posts
    50
    Thank Post
    16
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Rav-Singh View Post
    Thanks Mats for your reply, I have entered the command and have managed to pull some files down but others have failed, is this normal? I have attached a picture please let me know what you think.

    Many Thanks

    Rav Singh
    P.S I got "apt-get update" working and is update now, I had to change user to root by using "sudo bash" command.

    Thanks again Mats



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 8th September 2006, 08:49 AM
  2. WMI filter to target SMARTboard software install
    By ajbritton in forum Windows
    Replies: 8
    Last Post: 15th August 2006, 09:30 PM
  3. Restrict software installation
    By nuttygeek in forum Windows
    Replies: 27
    Last Post: 13th March 2006, 11:18 PM
  4. Replies: 9
    Last Post: 8th November 2005, 10:45 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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