Renfield-64 Posted October 14, 2014 Posted October 14, 2014 Hi I have bought a few Pibrellas to use with the school Raspberry Pi modules. On my Pi at home I have successfully used the following commands to get what is necessary to program the Pibrella: Sudo apt-get update Sudo apt-get upgrade Sudo apt-get install python-pip Sudo pip install Pibrella When I try this on my modules in school I can't get the updates with the errors shown on this screen snapshot: Even if I take one of the SD cards home and put it in my own Pi it does the same. I can get to the internet thro' the Pi in school. Any ideas?
caffrey Posted October 14, 2014 Posted October 14, 2014 (edited) You need to add the proxy info for them to connect add your proxy to /etc/apt/apt.conf if I remember correctly with :- Acquire::http::proxy "http://user:pass@yourproxyaddress:port/"; Edited October 14, 2014 by caffrey
Renfield-64 Posted October 14, 2014 Author Posted October 14, 2014 (edited) Hi Thanks for your reply but when I type this at the command prompt I get this: bash: Acquire::http::proxy command not found (the 'p' of proxy keeps turning into a smiley in my post....Grrr) Edited October 14, 2014 by plexer
caffrey Posted October 14, 2014 Posted October 14, 2014 you need to create/edit the file e.g sudo nano /etc/apt/apt.conf - put your changes in that, ctrl-X to exit and save changes
plexer Posted October 14, 2014 Posted October 14, 2014 Hi Thanks for your reply but when I type this at the command prompt I get this: bash: Acquire::http::proxy command not found (the 'p' of proxy keeps turning into a smiley in my post....Grrr) To prevent that you can either use code tags or if you hit "go advanced" you can disable smileys in your text. Ben
Renfield-64 Posted October 14, 2014 Author Posted October 14, 2014 (edited) Thanks all, I found this on another post in the end which worked: sudo apt-get -o Acquire::http::proxy="http://proxyurl:port" update Edited October 14, 2014 by plexer
Renfield-64 Posted October 14, 2014 Author Posted October 14, 2014 The only bit I can't get to work is the last bit: sudo pip install pibrella. sudo apt-get -o Acquire::http:proxy="http://proxyurlport" update sudo apt-get -o Acquire::http:proxy="http://proxyurlport" upgrade sudo apt-get -o Acquire::http:proxy="http://proxyurlport" install python-pip all work ok.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now