Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am new with Ubuntu.

I want to setup a local repository for Ubuntu 12.04, because i don't have internet access on my laptop. I downloaded repository using wget on windows machine and its download directory structure under us.archive.ubuntu.com directory.

Please let me how i setup local repository using it.

Thanks for response (in Advance).

share|improve this question
    
Please clarify: Do don't want to connect this laptop to access the "Inter Web", but you can access same from Windows. Or, you really can't access the Internet !? –  david6 Jun 7 '12 at 8:49
add comment

2 Answers

You can now add the repository path (us.archive.ubuntu.com/ubuntu) to /etc/apt/sources.list file

For example:-

Suppose you have downloaded it to /media/Data/us.archive.ubuntu.com/ First backup your /etc/apt/sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

Open /etc/apt/sources.list

sudo vim /etc/apt/sources.list

Add the following line to /etc/apt/sources.list

deb file:///media/Data/us.archive.ubuntu.com/ubuntu precise main universe multiverse
share|improve this answer
add comment

Have you checked this https://help.ubuntu.com/community/AptGet/Offline/Repository ?

share|improve this answer
    
Thanks for your response.I checked this link, but i don't have internet so i download all .deb files using wget on USB drive. Now i want to setup this as a repository –  Anuj Srivastava Jun 7 '12 at 8:40
    
This is still the correct approach, and you will need an Ubuntu machine to host the repository. –  david6 Jun 7 '12 at 8:47
add comment

Your Answer

 
discard

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.