I am trying to make a bash script that will set up a proxy on my computer running ubuntu studio. This [1] tells me that I should set up the proxies for apt-get and Update Manager by creating a file 95proxies in /etc/apt/apt.conf.d/.
the problem is when I run this code.
sudo echo "Acquire::http::proxy "http://myproxy.server.com:8080/";
Acquire::ftp::proxy "ftp://myproxy.server.com:8080/";
Acquire::https::proxy "https://myproxy.server.com:8080/";
" > /etc/apt/apt.conf.d/95proxies
I get:
bash: /etc/apt/apt.conf.d/95proxies: Permission denied
I was able to create the file with touch by
sudo touch /etc/apt/apt.conf.d/95proxies
but when I go to put data in the file I still get the error message above.