I have a Ubuntu virtual machine that I use at work. I had previously been using this without any issues but there was an update put in that now requires all outbound connections to authenticate with our internal user name and password.
When I'm using the browser on my machine, this is not a problem, I can simply type my credentials and then move on, but when I'm running
apt-get update (or any such command) I get bombed with failures:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/source/Sources 401 Authorization Required [IP: 18.104.22.168 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/source/Sources 401 Authorization Required [IP: 22.214.171.124 80]
Is there any way I can tell
apt-get to stop and ask me to input my credentials when an Authorization request comes in, rather than just failing? I can't find any options in the help page about this:
Options: -h This help text. -q Loggable output - no progress indicator -qq No output except for errors -d Download only - do NOT install or unpack archives -s No-act. Perform ordering simulation -y Assume Yes to all queries and do not prompt -f Attempt to correct a system with broken dependencies in place -m Attempt to continue if archives are unlocatable -u Show a list of upgraded packages as well -b Build the source package after fetching it -V Show verbose version numbers -c=? Read this configuration file -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp