update-manager has has a bug which doesn't recognize the apt.conf
Here is a work around
sudo -s
cp /etc/apt/sources.list /etc/apt/sources.list.backup
insert=`sed -e "s/^A.* \"//; s/\";$// ; s,/$,," /etc/apt/apt.conf`
sed -i -e "s,http:/,$insert," /etc/apt/sources.list
cat /etc/apt/sources.list
mv /etc/apt/apt.conf /etc/apt/apt.conf.proxy
update-manager -d -c
cp /etc/apt/sources.list.backup /etc/apt/sources.list
mv /etc/apt/apt.conf.proxy /etc/apt/apt.conf
this script copies the proxy info from the /etc/apt/apt.conf file
then hard codes it into the /etc/apt/sources.list
does the deed the reverts back to the previous state
No comments:
Post a Comment