I am having 2 laptops on one of them I did a do-release-upgrade and it took near about 10 hours to upgrade to 12.04

now I want to upgrade second laptop also so I used following thread

Best way to cache apt downloads on a LAN?

I installed on the laptop (which was upgraded to 12.04 to be used as caching server so that packages are not downloaded again)

sudo apt-get install squid-deb-proxy avahi-utils

started the service

 sudo start squid-deb-proxy

and cp /var/cache/apt/archives/* /var/cache/squid-deb-proxy/

on the client I installed

sudo apt-get install squid-deb-proxy-client

now on the client I do a sudo do-release-upgrade

but it fails to get any kind of upgrade from the deb-proxy-server and rather connects to internet and this is taking 8-10 hours of time for upgrade process. This is verified by the logs on server which mention

1358365800.075    337 TCP_MISS/304 282 GET http://extras.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages.bz2 - DIRECT/ -
1358365800.119    338 TCP_MISS/304 360 GET http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/source/Sources.bz2 - DIRECT/ -

TCP_MISS which should be rather TCP_HIT so the squid-deb-proxy server is not working properly.Here what should I do?


You can't just copy debs into the squid-deb-proxy directory as those are stored as squid objects, so that probably won't work.

Unfortunately I don't think there's a way you can do this unless you would have install squid-deb-proxy server and client on your laptop before it was upgraded, so it could have cached the debs prior to the upgrade on the first laptop.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.