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

1 Answer 1

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
    
performing the apt-get update was the key. –  Dan O'Reilly Nov 17 at 22:41

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.