LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 07-05-2004, 03:13 AM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
where is apt.conf?


I have an error with apt's cachesize (I have only 10 sources in my sources.list :S) and now I need to change it in apt.conf. The problem is in /etc/apt I only have apt.conf.d which I can't change with a normal text editor, and I don't know how to do that another way. Do I need to change this file and how or do I just make apt.conf myself and add the cachesize line to it?

thanks for the help!
 
Old 07-05-2004, 03:48 AM   #2
salbox
LQ Newbie
 
Registered: Jun 2004
Location: germany
Distribution: debian woody + suse 9.1
Posts: 25

Rep: Reputation: 15
Hi there,


so you can't find your apt.conf? It must be there!
apt.conf.d is, like the name says a directory! try to change to the diretory and you must get something like this:

***@linux:/etc/apt/apt.conf.d> ll
-rw-r--r-- 1 root root 390 2004-05-15 21:51 apt.conf
-rw-r--r-- 1 root root 164 2004-05-29 17:26 gpg-checker.conf
-rw-r--r-- 1 root root 102 2004-05-16 21:59 list-extras.conf
-rw-r--r-- 1 root root 48 2004-05-16 21:59 list-nodeps.conf
-rw-r--r-- 1 root root 206 2004-05-16 21:59 pkglog.conf
-rw-r--r-- 1 root root 101 2004-05-16 21:59 post.conf
***@linux:/etc/apt/apt.conf.d>

contents of this dir. is on debian as it is on suse the same!


let me know if I helped you!
 
Old 07-05-2004, 05:29 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
O lol so .d stands for directory


BTW I found something. It ended up to be in /usr/share/doc/apt/examples so I hope it's more than an example and the actual file that's used. In /etc/apt/apt.conf.d there's only 1 file 70debconf and in /etc/apt only the sources.list

edit it's only an example and kfind and whereis don't find anything else :S how can something work without files lol. Maybe I should try finding it as non-root or it might be hidden? How do I make hidden files visible in kde

Last edited by darkleaf; 07-05-2004 at 05:31 AM.
 
Old 07-05-2004, 05:52 AM   #4
salbox
LQ Newbie
 
Registered: Jun 2004
Location: germany
Distribution: debian woody + suse 9.1
Posts: 25

Rep: Reputation: 15
man,


i don't know where your trouble is...? I guess that you want to know where apt is located...whereis apt returns:
cs@linux:/etc/apt/apt.conf.d> whereis apt
apt: /usr/bin/apt /etc/apt /usr/lib/apt /usr/share/man/man1/apt.1.gz /usr/share/man/man8/apt.8.gz
See, whereis does not find the examples!

U found the examples for apt config files. Apt does not automatically use those files, they have to be in the /etc/apt directory!

Is your apt working in any way?
 
Old 07-05-2004, 05:59 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
My apt is working but I have trouble with the cache size. Now I have to change apt.conf to allow larger cache but the apt.conf file is gone or something.

in /etc/apt i have apt.conf.d and sources.list
in /etc/apt/apt.conf.d I have the file 70debconf

those are all the files.

If I search for apt.conf I only find the example above.

I did find a workaround for the cache problem, just commenting some lines out but a workaround is not a solution. So I'd like to know where the apt.conf file and those otehr files you mentioned that should be in /etc/apt and /etc/apt/apt.conf.d are?
 
Old 07-05-2004, 09:53 AM   #6
lotheac
Member
 
Registered: Apr 2004
Location: Finland
Posts: 32

Rep: Reputation: 15
I don't have apt.conf anywhere either, but as `man apt.conf' says:
Quote:
... When an APT tool starts up it will read the configuration specified by the APT_CONFIG environment variable (if any) ...
So it seems to me there doesn't need to be a config file unless you want to change something, and since this is the case, maybe you should make your own conf file based on the example configuration. Read `man apt.conf'.
 
Old 07-05-2004, 11:52 AM   #7
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
OK will try that Thanks for the help!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up proxy in Apt-Get's apt.conf? rykel Fedora 9 10-09-2013 03:24 AM
apt-build.conf....file options utanja Debian 4 02-26-2005 06:02 PM
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 04:03 PM
i can't find the file /etc/apt/apt.conf. lsj Linux - Newbie 1 05-21-2004 02:24 AM


All times are GMT -5. The time now is 02:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration