nottsure Posted November 16, 2018 Posted November 16, 2018 Hello, I wasn't sure if to post here or in the nix forum, but it seems to be a filtering issue. I'm just wondering if anyone has any Linux boxes working on emPSN or the LA provided internet / filtering. I've got a Ubuntu (18.04) box and two Raspberry Pi's (Screenly) which will update fine offsite but refuse to update on site. I've gone through whitelisting URLs but with no effect. LA is unwilling to help as they don't support Linux; only Windows. Any help or pointers would be gratefully received. TIA
ADMaster Posted November 17, 2018 Posted November 17, 2018 Can you browse the internet, but not update, or no network connection at all? I don't know what the Pi's run, but for apt has its own proxy config files. Take a look at this. https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-the-proxy-for-apt-for-ubuntu-18-04/ I used to setup Acquire::http::Proxy when I used Apt-Cacher for multiple Ubuntu servers. 1
nottsure Posted November 17, 2018 Author Posted November 17, 2018 (edited) Thank you for the link. Something to test on Monday. I can get internet, and browse fine on all the boxes. On the Ubuntu box I’m using the pac file supplied by the LA and on the PIs (Debian based) I’m not using a proxy at all. We have a staff proxy and student proxy which changes the level of filtering. AFAIK the non proxy PIs will end up through the student filtering, but the Ubuntu box will go through the staff (very nearly unlimited) filtering. Edited November 17, 2018 by nottsure
ReBoot Posted November 18, 2018 Posted November 18, 2018 What happens if you do the following from a terminal ? (This just fetches the list of available updates so won't harm anything.) Is it hanging or can you see it downloading anything. sudo apt-get update
nottsure Posted November 18, 2018 Author Posted November 18, 2018 I can’t remember the exact message but each part came up with connection refused. Nothing to install.
ReBoot Posted November 18, 2018 Posted November 18, 2018 Sounds like you need to manually enter the proxy configuration for apt as suggested by ADMaster. That should fix things. I currently run Ubuntu servers behind LA proxies and have not experienced any issues getting updates. 1
nottsure Posted November 18, 2018 Author Posted November 18, 2018 Thank you ReBoot, I’ll give that a try and report back.
jinnantonnixx Posted November 19, 2018 Posted November 19, 2018 (edited) If you've got a proxy set up in your user environment, through exports or /etc/environment, you might have to pass the -E switch to sudo to preserve the environment (including proxy settings) Try this sudo -E apt-get update and if it works, continue with this: sudo -E apt-get upgrade If that fails, test your proxy with a simple curl request. curl www.microsoft.com You should see a response like this: Microsoft CorporationYour current User-Agent string appears to be from an automated process, if this is incorrect, please click this link:United States English Microsoft Homepage If you get an error response from your proxy, you've got a fundamental authentication problem. Edited November 19, 2018 by jinnantonnixx 1
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