Just type $sudo apt-get install dpkg-dev (in the console screen)
2. Make a folder in /home/your_username, for example repo_ubuntu
3. Copy all files from /var/cache/apt/archives to /home/your_username/repo_ubuntu
$cd /var/cache/apt/archives
$cp -rf * /home/your_username/repo_ubuntu
4. Make index package with dpkg-scanpackages
$cd /home/your_username
$sudo dpkg-scanpackages repo_ubuntu /dev/null | gzip -9c > repo_ubuntu/Packages.gz
(if you are succeed, then the making process is done).
How to use this local Repository?
1. Edit your sources.list at /etc/apt/sources.list, but always make a copy first in case you may make a mistake.
$sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
$sudo gedit /etc/apt/sources.list
2. Add your repository (/etc/apt/sources.list) with the below line
deb file:/home/your_username repo_ubuntu/
3. To make new index for your repository, type
$sudo apt-get update
Thanks for the tip.
Is there anyway to make your repository available over the internet?
-mLoberg