[ubuntu] How to force apt to install packages from my local repository

view full story

http://ubuntuforums.org – Hi, I'm using ubuntu12.04. I've created a local offline repository this way: sudo mkdir -p /usr/local/mydebs sudo cp /var/cache/apt/archives/*.deb /usr/local/mydebs cd /usr/local/mydebs dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz Then I added this line on /etc/apt/sources.list file : deb file:/usr/local/mydebs ./ Then I update repository using this command: sudo apt-get update I can easily install my previously downloaded packages using apt-get. But after I use this command with internet connection : sudo apt-get update , my local repository doesn't seem to work. For example (Hardware)