The package repository shows that the packages can be installed from internet. But I need it to be installed from random package repository. How can I change it
Please help me
You can use the package manager for that. However, I would recommend you to update to MikTeX 2.9 if possible.
Then you can go to the Repository Menu and select Change Repository option.
After clicking next if you wish to have it updated from internet, you would get the list of available repositories.
Note that, an available repository can be offline temporarily such that you can't download packages or update them.