LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2008, 04:18 PM   #1
babypeng
Member
 
Registered: Nov 2007
Distribution: Puppy
Posts: 42

Rep: Reputation: 15
please help - how to use a local repository on Debian Etch


This is beginning to make me frustrated.
I copied the .deb files to a local directory :
/var/cache/apt/archives/gnome/gnome-packages

I tried each of the following lines in sources.list :

deb file:/var/cache/apt/archives/gnome/gnome-packages stable main contrib

deb file:///var/cache/apt/archives/gnome/gnome-packages stable main contrib

and I also tried it without the "stable main contrib"

I performed "apt-get update" ,
and I got a long text saying something about "debian repository
doesn't exist" and the name of the repository which was
http://[something with security] ,
but there was not any error message about the local repository
I created, so I assume APT did update it.
When I ran "apt-get install [name of package]" ,
it said it can't find that package and that I should run
"apt-get update" to fix this problem.

All other lines in sources.list are commented out.

Any help is appreciated,
I am on the edge of desperation.

Baby Peng
 
Old 03-28-2008, 04:34 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I think you need to use some tools to setup the repository. Just copying the *.deb's there doesn't work. Apt needs a couple of files created to describe what's in the repository. Here's a couple of howto links to create quick and dirty repositories.

http://www.debianhelp.co.uk/pkgadm.htm -- near the bottom, Local Package Archive section
http://people.connexer.com/~roberto/.../debrepository -- more detailed howto
http://www.debian.org/doc/manuals/re...-howto.en.html -- official Debian doc
 
Old 03-28-2008, 05:14 PM   #3
babypeng
Member
 
Registered: Nov 2007
Distribution: Puppy
Posts: 42

Original Poster
Rep: Reputation: 15
thank you so much pljvaldez

hey pljvaldez,
thank you so much.
I just learned something from you.
I will go over these links.

Baby peng
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating A Local Debian Repository ashmita04 Debian 1 01-23-2008 04:28 PM
Making an Debian Etch repository fatal_err0r Debian 5 12-02-2007 12:54 AM
debian etch repository help hallows1 Linux - Server 1 05-06-2007 10:00 PM
LXer: Debian Etch And Xen From The Debian Repository LXer Syndicated Linux News 0 05-04-2007 06:31 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 11:43 AM


All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration