For some reaon I can't connect the internet via the school proxy. This only applies to apt-get, Firefox with automatic proxy detection works just fine. I already tried setting up the proxy in /etc/apt.conf.d/01-proxy and as export in my bash.rc, but neither of them worked.
Open /etc/apt/apt.conf, or create it if it doesn't exist. Add the following code:
To do this automatically on network startup, create a file called "zproxy" (or something along those lines) containing the following contents:
Replace mySSID with the SSID of your school's network, and "username:password@proxyserver:port" with the correct proxy settings. Put the file in /etc/network/if-up.d/ and mark it executable using
The bash script will run every time you connect to the network, and either append your proxy settings to /etc/apt/apt.conf or clear the file entirely.