LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-25-2016, 06:32 PM   #1
Can-ned Food
LQ Newbie
 
Registered: Apr 2015
Distribution: GNU→TT
Posts: 7

Rep: Reputation: Disabled
Unhappy Changing apt and dpkg paths with apt.conf via $APT_CONFIG


Soon I'll be able to start testing this myself, but for now I thought that I'd ask for some advice.

Does anyone have better documentation for apt.conf than its manpage?
Atrocious read, that is.

It is possible that apt can't do what I was planning. I wanted dpkg to operate in one directory below '/.', while apt and dpkg have their state and parameter data somewhere else: similar to using --admindir= and --instdir=.

If anyone would help me with the difference between a value for DIR and DIR::ROOTDIR, and whether that gets passed to dpkg, such information would be welcome when I begin testing in earnest.

Here's the apt.conf
Code:
// format mostly taken from usr/share/doc/apt/examples/configure-index.gz
Dir "/inst/debian/."
{
  RootDir "/.";
  State "/home/dpkg/apt/var/."
  {
     Lists "lists/.";
     Status "/home/dpkg/var/status";
     Extended_states "extended_states";
     Cdroms "cdroms.list";
  };
  Cache "/home/dpkg/apt/."
  {
	  // edit most of this
     Archives "depo/.";
     Backup "bkp/";
      //  etc/cron.daily/apt
     SrcPkgCache "srcpkgcache.bin";
     PkgCache "pkgcache.bin";
  };
  Etc "/home/param/apt/."
   //	VITAL
  {
     Main "apt.conf";
      //	datum housing this must be set by envar APT_CONFIG
     NetRC "auth.conf";
     Parts "apt.conf.d/";
     Preferences "preferences";
     PreferencesParts "preferences.d/";
     SourceList "sources.list";
     SourceParts "sources.list.d/";
     VendorList "vendors.list";
     VendorParts "vendors.list.d/";
     Trusted "trusted.gpg";
     TrustedParts "trusted.gpg.d/";
  };
  Bin
  {
     methods "./usr/lib/apt/methods/";
     gzip "./bin/gzip";
     gpg  "./usr/bin/gpgv";
     dpkg "./usr/bin/dpkg";
     dpkg-source "./usr/bin/dpkg-source";
     dpkg-buildpackage "./usr/bin/dpkg-buildpackage";
     apt-get "./usr/bin/apt-get";
     apt-cache "./usr/bin/apt-cache";
  };
  Log "/rmrk/apt/."
  {
	Terminal "term";
	History "/home/dpkg/apt/history";
  };
  Media 
  {
	MountPath "/lawn/apt/.";
  };
};
And, here's my error:
Code:
E: The method driver ./usr/lib/apt/methods/ftp could not be found.
E: The method driver ./usr/lib/apt/methods/http could not be found.
E: The method driver ./usr/lib/apt/methods/file could not be found.
E: The method driver ./usr/lib/apt/methods/ftp could not be found.
 
  


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
How to set up proxy in Apt-Get's apt.conf? rykel Fedora 9 10-09-2013 03:24 AM
Please see man 5 apt.conf under APT::Immediate-Configure for details. (2) chunglexury Linux - Server 2 08-02-2013 01:57 AM
Please see man 5 apt.conf under APT::Immediate-Configure for details. (2) widget Debian 7 06-28-2011 04:21 PM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 05:50 PM
i can't find the file /etc/apt/apt.conf. lsj Linux - Newbie 1 05-21-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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