Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to download the source of a package but when I run

root@proxy:~# apt-get source squid3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Can not find version '3.3.8-1.1' of package 'squid3'
E: Unable to find a source package for squid3

It cannot be found. But when I run apt-cache search squid3 it finds it.

root@proxy:~# apt-cache search squid3
squid-cgi - Full featured Web Proxy cache (HTTP proxy) - control CGI
squid3 - Full featured Web Proxy cache (HTTP proxy)
squid3-common - Full featured Web Proxy cache (HTTP proxy) - common files
squid3-dbg - Full featured Web Proxy cache (HTTP proxy) - Debug symbols
squidclient - Full featured Web Proxy cache (HTTP proxy) - control utility

It works fine with apt-get install squid3 as well. I am using Ubuntu 11.04 server and this is my /etc/apt/sources.list

deb natty main restricted universe
deb natty-updates main restricted universe
deb natty-security main restricted universe
deb natty partner
deb sid main
deb stable all
deb-src stable all
deb natty universe
deb-src natty universe

I've apt-get updated many times. I have tried many different debs and have not found this error any where else.

share|improve this question
up vote 9 down vote accepted

The issue here is that your binary packages (deb) is not consistent with your source packages (deb-src). Since squid3 is from sid, add this line:

deb-src sid main

This should fix it

share|improve this answer
Just spotted your error, please read my updated answer. – md_5 Mar 24 '14 at 6:25
That worked perfectly! Thank you so much – Garrett R Mar 24 '14 at 6:26
Awesome, glad I helped – md_5 Mar 24 '14 at 6:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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