Announcement

Collapse
No announcement yet.

/etc/apt/apt.conf - Where is it?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    /etc/apt/apt.conf - Where is it?

    Ok.. after about an hour of wasted searching to find this file, its no where to be found where it belongs...

    /etc/apt/apt.conf

    Code:
    rec9140@Julep-rec9140-D525TUD:/etc/apt$ ls -al
    total 68
    drwxr-xr-x  6 root root 4096 2011-08-21 20:09 .
    drwxr-xr-x 126 root root 12288 2011-08-21 09:50 ..
    drwxr-xr-x  2 root root 4096 2011-08-19 20:54 apt.conf.d
    drwxr-xr-x  2 root root 4096 2011-08-03 03:10 preferences.d
    -rw-r--r--  1 root root 3484 2011-08-21 09:44 sources.list
    drwxr-xr-x  2 root root 4096 2011-08-21 09:44 sources.list.d
    -rw-r--r--  1 root root 3484 2011-08-21 09:44 sources.list.save
    -rw-------  1 root root 1200 2011-08-19 22:45 trustdb.gpg
    -rw-r--r--  1 root root 9921 2011-08-21 09:44 trusted.gpg
    -rw-r--r--  1 root root 9557 2011-08-20 15:15 trusted.gpg~
    drwxr-xr-x  2 root root 4096 2011-08-03 03:10 trusted.gpg.d
    rec9140@Julep-rec9140-D525TUD:/etc/apt$
    Ok.. so what is the apt config?

    Code:
    rec9140@Julep-rec9140-D525TUD:/etc/apt$ sudo apt-config dump
    APT "";
    APT::Architecture "amd64";
    APT::Build-Essential "";
    APT::Build-Essential:: "build-essential";
    APT::Install-Recommends "true";
    APT::Install-Suggests "0";
    APT::Authentication "";
    APT::Authentication::TrustCDROM "true";
    APT::NeverAutoRemove "";
    APT::NeverAutoRemove:: "^firmware-linux.*";
    APT::NeverAutoRemove:: "^linux-firmware$";
    APT::NeverAutoRemove:: "^linux-image.*";
    APT::NeverAutoRemove:: "^kfreebsd-image.*";
    APT::NeverAutoRemove:: "^linux-restricted-modules.*";
    APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
    APT::NeverAutoRemove:: "^gnumach$";
    APT::NeverAutoRemove:: "^gnumach-image.*";
    APT::Never-MarkAuto-Sections "";
    APT::Never-MarkAuto-Sections:: "metapackages";
    APT::Never-MarkAuto-Sections:: "restricted/metapackages";
    APT::Never-MarkAuto-Sections:: "universe/metapackages";
    APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
    APT::Never-MarkAuto-Sections:: "oldlibs";
    APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
    APT::Never-MarkAuto-Sections:: "universe/oldlibs";
    APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
    APT::Periodic "";
    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Download-Upgradeable-Packages "0";
    APT::Periodic::AutocleanInterval "0";
    APT::Update "";
    APT::Update::Post-Invoke-Success "";
    APT::Update::Post-Invoke-Success:: "touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";
    APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged || true";
    APT::Archives "";
    APT::Archives::MaxAge "30";
    APT::Archives::MinAge "2";
    APT::Archives::MaxSize "500";
    APT::Changelogs "";
    APT::Changelogs::Server "[url]http://changelogs.ubuntu.com/changelogs";[/url]
    APT::Architectures "";
    APT::Architectures:: "amd64";
    APT::Architectures:: "i386";
    Dir "/";
    Dir::State "var/lib/apt/";
    Dir::State::lists "lists/";
    Dir::State::cdroms "cdroms.list";
    Dir::State::mirrors "mirrors/";
    Dir::State::extended_states "extended_states";
    Dir::State::status "/var/lib/dpkg/status";
    Dir::Cache "var/cache/apt/";
    Dir::Cache::archives "archives/";
    Dir::Cache::srcpkgcache "srcpkgcache.bin";
    Dir::Cache::pkgcache "pkgcache.bin";
    Dir::Etc "etc/apt/";
    Dir::Etc::sourcelist "sources.list";
    Dir::Etc::sourceparts "sources.list.d";
    Dir::Etc::vendorlist "vendors.list";
    Dir::Etc::vendorparts "vendors.list.d";
    Dir::Etc::main "apt.conf";
    Dir::Etc::netrc "auth.conf";
    Dir::Etc::parts "apt.conf.d";
    Dir::Etc::preferences "preferences";
    Dir::Etc::preferencesparts "preferences.d";
    Dir::Etc::trusted "trusted.gpg";
    Dir::Etc::trustedparts "trusted.gpg.d";
    Dir::Bin "";
    Dir::Bin::methods "/usr/lib/apt/methods";
    Dir::Bin::solvers "";
    Dir::Bin::solvers:: "/usr/lib/apt/solvers";
    Dir::Bin::dpkg "/usr/bin/dpkg";
    Dir::Media "";
    Dir::Media::MountPath "/media/apt";
    Dir::Log "var/log/apt";
    Dir::Log::Terminal "term.log";
    Dir::Log::History "history.log";
    Dir::Ignore-Files-Silently "";
    Dir::Ignore-Files-Silently:: "~$";
    Dir::Ignore-Files-Silently:: "\.disabled$";
    Dir::Ignore-Files-Silently:: "\.bak$";
    Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
    Dir::Ignore-Files-Silently:: "\.distUpgrade$";
    Dir::Ignore-Files-Silently:: "\.save$";
    Acquire "";
    Acquire::cdrom "";
    Acquire::cdrom::mount "/media/cdrom/";
    Acquire::Languages "";
    Acquire::Languages:: "en_US";
    Acquire::Languages:: "en";
    Acquire::Languages:: "none";
    Unattended-Upgrade "";
    Unattended-Upgrade::Allowed-Origins "";
    Unattended-Upgrade::Allowed-Origins:: "${distro_id} ${distro_codename}-security";
    DPkg "";
    DPkg::Pre-Install-Pkgs "";
    DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
    DPkg::Post-Invoke "";
    DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi ";
    CommandLine "";
    CommandLine::AsString "apt-config dump";
    rec9140@Julep-rec9140-D525TUD:/etc/apt$
    its moved so lets look:

    echo $APT_CONFIG

    empty

    I need to remove the "APT::Architectures:: "i386";" as I do not wish to use multiarch, thanks, but no thanks. I only want to see 64bit stuff from apt/synaptic

    So where is this apt.conf file? I've looked in the dirs listed from apt-config dump, with no joy.

    #2
    Re: /etc/apt/apt.conf - Where is it?

    /etc/apt/apt.conf.d/apt.conf
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: /etc/apt/apt.conf - Where is it?

      Great command to know: locate

      as in;

      locate apt.conf

      Please Read Me

      Comment


        #4
        Re: /etc/apt/apt.conf - Where is it?

        Originally posted by oshunluvr
        Great command to know: locate

        as in;

        locate apt.conf
        My habit is to always combine that with an updatedb first, so that locate's database is up-to-date:

        sudo updatedb & locate filename

        Comment


          #5
          Re: /etc/apt/apt.conf - Where is it?

          Originally posted by steveriley
          My habit is to always combine that with an updatedb first, so that locate's database is up-to-date:

          sudo updatedb & locate filename
          updatedb runs as a nightly cron job so I only update the database if I'm looking for something that's been added in the last 24 hours - but either way works
          we see things not as they are, but as we are.
          -- anais nin

          Comment


            #6
            Re: /etc/apt/apt.conf - Where is it?

            Originally posted by wizard10000
            updatedb runs as a nightly cron job
            Didn't know that, thanks.

            Comment


              #7
              Re: /etc/apt/apt.conf - Where is it?

              To get back to the original issue:

              What I found was this:

              http://wiki.debian.org/Multiarch/Imp...sing_multiarch
              And specifically:

              Using multiarch

              To enable the installation of multiarch binaries, apt and dpkg need configuration changes. For example, if you have an amd64 system that you want to install i386 libraries onto, do the following:

              add foreign-architecture i386 to /etc/dpkg/dpkg.cfg (requires dpkg from 'pu/multiarch/full' branch of <git://git.debian.org/users/hertzog/dpkg.git>)

              run apt-get update to refresh the package cache with the newly added architecture
              The specifically ubuntu solution is to add a file multiarch to /etc/dpkg/dpkg.conf.d with the contents:
              foreign-architecture i386

              So if that isn't there, then multiarch should not be working by default.
              At least that's the way I read it.
              And by the way, I don't have an apt.conf file, not anywhere.

              We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

              Comment


                #8
                Re: /etc/apt/apt.conf - Where is it?

                Well unfortunately the posted info on this is not being followed.

                But thatnks to a post here I found the file enabling this crud...

                in

                Code:
                /etc/dpkg/dpkg.cfg.d
                There is a file called:

                multiarch

                I edited this file to make it a comment:

                #foreign-architecture i386


                Rebuild indexes for apt/synaptic (I am not touching muon, its DANGEROUS!, matter of fact I am considering removing it due to its potential to harm systems.)

                That should solve the multiarch mess.

                You probably could just rm it as as well, but for my testing right now I will leave it. For my final release I will rm it though.


                Comment


                  #9
                  Re: /etc/apt/apt.conf - Where is it?

                  Originally posted by rec9140
                  (I am not touching muon, its DANGEROUS!, matter of fact I am considering removing it due to its potential to harm systems.)
                  That is an unfair (to be polite) condemnation of the package manager that was vetted by the development team to be the replacement to KPackageKit as of Kubuntu 11.10. Muon is a solid package manager, and the fact that it is only 14-months *new* (first released on July 5, 2010) is a testament to the skills of it's developer.

                  The developer, Jonathan Thomas (JontheEchidna here in KFN), is contactable, easy to converse with, and listens to users observations and comments concerning Muon. Instead of making such an unsupported negative statement of Muon, you should have (and still should) contact him with your own "documented" observations. If they are substantiated, and prove to be genuine bugs that require fixing, he will get them fixed.

                  The one thing here in KFN that is sure to get our hackles up are unsupported 'attacks'.
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: /etc/apt/apt.conf - Where is it?

                    Originally posted by Snowhog
                    Originally posted by rec9140
                    (I am not touching muon, its DANGEROUS!, matter of fact I am considering removing it due to its potential to harm systems.)
                    That is an unfair (to be polite) condemnation of the package manager that was vetted by the development team to be the replacement to KPackageKit as of Kubuntu 11.10. Muon is a solid package manager, and the fact that it is only 14-months *new* (first released on July 5, 2010) is a testament to the skills of it's developer.

                    The developer, Jonathan Thomas (JontheEchidna here in KFN), is contactable, easy to converse with, and listens to users observations and comments concerning Muon. Instead of making such an unsupported negative statement of Muon, you should have (and still should) contact him with your own "documented" observations. If they are substantiated, and prove to be genuine bugs that require fixing, he will get them fixed.

                    The one thing here in KFN that is sure to get our hackles up are unsupported 'attacks'.
                    +1

                    I have never had a serous problem with muon in 10.04 or 11.04 .....I havent tryed 11.10 yet but will be putting it in a testing partition I put on this box for just such things

                    VINNY
                    i7 4core HT 8MB L3 2.9GHz
                    16GB RAM
                    Nvidia GTX 860M 4GB RAM 1152 cuda cores

                    Comment


                      #11
                      Re: /etc/apt/apt.conf - Where is it?

                      Originally posted by vinnywright
                      Originally posted by Snowhog
                      Originally posted by rec9140
                      (I am not touching muon, its DANGEROUS!, matter of fact I am considering removing it due to its potential to harm systems.)
                      That is an unfair (to be polite) condemnation of the package manager that was vetted by the development team to be the replacement to KPackageKit as of Kubuntu 11.10. Muon is a solid package manager, and the fact that it is only 14-months *new* (first released on July 5, 2010) is a testament to the skills of it's developer.

                      The developer, Jonathan Thomas (JontheEchidna here in KFN), is contactable, easy to converse with, and listens to users observations and comments concerning Muon. Instead of making such an unsupported negative statement of Muon, you should have (and still should) contact him with your own "documented" observations. If they are substantiated, and prove to be genuine bugs that require fixing, he will get them fixed.

                      The one thing here in KFN that is sure to get our hackles up are unsupported 'attacks'.
                      +1

                      I have never had a serous problem with muon in 10.04 or 11.04 .....I havent tryed 11.10 yet but will be putting it in a testing partition I put on this box for just such things

                      VINNY
                      +2

                      No problems here with Muon in 11.10 since its upgrade to 1.2.
                      The unjust distribution of goods persists, creating a situation of social sin that cries out to Heaven and limits the possibilities of a fuller life for so many of our brothers. -- Archbishop Jorge Mario Bergoglio of Buenos Aires (now Pope Francis)

                      Comment


                        #12
                        Re: /etc/apt/apt.conf - Where is it?

                        I tried to use Moun once after it was broken during a previous upgrade. It did indeed crash and left me with a broken system. I haven't used it since and will likely re-install Synaptic if kpackagekit is discontinued.

                        To be fair, kpackagekit has done something similar once in the past, but I also don't care for the Muon interface either. 9/10 times I install from the terminal anyway.

                        Please Read Me

                        Comment


                          #13
                          Re: /etc/apt/apt.conf - Where is it?

                          Originally posted by oshunluvr
                          9/10 times I install from the terminal anyway.
                          I do practically all my package management from the CLI, using Muon to locate packages. I just prefer the CLI. Even when I had been using Synaptic, I began using the CLI more and more often. Muon is a good package manager.

                          "I tried to use Moun once after it was broken during a previous upgrade."

                          But what caused it to become broken? A badly packaged Muon? I doubt that.
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment


                            #14
                            Re: /etc/apt/apt.conf - Where is it?

                            This is going way OT, but...

                            ANY package manager is "dangerous" if you don't pay attention to what it tells you it is going to do.
                            That is especially true for system version upgrades and system development versions.
                            $.02
                            We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                            Comment


                              #15
                              Re: /etc/apt/apt.conf - Where is it?

                              Snowhog: Muon broke (not anything else) way back. Going from vague memory: The earlier version was dependent on some package that didn't survive the move from 9.10 to 10.04 -- or some similar reason, and wasn't backported. I really don't remember much of the details except that for a while Muon would only run if you held back some upgrades or moved to the beta release of 10.10. I didn't use that release at all (ubiquity didn't get along with my bios) so I never tried Muon again.

                              The last time I tried it on 11.04, I got to use it once or twice before it crashed and I had to go through all the removal-of-locks and dpkg -a --configure junk. By then, kpackagekit had matured enough that I couldn't see any reason to continue to battle with Muon.

                              I do however, totally agree with your comments regarding proper reporting of bugs and the over-statement of the issue.

                              And DrDru's comment is way more than $.02 worth!

                              Please Read Me

                              Comment

                              Working...
                              X