LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-15-2005, 02:08 AM   #1
pascalv
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian Stable
Posts: 8

Rep: Reputation: 0
correct setting of /etc/apt/sources.list for local file


Hello,

I have some problem to install software in deb format.
These deb files are stored in
Code:
 /home/pascalv/2005/
This line was added to my /etc/apt/sources.list file:
Code:
 deb file:/home/pascalv/2005 ./
and I ran these commands:
Code:
# dpkg-scanpackages /home/pascalv/2005 /dev/null | gzip - > /home/pascalv/2005/Packages.gz
 ** Packages in archive but missing from override file: **
(...)
 Wrote 106 entries to output Packages file.

# apt-get update
Ign file: ./ Release
hit hxxp://(...)
Hit fxp://fxp.fr.debian.org stable/non-free Release
Reading Package Lists... Done

# apt-get install icecc
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  icecc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/370kB of archives.
After unpacking 1163kB of additional disk space will be used.
Err file: ./ icecc 2.9-1
  File not found
Failed to fetch file:/home/pascalv/2005//home/pascalv/2005/icecc_2.9-1_i386.deb  File not found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Hence there is a problem to the link to my deb file. I have unsuccessfully tried to replace ./ by / and lots of other combinations in dpkg-scanpackages and /etc/apt/sources.list

Does somebody know how to solve this?

Linux version: Debian 3.1 Sarge Kernel 2.4.27-2-386
Computer: Laptop NEC Versa AMD K6-II 450MHz, 64 MB RAM

Thanks
Pascal
 
Old 07-15-2005, 05:01 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Try "apt-setup" It should have an option to setup a directory to read from.
 
Old 07-15-2005, 06:49 AM   #3
pascalv
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian Stable
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the answer
In fact I already tried apt-setup but it seems to work only if your repository has the same structure as the debian distribution
It is not the case here because the deb packages in my local repository come from several places
 
Old 07-15-2005, 09:14 AM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Don;t know if you like this but you can also just install them like this:

"dpkg -i file.deb"

Apt is a frontend to dpkg so it's sort of the same as using apt itself.
 
Old 07-15-2005, 09:24 AM   #5
pascalv
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian Stable
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
"dpkg -i file.deb"
Thanks for your answer

In case of dependencies, dpkg will just indicate the necessary additional packages and stop the installation, whereas apt-get will collect these additional packages and install them.

So in other words my problem is to make apt* use the repository sources with the priorities that I want (file:/ then cdrom:/ then ftp:// then http://)
 
  


Reply



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
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
all i want is a decent /etc/apt/sources.list file nazdrowie Debian 3 01-18-2005 09:28 PM
My apt sources.list file his mess up! NeeD_ResT Debian 3 11-20-2004 10:47 AM
How does your /etc/apt/sources.list file looks like? sud_crow SUSE / openSUSE 1 10-30-2004 05:25 AM
I need help configuring my apt-get sources.list file... Mr.Radar Debian 4 06-01-2004 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:01 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
Open Source Consulting | Domain Registration